[Bug binutils/28894] New: segfault when building openjdk13 on x86 32bit (binutils 2.38 regression)
https://sourceware.org/bugzilla/show_bug.cgi?id=28894 Bug ID: 28894 Summary: segfault when building openjdk13 on x86 32bit (binutils 2.38 regression) Product: binutils Version: 2.38 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: jpalus at fastmail dot com Target Milestone: --- After switching to binutils 2.38 openjdk13 build failed on i686 with error: /usr/bin/ld: /tmp/B.zx6ygnoi/BUILD/jdk13u-jdk-13.0.10-ga/build/linux-x86-server-release/hotspot/variant-server/libjvm/objs/acce ss.o: warning: relocation in read-only section `.text._ZN14AccessInternal15RuntimeDispatchILy16464EP7oopDescLNS_11BarrierTypeE1 1EE11equals_initES2_S2_[_ZN14AccessInternal15RuntimeDispatchILy16464EP7oopDescLNS_11BarrierTypeE11EE11equals_initES2_S2_]' /usr/bin/ld: BFD (GNU Binutils) 2.38 assertion fail elfxx-x86.c:529 collect2: fatal error: ld terminated with signal 11 [Segmentation fault] compilation terminated. Just before upgrading binutils another build was successful with binutils 2.37. Note that x86_64 build succeeded with binutils 2.38. gcc 11.2.0 (with most of patches from gcc-11 patch) glibc 2.35 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/28894] segfault when building openjdk13 on x86 32bit (binutils 2.38 regression)
https://sourceware.org/bugzilla/show_bug.cgi?id=28894 --- Comment #6 from Jan Palus --- Confirmed that issue also occurs on glibc 2.34. In my case command line is: /usr/bin/i686-pld-linux-g++ -Wl,--hash-style=both -Wl,-z,defs -Wl,-z,relro -Wl,-z,noexecstack -Wl,-O1 -march=i586 -m32 -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc -static-libstdc++ -static-libgcc -shared -m32 -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc -Wl,-version-script=/home/users/atler/rpm/packages/BUILD.i686-linux/jdk13u-jdk-13.0.10-ga/build/linux-x86-server-release/hotspot/variant-server/libjvm/mapfile -Wl,-soname=libjvm.so -o /home/users/atler/rpm/packages/BUILD.i686-linux/jdk13u-jdk-13.0.10-ga/build/linux-x86-server-release/support/modules_libs/java.base/server/libjvm.so @/home/users/atler/rpm/packages/BUILD.i686-linux/jdk13u-jdk-13.0.10-ga/build/linux-x86-server-release/hotspot/variant-server/libjvm/objs/_BUILD_LIBJVM_objectfilenames.txt -lm -ldl -lpthread version script: http://jpalus.fastmail.com/version-script all object files: http://jpalus.fastmail.com/objs.tar.xz -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/28894] segfault when building openjdk13 on x86 32bit (binutils 2.38 regression)
https://sourceware.org/bugzilla/show_bug.cgi?id=28894 --- Comment #15 from Jan Palus --- Confirmed openjdk builds fine with above fix. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.