Bug#1115230: openjdk-11-jre-dcevm: FTBFS with glibc 2.42 due to conflict with the newly added uabs function
Aurelien Jarno
aurel32 at debian.org
Sun Sep 14 12:37:17 BST 2025
Source: openjdk-11-jre-dcevm
Version: 11.0.15+1-1
Severity: important
Tags: ftbfs forky sid
Justification: fails to build from source
User: debian-glibc at lists.debian.org
Usertags: glibc-2.42
Dear maintainer,
During a rebuild of all packages in unstable with glibc 2.42 from
experimental, your package failed to build. Below you will find how the
build ends. If required, the full build log is available here:
https://people.debian.org/~aurel32/glibc-2.42/
The build failure is due to the addition of the uabs function (part of
ISO C2Y) to glibc 2.42, now conflicting with the openjdk source code:
https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=f0b0e924a45c7698e6ca6415f2d9a096a24e37df;hb=d2097651cc57834dbfcaa102ddfacae0d86cfb66#l22
About the archive rebuild: The build was made on virtual machines from
AWS, using sbuild, a reduced chroot with only build-essential packages
and glibc 2.42 from experimental.
Regards
Aurelien
--------------------------------------------------------------------------------
[...]
make hotspot
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Building target 'hotspot' in configuration 'linux-x86_64-normal-server-release'
Creating hotspot/variant-server/tools/adlc/adlc from 13 file(s)
Compiling 2 files for BUILD_JVMTI_TOOLS
Compiling 1 files for BUILD_JFR_TOOLS
Creating support/modules_libs/java.base/server/libjvm.so from 920 file(s)
In file included from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/align.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/runtime/globals.hpp:29,
from /<<PKGBUILDDIR>>/src/hotspot/share/memory/allocation.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/oops/array.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/memory/universe.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/code/oopRecorder.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/asm/codeBuffer.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/asm/assembler.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/precompiled/precompiled.hpp:31:
/<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions.hpp:1181:28: error: 'unsigned int uabs(int)' was declared 'extern' and later 'static' [-fpermissive]
1181 | static inline unsigned int uabs(int n) { return uabs((unsigned int)n); }
| ^~~~
In file included from /usr/include/c++/15/cstdlib:83,
from /usr/include/c++/15/stdlib.h:36,
from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:39,
from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions.hpp:32:
/usr/include/stdlib.h:989:21: note: previous declaration of 'unsigned int uabs(int)'
989 | extern unsigned int uabs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~~
In file included from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/align.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/runtime/globals.hpp:29,
from /<<PKGBUILDDIR>>/src/hotspot/share/memory/allocation.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/oops/array.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/memory/universe.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/code/oopRecorder.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/asm/codeBuffer.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/asm/assembler.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/precompiled/precompiled.hpp:31:
/<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions.hpp:1181:28: error: 'unsigned int uabs(int)' was declared 'extern' and later 'static' [-fpermissive]
1181 | static inline unsigned int uabs(int n) { return uabs((unsigned int)n); }
| ^~~~
In file included from /usr/include/c++/15/cstdlib:83,
from /usr/include/c++/15/stdlib.h:36,
from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:39,
from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions.hpp:32:
/usr/include/stdlib.h:989:21: note: previous declaration of 'unsigned int uabs(int)'
989 | extern unsigned int uabs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~~
gmake[5]: *** [lib/CompileJvm.gmk:160: /<<PKGBUILDDIR>>/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.gch] Error 1
gmake[5]: *** Waiting for unfinished jobs....
gmake[5]: *** [lib/CompileGtest.gmk:64: /<<PKGBUILDDIR>>/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/gtest/objs/precompiled/precompiled.hpp.gch] Error 1
gmake[4]: *** [make/Main.gmk:272: hotspot-server-libs] Error 2
ERROR: Build failed for target 'hotspot' in configuration 'linux-x86_64-normal-server-release' (exit code 2)
=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_gtest_objs_precompiled_precompiled.hpp.gch:
In file included from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/align.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/runtime/globals.hpp:29,
from /<<PKGBUILDDIR>>/src/hotspot/share/memory/allocation.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/oops/array.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/memory/universe.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/code/oopRecorder.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/asm/codeBuffer.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/asm/assembler.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/precompiled/precompiled.hpp:31:
/<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions.hpp:1181:28: error: 'unsigned int uabs(int)' was declared 'extern' and later 'static' [-fpermissive]
1181 | static inline unsigned int uabs(int n) { return uabs((unsigned int)n); }
| ^~~~
In file included from /usr/include/c++/15/cstdlib:83,
from /usr/include/c++/15/stdlib.h:36,
from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:39,
... (rest of output omitted)
* For target hotspot_variant-server_libjvm_objs_precompiled_precompiled.hpp.gch:
In file included from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/align.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/runtime/globals.hpp:29,
from /<<PKGBUILDDIR>>/src/hotspot/share/memory/allocation.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/oops/array.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/memory/universe.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/code/oopRecorder.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/asm/codeBuffer.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/asm/assembler.hpp:28,
from /<<PKGBUILDDIR>>/src/hotspot/share/precompiled/precompiled.hpp:31:
/<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions.hpp:1181:28: error: 'unsigned int uabs(int)' was declared 'extern' and later 'static' [-fpermissive]
1181 | static inline unsigned int uabs(int n) { return uabs((unsigned int)n); }
| ^~~~
In file included from /usr/include/c++/15/cstdlib:83,
from /usr/include/c++/15/stdlib.h:36,
from /<<PKGBUILDDIR>>/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:39,
... (rest of output omitted)
* All command lines available in /<<PKGBUILDDIR>>/build/linux-x86_64-normal-server-release/make-support/failure-logs.
=== End of repeated output ===
No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.
make[3]: *** [/<<PKGBUILDDIR>>/make/Init.gmk:305: main] Error 2
make[2]: *** [/<<PKGBUILDDIR>>/make/Init.gmk:186: hotspot] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:10: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the pkg-java-maintainers
mailing list