• Status New
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Packages
  • Assigned To No-one
  • Operating System pentium4
  • Severity Low
  • Priority Medium
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Arch Linux 32
Opened by Andreas Baumann - 05.05.2022
Last edited by Andreas Baumann - 06.05.2022

FS#257 - [openjdk 11/17/18] fails to build almost in all versions and platforms

Admin
Andreas Baumann commented on 05.05.2022 05:57

Let's start to fix the lowest versions..

openjdk8:

rm: cannot remove '/build/java8-openjdk/pkg/jre8-openjdk-headless/usr/lib/jvm/java-8-openjdk/jre/lib//libjsound.so': No such file or directory

I fail to see a message about libjsound.so not being built or so?

Let's see, what 64-bit builds look like..of course, this one builds fine.
So why should 32-bit "loose" the libjsound.so library?

Admin
Andreas Baumann commented on 05.05.2022 09:19

Aha, CARCH and _JARCH are not up to snuff:

case "${CARCH}" in
  'x86_64') _JARCH=amd64 ; _DOC_ARCH=x86_64 ;;
  'i686'  ) _JARCH=i386  ; _DOC_ARCH=x86    ;;
esac

...

_nonheadless=(bin/policytool
              lib/${_JARCH}/libjsound.so
              lib/${_JARCH}/libjsoundalsa.so
Admin
Andreas Baumann commented on 05.05.2022 09:29

mmh. strange: in build-support I have a fully bootstrapped version for each and
every JDKs sind JDK8, the patches there never made their way into the main
packages. (or I was ahead in keeping older verision of JDK around as separate
versions for bootstrapping). :-)

Admin
Andreas Baumann commented on 05.05.2022 10:01

JDK8 builds fine.

JDK11 looks really ugly: Segfaults in ld when linking early in the build process..

Admin
Andreas Baumann commented on 05.05.2022 10:36

.. just try a rebuild. Maybe we had a glitchy toolchain..

Admin
Andreas Baumann commented on 05.05.2022 15:01

Java 11 still fails:

IOException caught during compilation: Connection reset
IOException caught during compilation: Connection reset
make[3]: *** [CompileJavaModules.gmk:593: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/jdk/modules/java.rmi/_the.java.rmi_batch] Error 1
make[3]: *** [CompileJavaModules.gmk:593: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/jdk/modules/java.xml/_the.java.xml_batch] Error 1
make[2]: *** [make/Main.gmk:199: java.rmi-java] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [CompileJavaModules.gmk:593: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/jdk/modules/jdk.compiler/_the.jdk.compiler_batch] Error 1
make[2]: *** [make/Main.gmk:199: java.xml-java] Error 2
make[3]: *** [CompileJavaModules.gmk:593: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/jdk/modules/jdk.localedata/_the.jdk.localedata_batch] Error 1
make[3]: *** [CompileJavaModules.gmk:593: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/jdk/modules/jdk.crypto.cryptoki/_the.jdk.crypto.cryptoki_batch] Error 1
make[2]: *** [make/Main.gmk:199: jdk.compiler-java] Error 2
make[2]: *** [make/Main.gmk:199: jdk.localedata-java] Error 2
make[2]: *** [make/Main.gmk:199: jdk.crypto.cryptoki-java] Error 2
make[3]: *** [CompileJavaModules.gmk:593: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/jdk/modules/jdk.scripting.nashorn/_the.jdk.scripting.nashorn_batch] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [make/Main.gmk:199: jdk.scripting.nashorn-java] Error 2
/build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/src/hotspot/cpu/x86/macroAssembler_x86.cpp: In member function 'void MacroAssembler::serialize_memory(Register, Register)':
/build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/src/hotspot/cpu/x86/macroAssembler_x86.cpp:3736:11: warning: 'index.Address::_rspec.RelocationHolder::_relocbuf[2]' is used uninitialized [-Wuninitialized]
 3736 |   Address index(noreg, tmp, Address::times_1);
      |           ^~~~~
/build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/src/hotspot/cpu/x86/macroAssembler_x86.cpp:3736:11: warning: 'index.Address::_rspec.RelocationHolder::_relocbuf[3]' is used uninitialized [-Wuninitialized]
/build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/src/hotspot/cpu/x86/macroAssembler_x86.cpp:3736:11: warning: 'index.Address::_rspec.RelocationHolder::_relocbuf[4]' is used uninitialized [-Wuninitialized]
/usr/bin/ld: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/hotspot/variant-server/libjvm/objs/adaptiveFreeList.o: warning: relocation in read-only section `.text'
/usr/bin/ld: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/hotspot/variant-server/libjvm/objs/adaptiveFreeList.o: warning: relocation in read-only section `.text'
/usr/bin/ld: BFD (GNU Binutils) 2.38 assertion fail /usr/src/debug/binutils-gdb/bfd/elfxx-x86.c:529
/usr/bin/ld: BFD (GNU Binutils) 2.38 assertion fail /usr/src/debug/binutils-gdb/bfd/elfxx-x86.c:529
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
make[3]: *** [lib/CompileJvm.gmk:155: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/support/modules_libs/java.base/server/libjvm.so] Error 1
make[3]: *** Deleting file '/build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/support/modules_libs/java.base/server/libjvm.so'
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [lib/CompileGtest.gmk:64: /build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/hotspot/variant-server/libjvm/gtest/libjvm.so] Error 1
make[3]: *** Deleting file '/build/java11-openjdk/src/jdk11u-jdk-11.0.15-10/build/linux-x86-normal-server-release/hotspot/variant-server/libjvm/gtest/libjvm.so'
make[2]: *** [make/Main.gmk:272: hotspot-server-libs] Error 2

ERROR: Build failed for targets 'images legacy-jre-image docs' in configuration 'linux-x86-normal-server-release' (exit code 2) 
Stopping sjavac server

Admin
Andreas Baumann commented on 05.05.2022 15:27

I especially like failing assertions in the linker:

/usr/bin/ld: BFD (GNU Binutils) 2.38 assertion fail /usr/src/debug/binutils-gdb/bfd/elfxx-x86.c:529
Admin
Andreas Baumann commented on 05.05.2022 15:28

There is the possibility that newer compilers make a mess here, this means that
in the future we might have to resort to older compilers and linkers to build java?

Admin
Andreas Baumann commented on 17.06.2022 10:57
/usr/bin/ld: /build/java17-openjdk/src/jdk17u-jdk-17.0.3-7/build/linux-x86-server-release/hotspot/variant-server/libjvm/objs/accessBackend.o: direct GOT relocation R_386_GOT32X against `_Copy_conjoint_jshorts_atomic' without base register can not be used when making a shared object
/usr/bin/ld: failed to set dynamic section sizes: Success

ERROR: Build failed for targets 'images legacy-jre-image docs' in configuration 'linux-x86-server-release' (exit code 2)
collect2: error: ld returned 1 exit status
make[3]: *** [lib/CompileJvm.gmk:144: /build/java17-openjdk/src/jdk17u-jdk-17.0.3-7/build/linux-x86-server-release/support/modules_libs/java.base/server/libjvm.so] Error 1
make[2]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing