我正在嘗試安裝GCC 4.9.0,出現'./configure'和'make'錯誤。GCC安裝錯誤
我得到了以下錯誤./configure
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: error: I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.
然後我用./configure --disable-multilib
然後配置與出任何錯誤完成。
'make'後;我結束與下面的錯誤,我無法確定這是什麼錯誤
checking for suffix of object files... configure: error: in `/root/dsk/gcc-4.9.0/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/root/dsk/gcc-4.9.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/dsk/gcc-4.9.0'
make: *** [all] Error 2
請幫助
您是否嘗試以下鏈接的建議:https://gcc.gnu.org/wiki/FAQ#configure_suffix?什麼是在config.log中? –
避免在其源代碼樹中構建GCC。 –
即使從相對路徑構建後也會重複出現相同的錯誤../configure – user3690763