This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Cross compile, no grmic/grmiregistry
Hi Ranjit,
Thanks a lot for your help.
May I ask why it has to be native in order to generate jv-convert, grmic, etc?
Also if I replace the section in "libjava/Makefile.am" with the following, will that work?
- ----------------------------- 8< -----------------------------
bin_PROGRAMS = jv-convert gij grmic grmiregistry gcj-dbtool
- ----------------------------- 8< -----------------------------
Regards
Rui
-----Original Message-----
From: Ranjit Mathew [mailto:rmathew@gmail.com]
Sent: Wed 11/9/2005 7:18 AM
To: Rui Wang
Cc: gcc@gcc.gnu.org; java@gcc.gnu.org
Subject: Re: Cross compile, no grmic/grmiregistry
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rui Wang wrote:
> Hi all,
>
> To transform my java RMI code to windows native code, I followed Ranjit Mathew's tutorial to compile gcc to a cross compiler.
> http://ranjitmathew.hostingzero.com/phartz/gcj/bldgcj.html
[...]
> After successfully runing the cross-compiler shell scripts, then checked
> /bin directory, I found mingw32-gcc/g++. There however is no
> grmic/grmiregistry. Any ideas what is going on?
>
> I then tried to compile gcc to a native compile, a error has been thrown out:
> collect2: ld returned 1 exit status
> make[2]: *** [jv-convert.exe] Error 1
[...]
> Am I using the wrong src/bin packages? Any help would be much appreciated!
It seems that both on trunk as well as the 4.0 branch,
we do not build jv-convert, grmic, etc. if the build is
not native. From the file "libjava/Makefile.am" on the
4.0 branch:
- ----------------------------- 8< -----------------------------
## For now, only on native systems. FIXME.
if NATIVE
bin_PROGRAMS = jv-convert gij grmic grmiregistry gcj-dbtool
endif
- ----------------------------- 8< -----------------------------
So this is expected behaviour at the moment.
HTH,
Ranjit.
- --
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDcaK/Yb1hx2wRS48RAknqAJ4xLPplk5AE8FfIcTB7wKDeT3FQxgCdG6FJ
eYUCAZKwbz5w08rQ2HCJiFo=
=8l0s
-----END PGP SIGNATURE-----