Building Java 7 on OS X Snow Leopard
Dave Cheney
dave at cheney.net
Fri Oct 23 04:33:00 PDT 2009
It appears you have to pass
make \
ALT_BOOTDIR=/Users/dave/jdk7/soylatte16-i386-1.0.3 \
JAVA_TOOLS_DIR=/Users/dave/jdk7/soylatte16-i386-1.0.3/bin \
both ALT_BOOTDIR and JAVA_TOOLS_DIR to compile.
Cheers
Dave
On 23/10/2009, at 8:56 AM, Oliver Schrenk wrote:
> Hi,
>
> I was following the thread so far as I also am trying to build Java 7
> on my machine. Still no luck though.
>
> I run into this error:
>
> make[4]: /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/
> javah: No such file or directory
> make[4]: *** [/Users/Oliver/Development/projects/university/bsd-port/
> build/bsd-i586/tmp/java/java.lang/java/obj/.class.headers.i586]
> Error 1
> make[3]: *** [all] Error 1
> make[2]: *** [all] Error 1
> make[1]: *** [jdk-build] Error 2
> make: *** [build_product_image] Error 2
>
> From my previous tries to build Java 7, I changed the symbolic links
> of gcc and g++ to the 4.0.1 versions and I use this commands to build
> the JDK:
>
> $ hg fclone http://hg.openjdk.java.net/bsd-port/bsd-port
> $ cd bsd-port/hotspot
> $ patch -p1 /Users/Oliver/Downloads/snowleopard.patch
> $ cd ..
> $ export LC_ALL=C
> $ export LANG=C
> $ unset CLASSPATH
> $ unset JAVA_HOME
>
> $ make \
> ALT_BOOTDIR=/Users/Oliver/Downloads/soylatte16-i386-1.0.3/ \
> ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include \
> ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib \
> ALT_JIBX_LIBS_PATH=/Users/Oliver/Downloads/jibx-1.1.6a \
> ALT_CUPS_HEADERS_PATH=/usr/include \
> ANT_HOME=/usr/share/ant \
> ARCH_DATA_MODEL=32 \
> NO_DOCS=true \
> CC="gcc-4.0" \
> CXX="g++-4.0" \
> HOTSPOT_BUILD_JOBS=2
>
> I guess I miss something very simple as the first line of the error
> states " /NOT-SET/". The sanity check passes though.
> Any ideas?
>
> Thanks
> Oliver
>
>
>
>
More information about the bsd-port-dev
mailing list