• [jv-convert] Error 1,[all-recursive] Error 1


    g++4.6编译是报错:

    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  

    这时,配置是讲语言设置为c,c++即可。如下:

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

  • 相关阅读:
    centos7搭建nexus
    centos7搭建ftp
    tomcat笔记
    mysql跨服务器触发器
    IntelliJ IDEA笔记
    node.js笔记
    myeclipse笔记
    术语
    centos7安装mysql
    js跨域访问资源
  • 原文地址:https://www.cnblogs.com/whu-zeng/p/5777578.html
Copyright © 2020-2023  润新知