Fwd: Debian #1115228: openjdk-8: FTBFS with glibc 2.42 due to conflict with the newly added uabs function from ISO C2y
Severin Gehwolf
sgehwolf at redhat.com
Mon Sep 15 08:41:03 UTC 2025
This is tracked in (not in JDK 11 or JDK 8 yet):
https://bugs.openjdk.org/browse/JDK-8354941
Thanks,
Severin
On Sun, 2025-09-14 at 17:46 +0200, Thorsten Glaser wrote:
> Hi,
>
> OpenJDK 8 will not build under C2y (C26?) or with the next glibc
> any more. Are you going to fix this upstream?
>
> The options are probably probing for it and using the standard
> function when present, or renaming it and always using the own.
>
> Thanks in advance,
> //mirabilos
>
> ---------- Forwarded message ----------
> From: Aurelien Jarno <aurel32 at debian.org>
> Message-ID: <175784982235.2811304.14814533927099270669.reportbug at ohm.local>
> Date: Sun, 14 Sep 2025 13:37:02
> Subject: Bug#1115228: openjdk-8: FTBFS with glibc 2.42 due to conflict with the
> newly added uabs function
>
> Source: openjdk-8
> Version: 8u462-ga-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
>
> --------------------------------------------------------------------------------
> [...]
> /usr/bin/x86_64-linux-gnu-g++-14 -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/<<PKGBUILDDIR>>/src/hotspot/src/share/vm/prims -I/<<PKGBUILDDIR>>/src/hotspot/src/share/vm -I/<<PKGBUILDDIR>>/src/hotspot/src/share/vm/precompiled -I/<<PKGBUILDDIR>>/src/hotspot/src/cpu/x86/vm -I/<<PKGBUILDDIR>>/src/hotspot/src/os_cpu/linux_x86/vm -I/<<PKGBUILDDIR>>/src/hotspot/src/os/linux/vm -I/<<PKGBUILDDIR>>/src/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.462-b08\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"buildd\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DDEB_MULTIARCH="\"x86_64-linux-gnu\"" -fstack-protector -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DINCLUDE_JFR=1 -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -fno-strict-aliasing -fno-omit-frame-pointer -O3 -DVM_LITTLE_ENDIAN -D_LP64=1 -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type -Woverloaded-virtual -fstack-protector -Wdate-time -D_FORTIFY_SOURCE=2 -g -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -c -MMD -MP -MF ../generated/dependencies/precompiled.hpp.gch.d -fpch-deps -x c++-header /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/precompiled/precompiled.hpp -o precompiled.hpp.gch && { echo Done with ; }
> cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++
> In file included from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/utilities/debug.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/runtime/globals.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/memory/allocation.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/memory/iterator.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/memory/genOopClosures.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/oops/klass.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/runtime/handles.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/memory/universe.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/code/oopRecorder.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/asm/codeBuffer.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/asm/assembler.hpp:28,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/precompiled/precompiled.hpp:29:
> /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1276:28: error: 'unsigned int uabs(int)' was declared 'extern' and later 'static' [-fpermissive]
> 1276 | static inline unsigned int uabs(int n) { return uabs((unsigned int)n); }
> | ^~~~
> In file included from /usr/include/c++/14/cstdlib:79,
> from /usr/include/c++/14/stdlib.h:36,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:39,
> from /<<PKGBUILDDIR>>/src/hotspot/src/share/vm/utilities/globalDefinitions.hpp:38:
> /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[7]: *** [/<<PKGBUILDDIR>>/src/hotspot/make/linux/makefiles/vm.make:317: precompiled.hpp.gch] Error 1
> gmake[7]: Leaving directory '/<<PKGBUILDDIR>>/build/hotspot/linux_amd64_compiler2/product'
> gmake[6]: *** [/<<PKGBUILDDIR>>/src/hotspot/make/linux/makefiles/top.make:119: the_vm] Error 2
> gmake[6]: Leaving directory '/<<PKGBUILDDIR>>/build/hotspot/linux_amd64_compiler2/product'
> gmake[5]: *** [/<<PKGBUILDDIR>>/src/hotspot/make/linux/Makefile:284: product] Error 2
> gmake[5]: Leaving directory '/<<PKGBUILDDIR>>/build/hotspot'
> gmake[4]: *** [Makefile:231: generic_build2] Error 2
> gmake[4]: Leaving directory '/<<PKGBUILDDIR>>/src/hotspot/make'
> gmake[3]: *** [Makefile:177: product] Error 2
> gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/src/hotspot/make'
> gmake[2]: *** [HotspotWrapper.gmk:45: /<<PKGBUILDDIR>>/build/hotspot/_hotspot.timestamp] Error 2
> gmake[2]: Leaving directory '/<<PKGBUILDDIR>>/src/make'
> make[1]: *** [/<<PKGBUILDDIR>>/src//make/Main.gmk:110: hotspot-only] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>/build'
> make: *** [debian/rules:1138: stamps/build] Error 1
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
> --------------------------------------------------------------------------------
More information about the jdk8u-dev
mailing list