Hi Brian, Thanks a lot for your reply, I will look into that patch. I still couldn't figure out why there is grmic/grmiregistry after cross compiling. Or is it mean to be that way? Thank you again Rui -----Original Message----- From: gcc-help-owner@xxxxxxxxxxx on behalf of Brian Dessent Sent: Tue 11/8/2005 4:55 PM To: gcc-help@xxxxxxxxxxx Subject: Re: Cross compile, no grmic/grmiregistry Rui Wang wrote: > 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 You've omitted the actual error. The lines above are just generic "I'm exiting now" messages, the actual cause of the problem is whatever messages were printed right before this. That aside since you're in libjava you're probably running into this: <http://gcc.gnu.org/ml/java/2005-11/msg00004.html>. Without that patch you will get an error about multiple symbols in libgcj.a when linking. The patch was just only checked in yesterday, so if you're using a release version or a snapshot you will have to manually patch, or "svn up". Brian