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: Andreas Tobler <toa at pop dot agri dot ch>
- To: tromey at redhat dot com
- Cc: GCC-Java <java at gcc dot gnu dot org>
- Date: Wed, 16 Jan 2002 20:14:38 +0100
- Subject: Re: testsuite problems on darwin was: [patch] HAVE_LC_MESSAGES for natSystem.cc
- Organization: zero
- 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>
Tom Tromey wrote:
>
> >>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
>
> Andreas> I tried now with a verbose option.
> Andreas> Now one of the most errors is this one:
> Andreas> /usr/bin/ld: Undefined symbols:
> Andreas> _main <------------
> Andreas> ___gxx_personality_v0
>
> This means that some C++ file isn't being compiled with the "java"
> pragma. You'll have to find out which file; just run nm on the .o's
> until you find one with ___gxx_personality_v0 undefined.
I'd like to if I'd have some o files....
What I had to change so far is the .so into .o, removed the -fPIC since
I don't build shared and the -shared flag.
I do this on the commandline:
[titanium:powerpc-apple-darwin5.2/libjava/testsuite] andreast%
/Volumes/xufs/gccsrc/objdir/gcc/xgcc -B/Volumes/xufs/gccsrc/objdir/gcc/
../../../../gcc/libjava/testsuite/libjava.jni/calls.c -I. -I..
-I../../../../gcc/libjava/testsuite/../include -lm -o libcalls.o
/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
This _main is the most failure I get. Also here:
FAIL: Array_1 compilation from source
ERROR: No `main' given in program Array_1
ERROR: No `main' given in program Array_1
ERROR: No `main' given in program Array_2
ERROR: No `main' given in program Array_2
ERROR: No `main' given in program Array_3
ERROR: No `main' given in program Array_3
So I suspect something basic must be blocking here.
Thanks,
Andreas