This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj broken on darwin
- From: Matthias Klose <doko at ubuntu dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>, gcc at gcc dot gnu dot org, java at gcc dot gnu dot org
- Date: Wed, 19 Mar 2008 14:56:40 +0100
- Subject: Re: gcj broken on darwin
- References: <20080319035935.GA31707@bromo.msbb.uc.edu> <47E10F23.4030600@redhat.com>
Andrew Haley schrieb:
> Jack Howarth wrote:
>> It appears that gcj in gcc 4.3.0 is broken on Darwin. If
>> one builds gcc 4.3.0 executing...
>>
>> contrib/download_ecj
>>
>> before running configure, the build succeeds in creating an
>> ecj1 but when gcj is used to compile an example like testme.java...
>>
>> public class testme {
>> public static void main(String args[]){
>> System.out.println("Hello");
>> }
>> }
>>
>> the command fails with the error...
>>
>> gcj testme.java
>> Undefined symbols:
>> "_main", referenced from:
>> start in crt1.10.5.o
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>>
>> Any idea how to work around this?
>
> It might be worth building the 4.3 branch, not 4.3.0.
>
> Andrew.
isn't this just a missing --main=testme option?
Matthias