This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcj broken on darwin
- From: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- To: gcc at gcc dot gnu dot org
- Cc: java at gcc dot gnu dot org
- Date: Tue, 18 Mar 2008 23:59:35 -0400
- Subject: gcj broken on darwin
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?
Jack