Power PC Build
Eric Richardson
ekrichardson at gmail.com
Sun Jan 11 23:41:03 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.
>
>
>> Okay, I saw the Warning to "make clean-patch" so I commented out the
following patches that did not apply cleanly.
1) Checking patches/icedtea-copy-plugs.patch
2) Checking patches/ecj/icedtea.patch
3) Checking patches/icedtea-version.patch
<clip>
>
But I still get this
(cd ./langtools/make && \
/usr/bin/make JDK_TOPDIR=/Users/eric/java/icedtea/openjdk-ecj/jdk
JDK_MAKE_SHARED_DIR=/Users/eric/java/icedtea/openjdk-ecj/jdk/make/common/shared
EXTERNALSANITYCONTROL=true TARGET_CLASS_VERSION=5 MILESTONE=fcs
BUILD_NUMBER=b42 JDK_BUILD_NUMBER=b42 FULL_VERSION=1.7.0_0-bsd-b42
PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0_0 JDK_MKTG_VERSION=7u
JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0
PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0
ARCH_DATA_MODEL=64 COOKED_JDK_UPDATE_VERSION=0 COOKED_BUILD_NUMBER=42
ANT_HOME="/usr/share/ant"
ALT_OUTPUTDIR=/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools
ALT_BOOTDIR=/Users/eric/java/icedtea/bootstrap/jdk1.6.0 all)
JAVA_HOME=/Users/eric/java/icedtea/bootstrap/jdk1.6.0
ANT_OPTS=-Djava.io.tmpdir='/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build/ant-tmp'
/usr/share/ant/bin/ant -diagnostics >
/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build/ant-diagnostics.log
JAVA_HOME=/Users/eric/java/icedtea/bootstrap/jdk1.6.0
ANT_OPTS=-Djava.io.tmpdir='/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build/ant-tmp'
/usr/share/ant/bin/ant -Djdk.version=1.7.0_0
-Dfull.version='1.7.0_0-bsd-b42' -Drelease=1.7.0_0 -Dbuild.number=b42
-Djavac.target=5
-Dboot.java.home=/Users/eric/java/icedtea/bootstrap/jdk1.6.0
-Dbuild.dir=/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build
-Ddist.dir=/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/dist
build
Buildfile: build.xml
-def-check:
-check-boot.java.home:
-def-pcompile:
[javac] Compiling 2 source files to
/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build/toolclasses
-def-build-classes:
-def-build-jar:
-def-build-tool:
-def-build-bootstrap-tool:
build-bootstrap-javac:
[pcompile] Generating 7 resource files to
/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build/bootstrap/gensrc
[copy] Copying 1 file to
/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build/bootstrap/gensrc
[pcompile] Generating 1 resource files to
/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build/bootstrap/gensrc
[javac] Compiling 8 source files to
/Users/eric/java/icedtea/build/bsd-PowerMacintosh/langtools/build/bootstrap/classes
[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
>
I also found this error but is probably not related. The zip directory
doesn't exist.
for copy_dir in \
`cat
/Users/eric/java/icedtea/tools-copy/tools-langtools-copy-files.txt` ; \
do \
mkdir -p hotspot-tools/$copy_dir ; \
cp -pPRf openjdk/langtools/src/share/classes/$copy_dir/* \
hotspot-tools/$copy_dir ; \
done
cp: cannot stat
`openjdk/langtools/src/share/classes/com/sun/tools/javac/zip//*': No such
file or directory
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090111/a8d44a0a/attachment.html
More information about the bsd-port-dev
mailing list