← Back to team overview

openjdk team mailing list archive

Bug#972288: openjdk-11 FTBFS with gcc-10

 

Source: openjdk-11
Version: 11.0.8+10-1.1
Severity: serious
Tags: ftbfs

openjdk-11 fails to build from source due to gcc-10 defaulting to
-fno-commons.

https://tests.reproducible-builds.org/debian/rbuild/bullseye/amd64/openjdk-11_11.0.8+10-1.1.rbuild.log.gz
| /usr/bin/ld: /build/openjdk-11-11.0.8+10/build/support/native/java.base/libjava/childproc.o:./make/./src/java.base/unix/native/libjava/childproc.h:121: multiple definition of `parentPathv'; /build/openjdk-11-11.0.8+10/build/support/native/java.base/libjava/ProcessImpl_md.o:./make/./src/java.base/unix/native/libjava/childproc.h:121: first defined here

http://crossqa.debian.net/build/openjdk-11_11.0.8+10-1_armel_20200930210757.log
| ( /bin/rm -f /<<PKGBUILDDIR>>/build/buildjdk/support/native/java.base/libjava/BUILD_LIBJAVA_link.log && /usr/bin/x86_64-linux-gnu-gcc -Wl,--hash-style=both -Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-O1 -L/<<PKGBUILDDIR>>/build/buildjdk/support/modules_libs/java.base -L/<<PKGBUILDDIR>>/build/buildjdk/support/modules_libs/java.base/server -shared -Wl,--exclude-libs,ALL -Wl,-z,origin -Wl,-rpath,\$ORIGIN -Wl,-soname=libjava.so -o /<<PKGBUILDDIR>>/build/buildjdk/support/modules_libs/java.base/libjava.so @/<<PKGBUILDDIR>>/build/buildjdk/support/native/java.base/libjava/_BUILD_LIBJAVA_objectfilenames.txt /<<PKGBUILDDIR>>/build/buildjdk/support/native/java.base/libfdlibm.a -ljvm -lverify -ldl > >(/usr/bin/tee -a /<<PKGBUILDDIR>>/build/buildjdk/support/native/java.base/libjava/BUILD_LIBJAVA_link.log) 2> >(/usr/bin/tee -a /<<PKGBUILDDIR>>/build/buildjdk/support/native/java.base/libjava/BUILD_LIBJAVA_link.log >&2) || ( exitcode=$? && /bin/cp /<<PKGBUILDDIR>>/build/buildjdk/support/native/java.base/libjava/BUILD_LIBJAVA_link.log /<<PKGBUILDDIR>>/build/make-support/failure-logs/buildjdk_support_native_java.base_libjava_BUILD_LIBJAVA_link.log && /bin/cp /<<PKGBUILDDIR>>/build/buildjdk/support/native/java.base/libjava/BUILD_LIBJAVA_link.cmdline /<<PKGBUILDDIR>>/build/make-support/failure-logs/buildjdk_support_native_java.base_libjava_BUILD_LIBJAVA_link.cmdline && exit $exitcode ) ) ; 
| /usr/bin/ld: /<<PKGBUILDDIR>>/build/buildjdk/support/native/java.base/libjava/childproc.o:/<<PKGBUILDDIR>>/src/java.base/unix/native/libjava/childproc.h:121: multiple definition of `parentPathv'; /<<PKGBUILDDIR>>/build/buildjdk/support/native/java.base/libjava/ProcessImpl_md.o:/<<PKGBUILDDIR>>/src/java.base/unix/native/libjava/childproc.h:121: first defined here
| collect2: error: ld returned 1 exit status
| gmake[5]: *** [CoreLibraries.gmk:101: /<<PKGBUILDDIR>>/build/buildjdk/support/modules_libs/java.base/libjava.so] Error 1

Helmut