OpenJDK zero build
Andrew Hughes
gnu.andrew at redhat.com
Mon Jul 8 01:16:37 PDT 2013
----- Original Message -----
> Hi,
>
> This seemed like an appropriate alias for this question. Please redirect me
> if it isn't.
There is zero-dev at openjdk.java.net for Zero. This mailing list is primarily
for IcedTea, but will do.
>
> I'm trying to build the OpenJDK (specifically Hotspot) with only a C++
> interpreter (which I understand is the jvmgzero target) like I would a
> regular OpenJDK build (i.e. not using icedtea) but can't get it to work.
>
> This is the command I'm using to build
> $ ZERO_ARCHDEF=amd64 ZERO_LIBARCH=amd64 ZERO_ENDIANNESS=little
> ZERO_ARCHFLAG="-m64" ARCH_DATA_MODEL=64 ZERO_BUILD=true ... make jvmgzero
>
Did you not run jdk/make/jdk_generic_profile.sh? It sets these variables for
you.
I always just use the default target.
>
> With this I could get to the linking stage, but it failed complaining that
> multiple ffi symbols were missing. This I could fix, trivially, by adding an
> -lffi switch in the Makefile.
>
> This let me link and create test_gamma, which however hangs every time I run
> it [1].
>
> Given it didn't work out of the box I wonder if building zero outside of
> icedtea is even supported? If it is, could someone tell me the exact set of
> flags I'd use to get a working build?
>
You don't say anything about what version you're using. I've built Zero using
plain OpenJDK (i.e. the hard way) a few times in the past, but I believe there
have been issues with recent versions in 7u. On x86_64 GNU/Linux, I haven't
been able to build it with or without IcedTea with any HotSpot later than the
one in 2.1.x.
> Thanks.
> --
>
>
> Krishna S
> skrsn at yahoo.com
>
> [1] http://pastebin.com/NeDq06cc
--
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
More information about the distro-pkg-dev
mailing list