* incorrect? link order for mingw gcj
@ 2002-04-04 7:14 aking
2002-04-04 17:10 ` Bryce McKinlay
2002-04-05 21:37 ` Adam Megacz
0 siblings, 2 replies; 6+ messages in thread
From: aking @ 2002-04-04 7:14 UTC (permalink / raw)
To: java
There seems to be a library link order problem with the current cvs 3.1
branch of the mingw32 cross compiler. A simple hello world compiles
and runs fine, however, this simple java program fails to compile:
public class GCJTest
{
public static void main( String[] args )
{
try
{
Thread.sleep( 2000 );
}
catch( Exception e ) {}
}
}
the error is:
aking@nanostorm:~/gcj-test$ i686-pc-mingw32-gcj --main=GCJTest -o /tmp/gcjtest.exe GCJTest.java
/home/aking/mingw-gcc/lib/gcc-lib/i686-pc-mingw32/3.1/../../../../i686-pc-mingw32/lib/libgcj.a(exception.o): In function `abort':
/home/aking/compile/mingw-gcj/bin/i686-pc-mingw32/libjava/../../../gcc/libjava/exception.cc:27: multiple definition of `abort'
/home/aking/mingw-gcc/lib/gcc-lib/i686-pc-mingw32/3.1/../../../../i686-pc-mingw32/lib/libmsvcrt.a(ds00510.o)(.text+0x0): first defined here
However, if I add in the libraries '-lgcj -lmsvcrt', it compiles and runs fine:
aking@nanostorm:~/gcj-test$ i686-pc-mingw32-gcj -lgcj -lmsvcrt --main=GCJTest -o /tmp/gcjtest.exe GCJTest.java
aking@nanostorm:~/gcj-test$
I know almost nothing about how the configure/make build system
works, so I have no idea where to look, sorry. Anyways, I'll continue
on with some other patches I'm working on for mingw32 version.
Adam
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: incorrect? link order for mingw gcj
2002-04-04 7:14 incorrect? link order for mingw gcj aking
@ 2002-04-04 17:10 ` Bryce McKinlay
2002-04-05 21:37 ` Adam Megacz
1 sibling, 0 replies; 6+ messages in thread
From: Bryce McKinlay @ 2002-04-04 17:10 UTC (permalink / raw)
To: aking; +Cc: java
aking@dreammechanics.com wrote:
>aking@nanostorm:~/gcj-test$ i686-pc-mingw32-gcj --main=GCJTest -o /tmp/gcjtest.exe GCJTest.java
>/home/aking/mingw-gcc/lib/gcc-lib/i686-pc-mingw32/3.1/../../../../i686-pc-mingw32/lib/libgcj.a(exception.o): In function `abort':
>/home/aking/compile/mingw-gcj/bin/i686-pc-mingw32/libjava/../../../gcc/libjava/exception.cc:27: multiple definition of `abort'
>/home/aking/mingw-gcc/lib/gcc-lib/i686-pc-mingw32/3.1/../../../../i686-pc-mingw32/lib/libmsvcrt.a(ds00510.o)(.text+0x0): first defined here
>
>However, if I add in the libraries '-lgcj -lmsvcrt', it compiles and runs fine:
>
The file libgcj.spec (which is generated from libgcj.spec.in) specifies
what arguments gcj passes to the linker. You can probibly at least work
around the problem in there.
regards
Bryce.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: incorrect? link order for mingw gcj
2002-04-04 7:14 incorrect? link order for mingw gcj aking
2002-04-04 17:10 ` Bryce McKinlay
@ 2002-04-05 21:37 ` Adam Megacz
2002-04-08 7:48 ` libjava exception fix was:Re: " Andreas Tobler
1 sibling, 1 reply; 6+ messages in thread
From: Adam Megacz @ 2002-04-05 21:37 UTC (permalink / raw)
To: aking; +Cc: java
aking@dreammechanics.com writes:
> the error is:
> aking@nanostorm:~/gcj-test$ i686-pc-mingw32-gcj --main=GCJTest -o /tmp/gcjtest.exe GCJTest.java
> /home/aking/mingw-gcc/lib/gcc-lib/i686-pc-mingw32/3.1/../../../../i686-pc-mingw32/lib/libgcj.a(exception.o): In function `abort':
> /home/aking/compile/mingw-gcj/bin/i686-pc-mingw32/libjava/../../../gcc/libjava/exception.cc:27: multiple definition of `abort'
> /home/aking/mingw-gcc/lib/gcc-lib/i686-pc-mingw32/3.1/../../../../i686-pc-mingw32/lib/libmsvcrt.a(ds00510.o)(.text+0x0): first defined here
I think I fixed this -- could you cvs update and try again?
- a
2002-04-05 Adam Megacz <adam@xwt.org>
* exception.cc (abort): added static modifier
--
The web is dead; long live the Internet.
http://www.xwt.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* libjava exception fix was:Re: incorrect? link order for mingw gcj
2002-04-05 21:37 ` Adam Megacz
@ 2002-04-08 7:48 ` Andreas Tobler
2002-04-08 13:24 ` Adam Megacz
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Tobler @ 2002-04-08 7:48 UTC (permalink / raw)
To: Adam Megacz; +Cc: java, Tom Tromey
Hi,
Adam Megacz wrote:
> I think I fixed this -- could you cvs update and try again?
>
> - a
>
> 2002-04-05 Adam Megacz <adam@xwt.org>
>
> * exception.cc (abort): added static modifier
>
Could you please add this to the branch as well? It fixed my compilation
error of libjava on darwin.
Thanks,
Andreas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libjava exception fix was:Re: incorrect? link order for mingw gcj
2002-04-08 7:48 ` libjava exception fix was:Re: " Andreas Tobler
@ 2002-04-08 13:24 ` Adam Megacz
2002-04-09 5:00 ` Andreas Tobler
0 siblings, 1 reply; 6+ messages in thread
From: Adam Megacz @ 2002-04-08 13:24 UTC (permalink / raw)
To: Andreas Tobler; +Cc: java, Tom Tromey
Andreas Tobler <toa@pop.agri.ch> writes:
> Could you please add this to the branch as well? It fixed my compilation
> error of libjava on darwin.
I thought I applied it to both branch and trunk -- do you see differently?
- a
--
The web is dead; long live the Internet.
http://www.xwt.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libjava exception fix was:Re: incorrect? link order for mingw gcj
2002-04-08 13:24 ` Adam Megacz
@ 2002-04-09 5:00 ` Andreas Tobler
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Tobler @ 2002-04-09 5:00 UTC (permalink / raw)
To: Adam Megacz; +Cc: java, Tom Tromey
Adam Megacz wrote:
> Andreas Tobler <toa@pop.agri.ch> writes:
>
>>Could you please add this to the branch as well? It fixed my compilation
>>error of libjava on darwin.
>
>
> I thought I applied it to both branch and trunk -- do you see differently?
When I synced yesterday it wasn't. Now it's in
Thanks.
Andreas
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-04-09 8:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-04 7:14 incorrect? link order for mingw gcj aking
2002-04-04 17:10 ` Bryce McKinlay
2002-04-05 21:37 ` Adam Megacz
2002-04-08 7:48 ` libjava exception fix was:Re: " Andreas Tobler
2002-04-08 13:24 ` Adam Megacz
2002-04-09 5:00 ` Andreas Tobler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).