Power PC Build

Eric Richardson ekrichardson at gmail.com
Tue Dec 30 23:48:42 PST 2008


Andrew,

On Mon, Dec 29, 2008 at 11:30 PM, Andrew John Hughes <
gnu_andrew at member.fsf.org> wrote:

> 2008/12/30 Eric Richardson <ekrichardson at gmail.com>:
> > Michael,
> >
> > On Mon, Dec 29, 2008 at 3:57 PM, Michael Franz <mvfranz at gmail.com>
> wrote:
> >>
> >> Andrew,
> >>
> >> On Sun, Dec 28, 2008 at 6:26 PM, Andrew John Hughes
> >> <gnu_andrew at member.fsf.org> wrote:
> >> <snip>
> >>>
> >>> IcedTea[7] (http://icedtea.classpath.org/hg/icedtea) already has a
> >>> --with-project=bsd option for supporting using the BSD tree in place
> >>> of the main JDK7 tree.  It just needs testing.  I think supporting the
> >>> use of BSD as an alternate icedTea build is the better solution long
> >>> term.  All it really needs is someone will to try building on Mac
> >>> OS/BSD and to maintain it long-term by supplying us with patches.
> >>> No-one currently on the IcedTea team uses BSD or Mac OS X (AFAIK) but
> >>> we're certainly open to more contributors and to supporting more
> >>> platforms.  I'd much prefer this to forking zero support.  There are
> >>> also other features such as the web plugin, web start support, etc. in
> >>> IcedTea that may be useful for BSD and Mac OS X users.
> >>
> >> I made a quick attempt at building icedtea7 on OS X.  The autogen.sh
> fails
> >> with the following:
> >> onfigure.ac:4: installing `./config.guess'
> >> configure.ac:4: installing `./config.sub'
> >> configure.ac:2: installing `./install-sh'
> >> Makefile.am:1304: variable `PULSEAUDIO_SOURCES' is defined but no
> program
> >> or
> >> Makefile.am:1304: library has `PULSEAUDIO' as canonic name (possible
> typo)
> >> Makefile.am:1227: variable `JTREG_SOURCES' is defined but no program or
> >> Makefile.am:1227: library has `JTREG' as canonic name (possible typo)
> >>
> >> Also, I was not able to find IcedTea7 specific instructions.  Are there
> >> any?
> >>
> >> Michael
> >> <snip>
> >
> > I got this same error but tried configure anyway
> >
> > ./configure --with-openjdk-home=/Library/Java/Home --enable-zero=yes
> > --with-project=bsd --with-ecj-jar=/opt/local/share/java/eclipse-ecj.jar
> >
> --with-alt-jar=/System/LibrarFrameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar
> >
> > checking for libgcj-4.3.*.jar...
> > configure: error: "A LIBGCJ jar was not found."
> >
>
> Either use an OpenJDK/IcedTea build by adding --with-openjdk or
> specify --with-libgcj-jar to point to rt.jar.
> As I said in my previous email though, the libgcj build will not work
> with a non-Classpath/GCJ build environment.
> (--with-libgcj-jar is gone from IcedTea6, it will go from 7 when we next
> merge).


This suggestion was very helpful. The problem using the JDK 5 on the Mac is
that instead of having an rt.jar they have classes.jar and ui.jar so you
can't use the --with-openjdk-home  so you must use
--with-libgcj-jar=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar
but unfortunately I had a typo in the path. I have been reading your posts
but much is new and I certainly don't understand it all.

Removing the --with-libgcj-jar cuts off the path to what I am attempting to
do. (icedtea6 no longer works since I updated) If you can use any java 5
complier to create IcedTea JDK, the resultant can be used after that. If it
is possible to keep IcedTea like IcePick "which allows the OpenJDK language
tools (javac, javadoc, javah, javap, apt) to be built separately using any
1.5 compliant Java compiler..." that would be great. Unless there is an
alternate way to point to the runtime jar.


>
> > I thought maybe I could clear this problem by trying to compile
> gcj34(from
> > MacPorts) using gcc42? The gcc 4.0.1 wouldn't do it and I saw a post
> > on  http://trac.macports.org/ticket/9730 that said
> >
>
> How would an ancient gcj help?  You want 4.3
>
> > wontfix the gcj34 port because pdftk compiles just fine on Intel and
> PowerPC
> > Macs using gcc42, which has been the default for pdftk since r25014.
> >
> > Would this help me out for Icetea7 or some other path or is this a dead
> end?
> >
> > What tools (gcc, gcj etc) and versions would be good to start with?
> >
>
> Building GNU Classpath + CACAO might be the easiest option, then use
> that to build IcedTea.
> Or build gcc 4.3 with gcj and use that, but that's probably a bit trickier.


I built gcc 4.2 as this was available via MacPorts.

 Icedtea still looks promising but now I'm stuck on the ALSA part of
configure.

checking for ALSA... no
configure: error: Could not find alsa -   Try installing alsa-lib-devel.

The only thing I could find remotely related was Libao2.

Note: the problem I had before fwas because I was missing pkg.m4 which in
turn got fixed when I installed xorg-libX11.

./configure: line 11562: syntax error near unexpected token `XPROTO,'
./configure: line 11562: `PKG_CHECK_MODULES(XPROTO,
xproto,XPROTO_FOUND=yes,XPROTO_FOUND=no)

Eric

--
> Andrew :-)
>
> Support Free Java!
> Contribute to GNU Classpath and the OpenJDK
> http://www.gnu.org/software/classpath
> http://openjdk.java.net
>
> PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
> Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20081230/fc1f6e8f/attachment.html 


More information about the distro-pkg-dev mailing list