Power PC Build

Michael Franz mvfranz at gmail.com
Sun Jan 11 19:52:51 PST 2009


Eric,

On Sun, Jan 11, 2009 at 10:31 PM, Eric Richardson <ekrichardson at gmail.com>wrote:

> Michael,
>
> 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-gcj-home=/Library/Java/Home
> --with-ecj-jar=/opt/local/share/java/eclipse-ecj.jar
> --with-xalan2-jar=/opt/local/share/java/xalan.jar
> --with-xalan2-serializer-jar=/opt/local/share/java/serializer.jar
> --with-xerces2-jar=/opt/local/share/java/xercesImpl.jar
> --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
> openjdk/jdk/make/common/internal/BinaryPlugs.gmk.rej
> ERROR patch patches/icedtea-copy-plugs.patch FAILED!
> WARNING make clean-patch before retrying a fix
> make: *** [stamps/patch.stamp] Error 2
>

I edit the breaking patches out of the Makefile.  That way, all the ones
that do work get applied.  If you just re-run make after this error, the
rest of the patches are not applied (I think) and that might be the cause of
your compilation errors below.


>
>
> Checking patches/ecj/icedtea.patch
> 1 out of 1 hunk FAILED -- saving rejects to file
> openjdk-ecj/corba/make/common/Defs-linux.gmk.rej
> 1 out of 2 hunks FAILED -- saving rejects to file
> openjdk-ecj/jaxp/make/build.xml.rej
> 1 out of 2 hunks FAILED -- saving rejects to file
> openjdk-ecj/jaxws/make/build.xml.rej
> 1 out of 1 hunk FAILED -- saving rejects to file
> openjdk-ecj/jaxws/make/Makefile.rej
> 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
>

I would have thought it would be something like bsd-ppc instead of bsd-Power
Macintosh.


>
> So now I use this as the make command.
>
> make ALT_OUTPUTDIR=`pwd`/build/bsd-PowerMacintosh
> ALT_CUPS_HEADERS_PATH=/opt/local/include
> FREETYPE_HEADERS_PATH=/opt/local/include
> ALT_FREETYPE_LIB_PATH=/opt/local/lib
>
> 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.
>
> build-bootstrap-javac:
>     [javac] Compiling 261 source files to
> /Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build/bootstrap/classes
>     [javac]
> /Users/eric/java/icedtea/openjdk-ecj/langtools/src/share/classes/com/sun/tools/javac/tree/JCTree.java:79:
> interface expected here
>     [javac] public abstract class JCTree implements Tree, Cloneable,
> DiagnosticPosition {
>     [javac]                                         ^
>     [javac]
> /Users/eric/java/icedtea/openjdk-ecj/langtools/src/share/classes/com/sun/tools/javac/tree/JCTree.java:1926:
> 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.
>

Are you using icedtea 6 or 7?  I have been using 7 with the bsd option since
it has all of the bsd changes in it.


>
> 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,
>
No problem.  Getting IcedTea on Power Macs would be very good.

>
> Eric
>

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


More information about the bsd-port-dev mailing list