From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6569 invoked by alias); 7 Jun 2002 15:50:59 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 6531 invoked from network); 7 Jun 2002 15:50:57 -0000 Received: from unknown (HELO gaws12.sd.gat.com) (141.248.128.112) by sources.redhat.com with SMTP; 7 Jun 2002 15:50:57 -0000 Received: from gat.com by gat.com (PMDF V6.1-1 #40944) id <0GXC00801EOVQQ@gat.com> for gcc-help@gcc.gnu.org; Fri, 07 Jun 2002 08:50:56 -0700 (PDT) Date: Fri, 07 Jun 2002 08:50:00 -0000 From: wadedl@gat.com Subject: gcj does not compile Hello World To: gcc-help@gcc.gnu.org Message-id: <0GXC00803EOVQQ@gat.com> MIME-version: 1.0 Content-type: TEXT/PLAIN; CHARSET=us-ascii X-SW-Source: 2002-06/txt/msg00048.txt.bz2 Dear GNU HELP; I built gcc 3.1 using GNU 3.0.4 on my Solaris 2.6 system. I used the configure flags for GNU as and GNU ld. I do not have dejagnu configured, but prelim tests demonstrate gcc, g++ and g77 work. When I tried to compile a simple java program I get the errors shown. The script of my compile, showing the errors, is: Script started on Fri Jun 07 08:42:25 2002 gaws20> hostname gaws20 gaws20> uname -a SunOS gaws20 5.6 Generic_105181-23 sun4m sparc SUNW,SPARCstation-20 gaws20> date Fri Jun 7 08:42:32 PDT 2002 gaws20> env | grep CLASS CLASSPATH=/usr/local/gnu/share/java/libgcj-3.1.jar gaws20> gcj -o HelloWorld HelloWorld.java /usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.1/crt1.o: In function `.nope': /usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.1/crt1.o(.text+0x5c): undefined reference to `main' collect2: ld returned 1 exit status gaws20> exit gaws20> script done on Fri Jun 07 08:42:59 2002 What is going on and how can I fix gcj? Yours Truly, David L. Wade ********************************************************************** David L. Wade EMail: David.Wade@gat.com Senior Systems Programmer Analyst Ph. 858-455-3342 General Atomics Fx. 858-455-2692 3550 General Atomics Court San Diego, California 92121 ********************************************************************** opinions, conclusions, or recommendations expressed above are my own and do not necessarily represent the views of my employer.