Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCC installation Error

I am trying to install GCC 4.9.0, I got following errors for './configure' and 'make'.

I got following error for ./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.

Then I used ./configure --disable-multilib then configure completed with out any error.

After 'make'; i end with following error and i am not able to identify what is this error

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

please help

like image 466
user3690763 Avatar asked Jun 20 '14 11:06

user3690763


People also ask

Why can I install GCC on Ubuntu?

zhangkehu@ubuntu:/$ gcc -v The program 'gcc' is currently not installed. You can install it by typing: sudo apt-get install gcc zhangkehu@ubuntu:/$ sudo apt-get install gcc Reading package lists... Done Building dependency tree Reading state information...


2 Answers

It seems you are missing gcc-multilib.

Try installing it with sudo apt-get install gcc-multilib and then run ./configure again.

like image 141
Existential Casper Avatar answered Oct 03 '22 04:10

Existential Casper


For Centos you need to install following libraries:

sudo yum install glibc-devel.i686
sudo yum install libgcc.i686
like image 43
digz6666 Avatar answered Oct 03 '22 02:10

digz6666