Power PC Build

Eric Richardson ekrichardson at gmail.com
Sun Jan 11 20:59:44 PST 2009


Michael,

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

> 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. I don't have any point of reference on this as I have
> not built on other platforms. I assume it comes from uname.
>

uname -a
Darwin new-host.home 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:39:01
PST 2008; root:xnu-1228.9.59~1/RELEASE_PPC Power Macintosh powerpc
PowerMac8,2 Darwin

***************


>
>
>>
>> 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.
>

Definitely, Icedtea 7. Andrew has made it very clear that Icedtea 7 is
really the only option.


>
>
>
>>
>> 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
>

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


More information about the bsd-port-dev mailing list