This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: No console output: gcj Windows cross-compiler
Ranjit Mathew writes:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Daniel M Coffman wrote:
> > I have recently built a Windows cross-compiler for gcj 4.1.0 on Fedora Core
> [...]
> > however, does not. The Windows machine loads the executable, or at least
> > seems to, but it produces no output. The program merely exits.
>
> After seeing your message, I built a cross-compiler on Linux for
> MinGW (i686-pc-mingw32) using FSF binutils 2.16.1, mingw-runtime
> 3.9, w32api 3.6 and mainline GCC (to be released as 4.2).
>
> The "hello world" Java program created by this GCJ crashes
> unceremoniously because the "fallback_backtrace" function
> uses %ebp and libgcj is built using -fomit-frame-pointer
> as pointed by "dpr" in:
>
> http://gcc.gnu.org//ml/java/2006-02/msg00047.html
>
> So I applied this change:
> - ---------------------------- 8< ----------------------------
> Index: configure.host
> ===================================================================
> - --- configure.host (revision 112695)
> +++ configure.host (working copy)
> @@ -260,6 +260,7 @@ EOF
> slow_pthread_self=
> ;;
> *-mingw*)
> + libgcj_flags="${libgcj_flags} -fno-omit-frame-pointer"
> # FIXME: win32_exception_handler( ) in win32.cc does not do the
> # right stuff yet w.r.t. SEH. Live with the following for now.
> can_unwind_signal=no
> - ---------------------------- 8< ----------------------------
TVM for doing this. WIll you apply this patch to the trunk, please?
Andrew.