glibc 2.15 breaks build in icedtea2.0

Dr Andrew John Hughes ahughes at redhat.com
Mon Jan 9 04:39:53 PST 2012


On 16:28 Fri 06 Jan     , Omair Majid wrote:
> On 01/06/2012 01:17 PM, Andreas Radke wrote:
> > g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/prims -I/build/src/icedtea-2.0/openjdk/hotspot/src/share/vm -I/build/src/icedtea-2.0/openjdk/hotspot/src/cpu/x86/vm -I/build/src/icedtea-2.0/openjdk/hotspot/src/os_cpu/linux_x86/vm -I/build/src/icedtea-2.0/openjdk/hotspot/src/os/linux/vm -I/build/src/icedtea-2.0/openjdk/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"21.0-b17\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"nobody\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DJRE_RELEASE_VERSION="\"1.7.0_147-b147\"" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DDERIVATIVE_ID="\"IcedTea7 2.0\"" -DDISTRIBUTION_ID="\"Custom build (Fri Jan  6 18:01:40 UTC 2012)\"" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -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_g
> cc
> >    -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -g -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 -DCOMPILER2 -DCOMPILER1 -fpic -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -g -O3 -fno-strict-aliasing -DVM_LITTLE_ENDIAN -D_LP64=1 -fno-omit-frame-pointer -Werror -Wpointer-arith -Wsign-compare    -c -MMD -MP -MF ../generated/dependencies/precompiled.hpp.gch.d -x c++-header /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/precompiled.hpp -o precompiled.hpp.gch
> > In file included from /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/prims/methodHandles.hpp:32:0,
> >                   from /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/ci/ciMethod.hpp:33,
> >                   from /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/code/debugInfoRec.hpp:30,
> >                   from /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/ci/ciEnv.hpp:31,
> >                   from /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/ci/ciUtilities.hpp:28,
> >                   from /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/ci/ciNullObject.hpp:30,
> >                   from /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/ci/ciConstant.hpp:29,
> >                   from /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/precompiled.hpp:36:
> > /build/src/icedtea-2.0/openjdk/hotspot/src/share/vm/runtime/interfaceSupport.hpp:430:0: error: "__LEAF" redefined [-Werror]
> > /usr/include/sys/cdefs.h:44:0: note: this is the location of the previous definition
> > cc1plus: all warnings being treated as errors
> >
> > make[7]: *** [precompiled.hpp.gch] Error 1
> >
> >
> > Any idea for a fix?
> 
> Upstream hotspot has the fix:
> http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/a6eef545f1a2
> 
> Cheers,
> Omair

Then we need to backport this to IcedTea7 HEAD & 2.0.
-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120109/7cbf3b3d/attachment.bin 


More information about the distro-pkg-dev mailing list