Can't build Java 7 on my Mac

Andrew ``Bass'' Shcheglov andrewbass at gmail.com
Mon Dec 2 00:52:01 PST 2013


Hello,

Even if you get to have make in your PATH,
you may still be unable to build Java 7 on Mac OS X 10.5.x.

A while ago, I attempted to build it on my 10.6, using OpenJDK Build
Factory <https://github.com/hgomez/obuildfactory>,
but encountered a number of incompatibilities
<https://github.com/hgomez/obuildfactory/issues/3> between 10.7 and 10.7
API.

While there's a patch <https://github.com/hgomez/obuildfactory/pull/15>
which re-enables building Java 7 on 10.6, it produces a build which may
behave incorrectly on 10.7+ because certain code paths are simply turned
off. I suspect you'll encounter further problems while building on 10.5,
even with OpenJDK Build Factory.

Regards,
Andrew.

Senusi Lewis wrote:
> This is a recording/transcript of what i did to install Java onto my
> machine. This will contain the steps and the results so i can verify
> where it got screwed up..
>
> My Machine is the following:
>
>  Model Name:    Power Mac G5
>   Model Identifier:    PowerMac7,3
>   Processor Name:    PowerPC G5  (3.0)
>   Processor Speed:    2.5 GHz
>   Memory:    4 GB
>   System Version:    Mac OS X 10.5.8 (9L31a)
>   Kernel Version:    Darwin 9.8.0
>
>
> Logged in under senusilewis as user and as administrator for the session
>
>     1.    Download the binaries.
>     2.    Copy the binaries to /usr/local/XXX where the XXX represents
> the binary package like
> /usr/local/openjdk7-zerovm-ppc-jyeary-2012-02-16-07-18-b00
>     3.    Test the installation.
>
> Started Terminal and copied the file
>  openjdk7-zerovm-ppc-jyeary-2012-02-16-07-18-b00.zip  into my
> downloads folder and unzipped it. Made the /usr folder visible and
> moved it into the /usr/local/folder/
>
> /usr/local/openjdk7-zerovm-ppc-jyeary-2012-02-16-07-18-b00/bin/java
> \-version
> openjdk version "1.7.0-internal"
> OpenJDK Runtime Environment (build
> 1.7.0-internal-jyeary_2012_02_16_07_18-b00)
> OpenJDK Zero VM (build 21.0-b17, interpreted mode)
>
> Sicne that worked I installed Mercurial and the forest extension since
> it was mentioned in the sample given.  I don't have MacPorts installed
> so i don't know if this would effect anything else.
>
>
> hg --version
> Mercurial Distributed SCM (version 2.0.2+20120104)
> (see http://mercurial.selenic.com for more information)
>
> Copyright (C) 2005-2011 Matt Mackall and others
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> senusis-power-mac-g5:~ senusilewis$
>
> cat .hgrc
> [ui]
> username = Senusi Lewis <sjlewis01.yahoo.com>
> [extensions]
> #hgext.forest=/Users/senusilewis/hgforest-crew/forest.py
> mq=
> hgk=
> fetch=
> [diff]
> nodates=1
> git=1
>
>
> Since i had a similar .hgrc file i kept going
>
> hg clone http://hg.openjdk.java.net/bsd-port/bsd-port
> cd bsd-port
> chmod 755 get_source.sh
> ./get_source.sh
>
> I ran through the process and got no visible errors when i tried the
> next line i got this for the directory..
>
> ls -l
> total 664
> -rw-r--r--   1 senusilewis  staff    1503 Nov 30 19:17 ASSEMBLY_EXCEPTION
> -rw-r--r--   1 senusilewis  staff   19263 Nov 30 19:17 LICENSE
> -rw-r--r--   1 senusilewis  staff   16341 Nov 30 19:17 Makefile
> -rw-r--r--   1 senusilewis  staff    1808 Nov 30 19:17 README
> -rw-r--r--   1 senusilewis  staff  112920 Nov 30 19:17 README-builds.html
> -rw-r--r--   1 senusilewis  staff  172252 Nov 30 19:17 THIRD_PARTY_README
> drwxr-xr-x  12 senusilewis  staff     408 Nov 30 19:18 corba
> -rwxr-xr-x   1 senusilewis  staff    1376 Nov 30 19:17 get_source.sh
> drwxr-xr-x  14 senusilewis  staff     476 Nov 30 19:36 hotspot
> drwxr-xr-x  16 senusilewis  staff     544 Nov 30 19:24 jaxp
> drwxr-xr-x  16 senusilewis  staff     544 Nov 30 19:22 jaxws
> drwxr-xr-x  13 senusilewis  staff     442 Nov 30 19:37 jdk
> drwxr-xr-x  13 senusilewis  staff     442 Nov 30 19:20 langtools
> drwxr-xr-x  18 senusilewis  staff     612 Nov 30 19:17 make
> drwxr-xr-x   3 senusilewis  staff     102 Nov 30 19:17 test
>
> There it looks similar except that in the example results given. There
> were no .hg, .hgtags or .hgingore files. I was not sure if this wars
> corrrect so i continued with this part.
>
> #!/bin/sh
> cd bsd-port
> time env -i \
>  PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin \
>  LANG=C \
>  make \
>  CC=gcc-4.2 \
>  CXX=g++-4.2 \
>  ALLOW_DOWNLOADS=true \
>  ALT_BOOTDIR=/usr/local/openjdk7-zerovm-ppc-jyeary-2012-01-18-b00 \
>  ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include \
>  ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib \
>  ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts
> \
>  LIBFFI_CFLAGS="-I/usr/include/ffi" \
>  DEFAULT_LIBPATH="/lib:/usr/lib:/usr/X11R6/lib:/usr/local/lib" \
>  NO_DOCS=true \
>  ZERO_BUILD=true \
>  ZERO_ENDIANNESS=big \
>  ZERO_LIBARCH=ppc \
>  ZERO_ARCHDEF=PPC \
>  ZERO_ARCHFLAG="-arch ppc" \
>  PARALLEL_COMPILE_JOBS=4 \
>  HOTSPOT_BUILD_JOBS=2
>
> I  got this as the result and it wasn't built.
>
> env:  make: No such file or directory
>
> real    0m0.072s
> user    0m0.001s
> sys    0m0.005s
>
> What does that mean and what happened?
>
>
>  
> Senusi Lewis
> Amateur Writer and Gardener
> Library Assistant 1
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20131202/64edc927/attachment.html 


More information about the bsd-port-dev mailing list