View previous topic :: View next topic |
Author |
Message |
jmp_ Apprentice
Joined: 02 Oct 2005 Posts: 294 Location: BCN / Catalonia (Spain)
|
Posted: Sun Oct 02, 2005 6:50 pm Post subject: GCC_error: cannot create executables, emerge fails [OK] |
|
|
Hi guys, first of all: sorry for my poor english.
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: |
# 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
|
the problem is NOT ONLY when I try to emerge NASM, the problem appears every time I try to emerge something, I think the problem arised when I update my "system" or something ... I don't know what exactly. Now my portage tree is up2date.
Here, some details can help:
Code: |
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.
|
Any idea ?? I will be very grateful to you for your help. ANYWAY thanks in advance.
greetings from Spain.
Last edited by jmp_ on Sun Oct 02, 2005 8:41 pm; edited 1 time in total |
|
Back to top |
|
|
SnakeByte Apprentice
Joined: 04 Oct 2002 Posts: 177 Location: Europe - Germany
|
Posted: Sun Oct 02, 2005 6:59 pm Post subject: |
|
|
hi,
although I may not have a direct solution for this problem
I have some point where you can start with searching:
Afther the configure error you will get some output line
where the path to the configure log is displayed
look at this log with your favourite text editor
and you will get some hint where the problem is.
Most of the time wrong gcc parameters
maybe GCC 4.0 only parameters used for 3.x
regards and greetings from Germany |
|
Back to top |
|
|
jmp_ Apprentice
Joined: 02 Oct 2005 Posts: 294 Location: BCN / Catalonia (Spain)
|
Posted: Sun Oct 02, 2005 7:01 pm Post subject: |
|
|
Ok, thanks... I'm trying to solve it by reading https://forums.gentoo.org/viewtopic-t-294109.html so I'm not pretty sure about the steps.
Any constructive/destructive comment will be appreciated.
thanks again. |
|
Back to top |
|
|
bigmauler Apprentice
Joined: 25 Apr 2005 Posts: 177 Location: Seattle, WA
|
Posted: Sun Oct 02, 2005 7:16 pm Post subject: |
|
|
Have you tryed switching to back to GCC 3.3.3? Or perhaps not using such agressive flags? _________________ Never take raisins from a rabbit |
|
Back to top |
|
|
jmp_ Apprentice
Joined: 02 Oct 2005 Posts: 294 Location: BCN / Catalonia (Spain)
|
Posted: Sun Oct 02, 2005 7:52 pm Post subject: |
|
|
yeap of course, and trying with diff. paths and other things so nothing helps. Same error. |
|
Back to top |
|
|
jmp_ Apprentice
Joined: 02 Oct 2005 Posts: 294 Location: BCN / Catalonia (Spain)
|
Posted: Sun Oct 02, 2005 8:11 pm Post subject: |
|
|
Hi again... please, let me know one thing is this iformation consistant ? (according with all I have posted before).
Code: |
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/usr/lib/opengl/nvidia/lib
/usr/i686-pc-linux-gnu/lib
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3
/usr/lib/gcc/i686-pc-linux-gnu/4.0.1-beta20050526
/usr/lib/MozillaFirefox
/usr/lib
/opt/eclipse
/opt/sun-jdk-1.4.2.08/jre/lib
/usr/qt/3/lib
/usr/kde/3.4/lib
/usr/lib/nspr
/usr/lib/nss
/usr/games/lib
/usr/lib/fltk-1.1
/usr/lib/libstdc++-v3/
|
|
|
Back to top |
|
|
jmp_ Apprentice
Joined: 02 Oct 2005 Posts: 294 Location: BCN / Catalonia (Spain)
|
Posted: Sun Oct 02, 2005 8:21 pm Post subject: |
|
|
OK I think I have solved it.
how ? just simply.
I was looking the /etc/env.d/ and /usr/i686... hierarchy. Then I fixed something pointing to 2.16 instead of 2.16.1
Code: |
binutils-config -l
[1] i686-pc-linux-gnu-2.16.1
|
by just creating a symlink (ln -s) on:
Code: |
lrwxrwxrwx 1 root root 6 Oct 2 22:11 2.16 -> 2.16.1
drwxr-xr-x 2 root root 392 Jun 13 11:11 2.16.1
|
I tried to compile nasm then in order to test if it works fine... and no problem, by now it seems OK :) |
|
Back to top |
|
|
bloodfilledwater n00b
Joined: 30 Apr 2010 Posts: 6
|
Posted: Fri Apr 30, 2010 7:43 am Post subject: |
|
|
I was able to resolve this error by changing CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" to CFLAGS="-march=native". So, this is happening with GCC 4.3.4. Hopefully, this helps others. |
|
Back to top |
|
|
|