Building IcedTea7 Using BSD option On OS X
Andrew John Hughes
gnu_andrew at member.fsf.org
Sat Jan 10 16:56:21 PST 2009
2009/1/10 Michael Franz <mvfranz at gmail.com>:
> On Sat, Jan 10, 2009 at 4:45 AM, Christian Thalinger
> <christian.thalinger at gmail.com> wrote:
>> On Fri, 2009-01-09 at 18:51 -0500, Michael Franz wrote:
>> > Christian,
>> > I have had some success using Cacao. The instructions you pointed me
>> > too seem out of date and seem be part of some other discussion (I feel
>> > like I am starting in the middle of something when I read them).
>> Starting in the middle? Well, the instructions for GNU Classpath are
>> missing. Anything else?
> Perhaps I don't understand what this process is suppose to accomplish. I
> thought it was to allow building of icedtea/opendjk using classpath/cacao
> (instead of apple's jdk). So, I have classpath installed and configured to
> use cacaovm, but during the icedtea build process it downloads cacao and
> tries to build it. The build fails since there is linux specific code in:
> jvm.c:3719:3: error: #error not implemented for this OS
> I don't know why this did not happen when I built it manually.
> So, does this mean that it is trying to build cacao instead of the openjdk
I think you ran into exactly the issue that renaming the option
--enable-cacao was aiming at. --enable-cacao (still --with-cacao in
IcedTea6 AFAIK) turns on the build of CACAO+OpenJDK class library as
opposed to HotSpot+OpenJDK class library. The default build is set up
for a GNU Classpath JDK as a build option. You should have a JDK-like
tree around CACAO+Classpath with jre/lib/rt.jar symlinked to
Classpath's glibj.zip and bin/java symlinked to cacao. I think cacao
has an option to build such a structure in its configure options.
Then you point the build to it using --with-gcj-home. For the time
being, you also need to point IcedTea7 to the class library explicitly
(--with-libgcj-jar=$JDK_HOME/jre/lib/rt.jar) but this will be
defaulted on the next IcedTea6->7 merge.
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
More information about the bsd-port-dev