GCC 4.7.2 build x86_64 (debian)
phi gcc
phi.gcc@gmail.com
Fri Mar 22 13:35:00 GMT 2013
Hi All,
I am affraid this is a trivial question, I tried to google it, but got
hard time to find a quick answer.
I attempted a simple gcc 4.7.2 build on a current debian
CU82$ /usr/bin/lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.7 (squeeze)
Release: 6.0.7
Codename: squeeze
I got all the needed packages installed (I guess I miss one)
I did a simple session like this (I only need gcc)
$ cd gcc-4.7.2
$ mkdir gcc-obj ; cd gcc-obj
$ export CONFIG_SHELL-/bin/bash # (my login shell is ksh)
$ CFLAGS=-g ../configure --enable-languages=c
All ran like a champ until it spitted somthing about gnu/stubs-32.h missing.
I could not find which package as this on x86_64 (debian) so I grabed
one from my x86 node.
The make went much farther then barfed on
...
# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/bin/bash ../../../../libgcc/../mkinstalldirs 32
/home/phi/gcc-4.7.2/gcc-obj/./gcc/xgcc -B/home/phi/gcc-
...
so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s
libgcc_s.so.1 32/libgcc_s.so
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[5]: *** [libgcc_s.so] Error 1
Here I guess the x86_64 build try to do something with 32bits, my
hosting gcc is /usr/bin/gcc -> gcc-4.4
I guess I must need more configure options and/or I need to install a
32bit environment on my 64 bits build node/
Thanx in advance for any advises.
Cheers,
Phi
More information about the Gcc-help
mailing list