Error building jdk7 on ubuntu 12.04 64 bit inside VirtualBox (original) (raw)

Omair Majid omajid at redhat.com
Fri Aug 24 21:59:04 UTC 2012


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 DISABLEHOTSPOTOSVERSIONCHECK=ok SUPPORTEDOSVERSION = 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 -DGNUSOURCE -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/oscpu/linuxx86/vm -I/Softwares/mercurialrepo/jdk7/mytl/hotspot/src/os/linux/vm -I/Softwares/mercurialrepo/jdk7/mytl/hotspot/src/os/posix/vm -I../generated -DHOTSPOTRELEASEVERSION=""21.0-b16"" -DHOTSPOTBUILDTARGET=""product"" -DHOTSPOTBUILDUSER=""jdkbuilder"" -DHOTSPOTLIBARCH="amd64" -DJRERELEASEVERSION=""1.7.0-internal-jdkbuilder201208250009-b00"" -DHOTSPOTVMDISTRO=""OpenJDK"" -DTARGETOSFAMILYlinux -DTARGETARCHx86 -DTARGETARCHMODELx8664 -DTARGETOSARCHlinuxx86 -DTARGETOSARCHMODELlinuxx8664 -DTARGETCOMPILERgcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -DREENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -O3 -fno-strict-aliasing -DVMLITTLEENDIAN -DLP64=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/x8664-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/linuxamd64compiler2/product'_ _make[5]: *** [thevm] Error 2_ _make[5]: Leaving directory_ _/Softwares/mercurialrepo/jdk7/mytl/build/linux-amd64/hotspot/outputdir/linuxamd64compiler2/product' make[4]: *** [product] Error 2 make[4]: Leaving directory /Softwares/mercurialrepo/jdk7/mytl/build/linux-amd64/hotspot/outputdir'_ _make[3]: *** [genericbuild2] 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: *** [buildproductimage] Error 2

Fixed with: http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/a6eef545f1a2

Cheers, Omair



More information about the build-dev mailing list