Subject: bug#70210: i686: openjdk 9 linker segfaults

From: Ricardo Wurmus <[email-masked]>
Date: Fri, 05 Apr 2024 08:43:07 +0200

For some time now openjdk 9 could not be built on i686.  The linker segfaults:

--8<---------------cut here---------------start------------->8---
ld: /tmp/guix-build-openjdk-9.181.drv-0/source/build/linux-x86-normal-server-release/hotspot/variant-server/libjvm/objs/adaptiveFreeList.o: warning: relocation in read-only section `.text'
ld: BFD (GNU Binutils) 2.38 assertion fail ../../binutils-2.38/bfd/elfxx-x86.c:529
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
make[3]: *** [lib/CompileJvm.gmk:209: /tmp/guix-build-openjdk-9.181.drv-0/source/build/linux-x86-normal-server-release/support/modules_libs/java.base/server/libjvm.so] Error 1
make[3]: *** Deleting file '/tmp/guix-build-openjdk-9.181.drv-0/source/build/linux-x86-normal-server-release/support/modules_libs/java.base/server/libjvm.so'
make[2]: *** [make/Main.gmk:263: hotspot-server-libs] Error 2
make[2]: *** Waiting for unfinished jobs....
--8<---------------cut here---------------end--------------->8---

-- 
Ricardo