Bug 154318 - gcj can not be started on SL 10.1-beta5
Summary: gcj can not be started on SL 10.1-beta5
Status: RESOLVED INVALID
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Development (show other bugs)
Version: Beta 5
Hardware: All SuSE Linux 10.1
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: GCC Development Team at SuSE
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-01 10:51 UTC by Petr Mladek
Modified: 2006-03-01 11:40 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Sample java source (355 bytes, text/plain)
2006-03-01 10:54 UTC, Petr Mladek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.