This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Cross compile, no grmic/grmiregistry
- From: "Rui Wang" <Rui dot Wang at newcastle dot ac dot uk>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 8 Nov 2005 14:40:39 -0000
- Subject: Cross compile, no grmic/grmiregistry
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
The src packages I am using are:
binutils-2.16.1
gcc-4.0.2 (release version)
The binary packages I am using are:
mingw-runtime-3.8
w32api-3.5
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
make[2]: Leaving directory `/root/wingccbuild/mingw32/libjava'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/wingccbuild/mingw32/libjava'
make: *** [install-target-libjava] Error 2
Am I using the wrong src/bin packages? I actually tried gcc-4.1-20051105 (snapshot version) later on, but I cannot even build cross compiler version any more. Here goes the output:
java/net/natVMNetworkInterface.cc:117: error: 'java::net::VMNetworkInterface' has not been declared
java/net/natVMNetworkInterface.cc: In function 'java::util::Vector* getInterfaces()':
java/net/natVMNetworkInterface.cc:132: error: 'InetAddress' was not declared inthis scope
java/net/natVMNetworkInterface.cc:132: error: 'arpInetAddress' was not declaredin this scope
make[3]: *** [java/net/natVMNetworkInterface.lo] Error 1
make[3]: Leaving directory `/root/gccbuild/mingw32/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/gccbuild/mingw32/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/root/gccbuild'
make: *** [all] Error 2
Any help would be much appreciated! Thank you.
Best Regards
Rui Wang