Problems self-hosting OpenJDK7 on OSX 10.5.5
Kelly O'Hair
Kelly.Ohair at Sun.COM
Mon Nov 10 11:04:00 PST 2008
I've had some continuing problems with running 'ant' on all the jdk
build platforms. If you look at the langtools/make/Makefile (which just
trys to run ant) you can see the gyrations it goes through itself.
Initially I had assumed that setting both ANT_HOME and JAVA_HOME was important,
but now I think it's better to not set ANT_HOME at all, but just make sure
that the 'ant' you want is in your PATH, and if ANT_HOME is set it's critical
that these are one in the same (Only Windows seems to need the ANT_HOME set).
I usually use a private ant 1.7.0 install of my own and have never had
any problems, but when using the ant installed on the systems, that's when
I had problems, which seemed to go away if I just avoided using ANT_HOME.
Part of this may be due to the layout of the system ant installations,
I don't know.
You'll notice in the langtools/make/Makefile that it goes to great pains to
make sure that 'ant' is run with ALT_BOOTDIR as it's java, and also sets
JAVA_HOME and the ant property for it.
So if the langtools 'ant' build is failing, it could very well be a serious
problem with the jdk supplied as the ALT_BOOTDIR.
Hope this helps some.
-kto
Ben Evans wrote:
> Hi,
>
> I'm trying to follow Landon's instructions at:
> http://landonf.bikemonkey.org/code/java/SoyLatte_Meets_OpenJDK.20080819.html
> for building OpenJDK 7 on a Mac.
>
> I'm successfully able to build it using SoyLatte, but when I try to
> rerun the build after having successfully installed the new j2sdk, ie
> self-hosting via:
>
> CatBasket:bsd-port boxcat$ make
> ALT_BOOTDIR=/usr/local/openjdk17-2008-11-06
> ALT_BINARY_PLUGS_PATH=/Users/boxcat/jdk-7-icedtea-plugs
> ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include
> ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib ALT_CUPS_HEADERS_PATH=/usr/include
> ANT_HOME=/usr/share/ant NO_DOCS=true HOTSPOT_BUILD_JOBS=1
> ALT_JDK_IMPORT_PATH=/usr/local/openjdk17-2008-11-06
>
> Then I get the following output:
>
> [.. settings, etc]
>
> build-bootstrap-javac:
> [mkdir] Created dir:
> /Users/boxcat/projects/jdk7-clean/bsd-port/build/bsd-i586/langtools/build/bootstrap/gensrc
> [mkdir] Created dir:
> /Users/boxcat/projects/jdk7-clean/bsd-port/build/bsd-i586/langtools/build/bootstrap/classes
> [pcompile] Generating 7 resource files to
> /Users/boxcat/projects/jdk7-clean/bsd-port/build/bsd-i586/langtools/build/bootstrap/gensrc
> [copy] Copying 1 file to
> /Users/boxcat/projects/jdk7-clean/bsd-port/build/bsd-i586/langtools/build/bootstrap/gensrc
> [pcompile] Generating 1 resource files to
> /Users/boxcat/projects/jdk7-clean/bsd-port/build/bsd-i586/langtools/build/bootstrap/gensrc
> [javac] Compiling 8 source files to
> /Users/boxcat/projects/jdk7-clean/bsd-port/build/bsd-i586/langtools/build/bootstrap/classes
>
> BUILD FAILED
> /Users/boxcat/projects/jdk7-clean/bsd-port/langtools/make/build.xml:177:
> The following error occurred while executing this line:
> /Users/boxcat/projects/jdk7-clean/bsd-port/langtools/make/build.xml:414:
> The following error occurred while executing this line:
> /Users/boxcat/projects/jdk7-clean/bsd-port/langtools/make/build.xml:452:
> The following error occurred while executing this line:
> /Users/boxcat/projects/jdk7-clean/bsd-port/langtools/make/build.xml:501:
> Compile failed; see the compiler error output for details.
>
> Total time: 2 seconds
> make[2]: *** [build] Error 1
> make[1]: *** [langtools-build] Error 2
> make: *** [build_product_image] Error 2
> CatBasket:bsd-port boxcat$
>
> I can't even seem to find any compiler output.
>
> Can anyone see what's causing this problem? Please point me at a "How to
> Ask For Help" doc if one exists, or tell me what other information would
> be useful in diagnosing the problem.
>
> Thanks,
>
> Ben
>
>
> ------------------------------------------------------------------------
>
>
More information about the bsd-port-dev
mailing list