[jv-convert] Error 1, [all-recursive] Error 1 (How to Solve)

g++4.6 compilation is an error:

make profiledbootstrap  
  
/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8/gcc/gcj  
-B/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8/gcc/  
-B/tools/freeware/gcc4.0/sparc-sun-solaris2.8/bin/  
-B/tools/freeware/gcc4.0/sparc-sun-solaris2.8/lib/  
-isystem /tools/freeware/gcc4.0/sparc-sun-solaris2.8/include  
-isystem /tools/freeware/gcc4.0/sparc-sun-solaris2.8/sys-include -g -O2  
-o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc   
-L/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8/sparc-sun-solaris2.8/libjava  
-L/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8/sparc-sun-solaris2.8/libjava/.libs ./.libs/libgcj.so  
-L/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8/sparc-sun-solaris2.8/libstdc++-v3/src  
-L/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8/sparc-sun-solaris2.8/libstdc++-v3/src/.libs  
-lpthread -lrt -ldl -L/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8/gcc  
-L/tools/freeware/gcc4.0/sparc-sun-solaris2.8/bin  
-L/tools/freeware/gcc4.0/sparc-sun-solaris2.8/lib -L/usr/dt/lib  
-L/usr/openwin/lib -L/usr/lib/X11 -L/usr/ucblib -L/usr/atria/lib  
-L/tools/freeware/gcc4.0/lib -L/tools/freeware/lib -L/tools/sun5/lib  
-L/tools/freeware/gcc4.0/lib/gcc/sparc-sun-solaris2.8/../../../sparc-sun-solaris2.8/lib  
-L/usr/ccs/bin -L/usr/ccs/lib  
-L/tools/freeware/gcc4.0/lib/gcc/sparc-sun-solaris2.8/../.. -lgcc_s -lgcc_s  
-Wl, --rpath -Wl,/tools/freeware/gcc4.0/lib  
/tools/freeware/gcc4.0/bin/ld: unrecognized option'-Wl,-rpath'  
/tools/freeware/gcc4.0/bin/ld: use the --help option for usage information  
collect2: ld returned 1 exit status  
make[3]: *** [jv-convert] Error 1  
make[3]: Leaving directory  
`/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8/sparc-sun-solaris2.8/libjava'  
make[2]: *** [all-recursive] Error 1  
rm gnu/gcj/tools/gcj_dbtool/Main.class  
make[2]: Leaving directory  
`/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8/sparc-sun-solaris2.8/libjava'  
make[1]: *** [all-target-libjava] Error 2  
make[1]: Leaving directory `/var/tmp/gcc4/gcc-4.0.1/sparc-sun-solaris2.8'  
make: *** [profiledbootstrap] Error 2  

At this time, the configuration is to set the speaking language to c, c++. as follows:

./configure –prefix=/usr/local/gcc-4.6.1 -enable-threads=posix -disable-checking -disable-multilib -enable-languages=c,c++


Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *