[Fwd: Re: GCJ/MinGW Build Efforts Update: Builds, But Compiler Gives Errors]

Ranjit Mathew rmathew@hotmail.com
Mon Aug 26 20:55:00 GMT 2002


Hi,
 I'm posting this to the gcj-devel list as an update
on my efforts in trying to make GCJ/libgcj work
natively on Windows.
Summary: It seems to work - the EXEs are *HUGE* though.
The libgcj configure scripts, Makefile and the GCJ code
need some work, as does MinGW/MSYS.
If you are interested, I'll try to post a list of
changes I made to vanilla GCC 3.2 + MinGW to get it
this far.
Sincerely Yours,
Ranjit.
-------- Original Message --------
Subject: Re: GCJ/MinGW Build Efforts Update: Builds, But Compiler Gives 
Errors
Date: 2002年8月27日 09:20:17 +0530
From: Ranjit Mathew <rmathew@hotmail.com>
Newsgroups: gmane.comp.gnu.mingw.user
References: <akdef6$on6$1@main.gmane.org>
It turns out that I should have specified the "--main"
flag like this:
/c/gcc3.2/tgcc/bin/gcj -O --main=T T.java
Classic RTFM!
(The -O gets rid of the ".stabs" errors - no debugging
information generated.)
So it *FINALLY* prints out the uber-gratifying "Hello World!".
:-)

But happiness was shortlived - when I saw the size of the EXE:
-rwxr-xr-x 1 rmathew Administ 14114054 Aug 27 2002 a.exe
14MB is an awful lot for something that merely prints "Hello
World!"! So I ran "strip" on the EXE and now:
-rwxr-xr-x 1 rmathew Administ 1816576 Aug 27 2002 a.exe
This still *is* a lot and I must figure out what I can
do about it (if at all). :-(
Thanks a lot for all your help and support - and of course
patience. :-)
Ranjit.
Ranjit Mathew wrote:
 > Hi,
 >
 > Some of you might by now be sick of my messages
 > regarding GCJ/MinGW, but in all fairness, I must
 > post an update on my progress so far. ;-)
 >
 > Well, I have FINALLY been able to build and install
 > GCJ/MinGW (Yay!) but there still seems some way to
 > go. The simple HelloWorld program gives the following
 > errors:
 > -------------------------- 8< --------------------------
 > /h/temp > /c/gcc3.2/tgcc/bin/gcj T.java
 > C:\TEMP/ccaEaaaa.s: Assembler messages:
 > C:\TEMP/ccaEaaaa.s:26: Warning: .stabs: description field '60005' too
 > big, try a different debug format
 > C:\TEMP/ccaEaaaa.s:55: Warning: .stabs: description field '10001' too
 > big, try a different debug format
 > 
c:/gcc3.2/tgcc/bin/../lib/gcc-lib/mingw32/3.2/../../../libmingw32.a(main.o)(.text+0x7f):main.c: 
 > undefined reference to `WinMain@16'
 > -------------------------- 8< --------------------------
 >
 > While I can understand the source of the ".stabs" errors
 > (I should have used a different debugging format - dwarf32?),
 > I do not understand the WinMain@16 errors, because it comes
 > even when I give the -mconsole command line option to
 > GCJ.
 >
 > BTW, The compiler automatically defaults to using
 > the "crt2.o" startup code from mingw-runtime, instead of
 > "crtbegin.o" from GCC 3.2, in which case, the code for
 > that should also be a part, IMHO, of the GCC distro.
 >
 > Thanks a lot, once again, for your help and support
 > guys. And please tell me if I'm wasting too much of
 > your time - and bandwidth. :-)
 >
 > Sincerely Yours,
 > Ranjit Mathew.
 >
 >
 >
 >
 >
 > -------------------------------------------------------
 > This sf.net email is sponsored by: OSDN - Tired of that same old
 > cell phone? Get a new here for FREE!
 > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
 > _______________________________________________
 > MinGW-users mailing list
 > MinGW-users@lists.sourceforge.net
 >
 > You may change your MinGW Account Options or unsubscribe at:
 > https://lists.sourceforge.net/lists/listinfo/mingw-users
 >
-- 
Ranjit Mathew E-Mail: rmathew@hotmail.com
Member (Technical Staff), Phone: +91-80-5216767 x350
Elind Computers Private Limited,
Bangalore, INDIA. http://ranjitmathew.tripod.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /