I have a "little problem" while trying to compile or install something requires C and GCC compiler (cannot use emerge as well) the error output is something like this:
Code: Select all
# emerge nasm
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-lang/nasm-0.98.39-r1 to /
>>> md5 files ;-) nasm-0.98.39-r1.ebuild
>>> md5 files ;-) files/digest-nasm-0.98.39-r1
>>> md5 src_uri ;-) nasm-0.98.39.tar.bz2
>>> Unpacking source...
>>> Unpacking nasm-0.98.39.tar.bz2 to /var/tmp/portage/nasm-0.98.39-r1/work
>>> Source unpacked.
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
Here, some details can help:
Code: Select all
SO: Gentoo installed from stage 1, worked fine, until this trouble.
Kernel: Linux unreal 2.6.11.11 [i686 AMD Athlon(tm) XP 1600+ AuthenticAMD GNU/Linux]
# gcc-config -l
[1] i686-pc-linux-gnu-3.3.3
[2] i686-pc-linux-gnu-3.4.3-20050110
[3] i686-pc-linux-gnu-3.4.3-20050110-hardened
[4] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[5] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp *
[6] i686-pc-linux-gnu-4.0.1-beta20050526
Using other GCC profiles doesn't help.
-- Flags, same error.
CFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
-- Flags (more agressive)... same error. (and more when using GCC4, but this is normal).
CFLAGS="-march=athlon-xp -O3 -pipe -msse -maccumulate-outgoing-args -ftracer -ffast-math -ftree-loop-linear -ftree-loop-ivcanon -fivopts -ftree-vectorize -fsplit-ivs-in-unroller -fprefetch-loop-arrays -fomit-frame-pointer"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
# ls -la /usr/bin/as
lrwxrwxrwx 1 root root 20 Jun 3 23:59 /usr/bin/as -> i686-pc-linux-gnu-as
...seems well, automake, autolib and so on too.
greetings from Spain.

