This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Building GCC/GCJ under cygwin and Win32
- From: "Murga.org" <john at murga dot org>
- To: java at gcc dot gnu dot org
- Date: Sun, 12 May 2002 20:09:37 +0100
- Subject: Building GCC/GCJ under cygwin and Win32
- Reply-to: "Murga.org" <john at murga dot org>
Hi
Dunno if this will be of interest to anyone, but here we go :
Following the instructions I found in this lists archives I've
managed to build GCC3.1/GCJ (latest snapshot) with posix threading
through the following :
configure --enable-threads=posix --enable-libgcj --disable-nls
--enable-languages=c,c++,java --with-gnu-ld --with-gnu-as
--enable-gc-type=boehm --disable-shared --disable-hash-synchronization
--disable-interpreter --enable-sjlj-exceptions
To get this to work I had to change the posix-threads stuff (as
some of the functions where only defined for hash synchronization)
and the GC_clear_stack_inner function in the boehm-gc stuff (because
it always segfault's when recursing).
It all seems to work OK (no "!(addr &FLAGS)" assertion fail), and
my test multi-threaded progs seem to work well, but I cannot help
thinking I am just being lucky...
What I really wanted to do was build GCJ so I could use -mno-cygwin to
produce MingW binaries, but I don't even know where to start with that,
are there any really simple instructions for this anywhere ?