Hi, On 08/24/2012 03:30 PM, Developer Ubuntu wrote: > Hi, > I am getting following error building JDK7 source.
It looks like you are trying to build hg.openjdk.java.net/jdk7/tl/. That's very out-of-date. Most of the problems you have mentioned here are fixed in the jdk7u (the u is for updates) forest. Try http://hg.openjdk.java.net/jdk7u/jdk7u6 instead. > Details are added after > error information. I have made both following changes one by one to > overcome "OS not supported message" inside .....hotspot/make/linux/Makefile > DISABLE_HOTSPOT_OS_VERSION_CHECK=ok > SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 2.7% 3.% This was fixed with: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/ca1f1753c866 > g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. > -I/Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/prims > -I/Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm > -I/Softwares/mercurialrepo/jdk7/mytl/hotspot/src/cpu/x86/vm > -I/Softwares/mercurialrepo/jdk7/mytl/hotspot/src/os_cpu/linux_x86/vm > -I/Softwares/mercurialrepo/jdk7/mytl/hotspot/src/os/linux/vm > -I/Softwares/mercurialrepo/jdk7/mytl/hotspot/src/os/posix/vm -I../generated > -DHOTSPOT_RELEASE_VERSION="\"21.0-b16\"" > -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"jdkbuilder\"" > -DHOTSPOT_LIB_ARCH=\"amd64\" > -DJRE_RELEASE_VERSION="\"1.7.0-internal-jdkbuilder_2012_08_25_00_09-b00\"" > -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -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 -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 > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/precompiled.hpp -o > precompiled.hpp.gch > In file included from > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/prims/methodHandles.hpp:32:0, > from > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/ci/ciMethod.hpp:33, > from > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/code/debugInfoRec.hpp:30, > from > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/ci/ciEnv.hpp:31, > from > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/ci/ciUtilities.hpp:28, > from > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/ci/ciNullObject.hpp:30, > from > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/ci/ciConstant.hpp:29, > from > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/precompiled.hpp:36: > /Softwares/mercurialrepo/jdk7/mytl/hotspot/src/share/vm/runtime/interfaceSupport.hpp:430:0: > error: "__LEAF" redefined [-Werror] > /usr/include/x86_64-linux-gnu/sys/cdefs.h:44:0: note: this is the location > of the previous definition > cc1plus: all warnings being treated as errors > make[6]: *** [precompiled.hpp.gch] Error 1 > make[6]: Leaving directory > `/Softwares/mercurialrepo/jdk7/mytl/build/linux-amd64/hotspot/outputdir/linux_amd64_compiler2/product' > make[5]: *** [the_vm] Error 2 > make[5]: Leaving directory > `/Softwares/mercurialrepo/jdk7/mytl/build/linux-amd64/hotspot/outputdir/linux_amd64_compiler2/product' > make[4]: *** [product] Error 2 > make[4]: Leaving directory > `/Softwares/mercurialrepo/jdk7/mytl/build/linux-amd64/hotspot/outputdir' > make[3]: *** [generic_build2] Error 2 > make[3]: Leaving directory `/Softwares/mercurialrepo/jdk7/mytl/hotspot/make' > make[2]: *** [product] Error 2 > make[2]: Leaving directory `/Softwares/mercurialrepo/jdk7/mytl/hotspot/make' > make[1]: *** [hotspot-build] Error 2 > make[1]: Leaving directory `/Softwares/mercurialrepo/jdk7/mytl' > make: *** [build_product_image] Error 2 > Fixed with: http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/a6eef545f1a2 Cheers, Omair