When I want to install gcc 4.1.2 on ubuntu 12.04 (x86_64), I get this error:
Code:
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.a when searching for -lc
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/x86_64-linux-gnu/crti.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/x86_64-linux-gnu/crtn.o' is incompatible with i386 output
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s.so] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc'
The solutions are here
http://gcc.gnu.org/ml/gcc-help/2009-05/msg00238.html
The second method works for me but why the first solution doesn't work. Why? It is stated that the 32bit libraries should be installed.
Code:
# dpkg -l | grep ia32
ii ia32-libs 20090808ubuntu36 ia32 shared libraries - transitional package
ii ia32-libs-multiarch:i386 20090808ubuntu36 Multi-arch versions of former ia32-libraries
How can I fix that without disabling multiarch?