Power PC Build

Eric Richardson ekrichardson at gmail.com
Sun Jan 11 19:31:12 PST 2009


On Sun, Jan 11, 2009 at 2:17 PM, Michael Franz <mvfranz at gmail.com> wrote:

> Eric,
> How is your progress with building on PowerPC?  I have been able to get
> hotspot to compile using Apple's JDK5, but I cannot get the complete JDK to
> build.
> Michael

I'm using this to configure.

export LDFLAGS='-L/opt/local/lib';
./configure --enable-zero=yes --with-project=bsd
--with-rhino=/Users/eric/java-libs/js-engine.jar --disable-liveconnect
--with-libgcj-jar=/Library/Java/Home/jre/lib/rt.jar --disable-alsa

So far, I have a couple of patching problems that I ignored.

Checking patches/hotspot/original/icedtea-version.patch
Applying patches/hotspot/original/icedtea-version.patch
patching file openjdk/hotspot/make/linux/makefiles/vm.make
patching file openjdk/hotspot/src/share/vm/utilities/vmError.cpp
Hunk #1 succeeded at 170 (offset 5 lines).
Hunk #2 succeeded at 347 (offset 7 lines).
Checking patches/icedtea-copy-plugs.patch
1 out of 3 hunks FAILED -- saving rejects to file
ERROR patch patches/icedtea-copy-plugs.patch FAILED!
WARNING make clean-patch before retrying a fix
make: *** [stamps/patch.stamp] Error 2

Checking patches/ecj/icedtea.patch
1 out of 1 hunk FAILED -- saving rejects to file
1 out of 2 hunks FAILED -- saving rejects to file
1 out of 2 hunks FAILED -- saving rejects to file
1 out of 1 hunk FAILED -- saving rejects to file
ERROR patch patches/ecj/icedtea.patch FAILED!

Then I get a error because the system has a space in it.

jdk/make/common/shared/Defs.gmk:478: "WARNING: Value of OUTPUTDIR contains a
space: './build/bsd-Power Macintosh', check or set ALT_OUTPUTDIR"
jdk/make/common/shared/Defs.gmk:498: "WARNING: Value of ABS_OUTPUTDIR
contains a space: '/Users/eric/java/icedtea/openjdk-ecj/build/bsd-Power
Macintosh', check or set ALT_ABS_OUTPUTDIR"
jdk/make/common/shared/Defs.gmk:505: *** "ERROR: Trouble with the absolute
path for OUTPUTDIR 'Check_ALT_OUTPUTDIR'".  Stop.
make: *** [stamps/icedtea-ecj.stamp] Error 2

So now I use this as the make command.

make ALT_OUTPUTDIR=`pwd`/build/bsd-PowerMacintosh

It finds everthing in the configure but when it gets to the build it can't
find cups and freetype - there may be an option in configure but haven't
looked at that yet.
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking cups/ppd.h usability... yes
checking cups/ppd.h presence... yes
checking for cups/ppd.h... yes
checking for FREETYPE2... yes

Finally I get to the ant build and get this error and haven't had a chance
to look at this yet either.

    [javac] Compiling 261 source files to
interface expected here
    [javac] public abstract class JCTree implements Tree, Cloneable,
DiagnosticPosition {
    [javac]                                         ^
cannot find symbol
    [javac] symbol  : class Kind
    [javac] location: class com.sun.tools.javac.tree.JCTree.TypeBoundKind
    [javac]         public Kind getKind() {
    [javac]                ^

Something isn't built obviously. Everybody on the lists has patient and
helpful so I'm sure I'll continue to make progress on the build. I am
interested in the Makefile changes submitted for the bsd port to see if they
will help. Don't know how to try them yet either. New to Mercurial.

I'm glad you are working on the Intel version as the platform should be
virtually identical except for the processor type. compiler flags etc. I
need to use the zero assembly but I guess you wouldn't.

Thanks for asking,

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

More information about the bsd-port-dev mailing list