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: GCC-Java <java at gcc dot gnu dot org>
- Date: 16 Jan 2002 12:45:06 -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>
- Reply-to: tromey at redhat dot com
>>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
Andreas> I don't build shared and the -shared flag.
Andreas> I do this on the commandline:
Andreas> [titanium:powerpc-apple-darwin5.2/libjava/testsuite] andreast%
Andreas> /Volumes/xufs/gccsrc/objdir/gcc/xgcc -B/Volumes/xufs/gccsrc/objdir/gcc/
Andreas> ../../../../gcc/libjava/testsuite/libjava.jni/calls.c -I. -I..
Andreas> -I../../../../gcc/libjava/testsuite/../include -lm -o libcalls.o
Andreas> /usr/bin/ld: Undefined symbols:
Andreas> _main
Andreas> collect2: ld returned 1 exit status
I think this doesn't make sense unless you're trying to build shared.
The JNI tests work by compiling the native (JNI) code into a shared
library, which is then loaded at runtime. You could try adding `-c'
to the above command line so that gcc doesn't try to link. Maybe that
would help. Then you would link the resulting .o directly into the
executable. That might work; I haven't tried it. Anyway the test
suite isn't set up for this.
Andreas> FAIL: Array_1 compilation from source
Andreas> ERROR: No `main' given in program Array_1
Andreas> ERROR: No `main' given in program Array_1
Andreas> ERROR: No `main' given in program Array_2
Andreas> ERROR: No `main' given in program Array_2
Andreas> ERROR: No `main' given in program Array_3
Andreas> ERROR: No `main' given in program Array_3
Try building "hello world" yourself from the command line.
Don't bother with the test suite until you know gcj is working at
least a little bit.
Tom