2014-06-20 22 views
7

Tôi đang cố gắng cài đặt GCC 4.9.0, tôi đã nhận các lỗi sau cho './configure' và 'make'.Cài đặt GCC Lỗi

tôi đã nhận lỗi sau đây cho ./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. 

Sau đó, tôi sử dụng ./configure --disable-multilib sau đó cấu hình hoàn thành với bất cứ lỗi.

Sau khi 'thực hiện'; tôi kết thúc với lỗi sau và tôi không thể xác định được lỗi này là gì

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 

xin vui lòng giúp

+0

Bạn đã thử làm theo các lời khuyên vào liên kết này: https://gcc.gnu.org/wiki/FAQ#configure_suffix? Có gì trong config.log? –

+0

Tránh xây dựng GCC trong cây nguồn của nó. –

+0

lỗi tương tự được lặp lại ngay cả sau khi xây dựng từ đường dẫn tương đối ../configure – user3690763

Trả lời

5

Có vẻ như bạn đang thiếu gcc-multilib.

Thử cài đặt với sudo apt-get install gcc-multilib và sau đó chạy lại ./configure.

0

Đối với Centos bạn cần phải cài đặt thư viện sau:

sudo yum install glibc-devel.i686 
sudo yum install libgcc.i686 
Các vấn đề liên quan