This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: testsuite problems on darwin was: [patch] HAVE_LC_MESSAGES for natSystem.cc
- From: Tom Tromey <tromey at redhat dot com>
- To: Andreas Tobler <toa at pop dot agri dot ch>
- Cc: Stan Shebs <shebs at apple dot com>, GCC-Java <java at gcc dot gnu dot org>
- Date: 17 Jan 2002 09:53:45 -0700
- Subject: Re: testsuite problems on darwin was: [patch] HAVE_LC_MESSAGES for natSystem.cc
- References: <3C3DDD9D.DA83FF06@pop.agri.ch> <87hepuuhpv.fsf@creche.redhat.com> <3C3E111E.9105ABBA@pop.agri.ch> <87pu4ga3dm.fsf@creche.redhat.com> <3C40B0AF.FE8EE12@pop.agri.ch> <87bsfy3sq6.fsf@creche.redhat.com> <3C41F5E7.C8F884D7@pop.agri.ch> <87zo3hyh0g.fsf@creche.redhat.com> <3C432DB0.76D5CB32@pop.agri.ch> <87ofjvc56f.fsf@creche.redhat.com> <3C45D11E.D13633D9@pop.agri.ch> <87g056w059.fsf@creche.redhat.com> <3C45E4B9.8C27567C@pop.agri.ch>
- Reply-to: tromey at redhat dot com
>>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
Andreas> Then I do on the command line:
Andreas> [titanium:powerpc-apple-darwin5.2/libjava/testsuite] andreast%
Andreas> /Volumes/xufs/gccsrc/objdir/gcc/gcj -o hello hello.java
Andreas> Is this correct?
You need `--main=hello'.
Andreas> /usr/bin/ld: multiple definitions of symbol _read
Andreas> /usr/lib/libm.dylib(read.o) definition of _read
Andreas> /Volumes/reserved1/gcctmp/lib/gcc-lib/powerpc-apple-darwin5.2/3.1/../../../libgcjgc.a(os_dep.o)
Andreas> definition of _read in section (__TEXT,__text)
Andreas> collect2: ld returned 1 exit status
Andreas> It seems to me that that the basic doesn't run. I guess apple
Andreas> specific stuff <sigh>, flat_namespace ???
I don't know anything about how the Darwin linker might differ from
traditional Unix linkers.
What's going on here is that the GC introduces its own version of
read() which knows to unprotect pages before reading. Whether this is
appropriate for Darwin is something you'll have to figure out.
Tom