Bug 154318

Summary: gcj can not be started on SL 10.1-beta5
Product: [openSUSE] SUSE Linux 10.1 Reporter: Petr Mladek <pmladek>
Component: DevelopmentAssignee: GCC Development Team at SuSE <development-gcc>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None    
Version: Beta 5   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Sample java source

Description Petr Mladek 2006-03-01 10:51:57 UTC
I tried to compile a simple class using gcj on SL 10.1-beta5 (i586) and I got this 
error:

--- cut ---
$> gcj InvocationHelloWorld.java 
/usr/lib/gcc/i586-suse-linux/4.1.0/../../../crt1.o: In function `_start':init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
--- cut ---

I'll attach the class sources.
Comment 1 Petr Mladek 2006-03-01 10:53:10 UTC
Ah, forgot to assing the bug to development-gcc@suse.de.
Comment 2 Petr Mladek 2006-03-01 10:54:18 UTC
Created attachment 70757 [details]
Sample java source
Comment 3 Richard Biener 2006-03-01 11:07:43 UTC
Use gcj InvocationHelloWorld.java --main=InvocationHelloWorld
Comment 4 Petr Mladek 2006-03-01 11:40:52 UTC
Ah, I see it now. Alternatively, you can use the following command to get the bytecode (.class):

             gcj -C InvocationHelloWorld.java

I am sorry for the noise.