This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problem with mingw32 cross-compiler
- From: Andrew Haley <aph at redhat dot com>
- To: Fernando Martin <fer20002 at yahoo dot com>
- Cc: java at gcc dot gnu dot org, TJ Laurenzo <tlaurenzo at gmail dot com>
- Date: Wed, 2 Nov 2005 12:22:19 +0000
- Subject: Re: Problem with mingw32 cross-compiler
- References: <20051102120436.55900.qmail@web54505.mail.yahoo.com>
Fernando Martin writes:
> Hello,
>
> I'm doing a cross-compiler from Linux to mingw32.
>
> With the snapshot gcc-4.0-20050811 everything is ok
> and the cross-compiler works without problems.
>
> But with the snapshot gcc-4.0-20050818 and above
> (including 4.0.2) the compiler builds fine, but when I
> try to compile a simple HelloWorld.java program this
> is the output:
This is becasue WEAK is broken in the Mingw toolchain.
See http://gcc.gnu.org/ml/java/2005-09/msg00045.html.
and the patch at
http://gcc.gnu.org/ml/java-patches/2005-q3/msg00400.html
This patch is good, but it hasn't been applied. I can't apply it
because I don't use Mingw, so I can't test it. If anyone reading this
wants to check in ths patch, pleas do so.
Andrew.