[Bug target/18459] [4.0 Regression] gcj no longer works on win32

ovidr at users dot sourceforge dot net gcc-bugzilla@gcc.gnu.org
Fri Dec 10 03:11:00 GMT 2004


------- Additional Comments From ovidr at users dot sourceforge dot net  2004-12-10 03:11 -------
I have tried this patch: http://gcc.gnu.org/ml/gcc-patches/2004-11/msg02192.html
but a simple gcj --main=test test.java -o test.exe ; test.exe just results in an
application error popup (on windows).

I have also tried "http://gcc.gnu.org/ml/gcc-patches/2004-11/msg02120.html"
(with the 1 line binutils ld patch to add .jcr), but linking fails:
test.java: undefined reference to `__gcj_personality_v0'

Removing the stuff from cygming.h and remaking my cross compiler makes things
work again.
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/cygming.h.diff?cvsroot=gcc&r1=1.22&r2=1.23

i686-pc-mingw32-gcj (GCC) 4.0.0 20041209 (experimental)

public class test {
 public static void main(String[] a) {
  System.out.println("x");
 }    
}     

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18459



More information about the Java-prs mailing list