Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

GCC_error: cannot create executables, emerge fails [OK]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
jmp_
Apprentice
Apprentice
Posts: 294
Joined: Sun Oct 02, 2005 5:27 pm
Location: BCN / Catalonia (Spain)

GCC_error: cannot create executables, emerge fails [OK]

  • Quote

Post by jmp_ » Sun Oct 02, 2005 6:50 pm

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: 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
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: 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.
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.
Top
SnakeByte
Apprentice
Apprentice
User avatar
Posts: 177
Joined: Fri Oct 04, 2002 1:14 pm
Location: Europe - Germany

  • Quote

Post by SnakeByte » Sun Oct 02, 2005 6:59 pm

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
Top
jmp_
Apprentice
Apprentice
Posts: 294
Joined: Sun Oct 02, 2005 5:27 pm
Location: BCN / Catalonia (Spain)

  • Quote

Post by jmp_ » Sun Oct 02, 2005 7:01 pm

Ok, thanks... I'm trying to solve it by reading http://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.
Top
bigmauler
Apprentice
Apprentice
User avatar
Posts: 177
Joined: Mon Apr 25, 2005 7:36 pm
Location: Seattle, WA

  • Quote

Post by bigmauler » Sun Oct 02, 2005 7:16 pm

Have you tryed switching to back to GCC 3.3.3? Or perhaps not using such agressive flags?
Never take raisins from a rabbit
Top
jmp_
Apprentice
Apprentice
Posts: 294
Joined: Sun Oct 02, 2005 5:27 pm
Location: BCN / Catalonia (Spain)

  • Quote

Post by jmp_ » Sun Oct 02, 2005 7:52 pm

yeap of course, and trying with diff. paths and other things so nothing helps. Same error.
Top
jmp_
Apprentice
Apprentice
Posts: 294
Joined: Sun Oct 02, 2005 5:27 pm
Location: BCN / Catalonia (Spain)

  • Quote

Post by jmp_ » Sun Oct 02, 2005 8:11 pm

Hi again... please, let me know one thing is this iformation consistant ? (according with all I have posted before).

Code: Select all

# 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/
Top
jmp_
Apprentice
Apprentice
Posts: 294
Joined: Sun Oct 02, 2005 5:27 pm
Location: BCN / Catalonia (Spain)

  • Quote

Post by jmp_ » Sun Oct 02, 2005 8:21 pm

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: Select all

 binutils-config -l
 [1] i686-pc-linux-gnu-2.16.1
by just creating a symlink (ln -s) on:

Code: Select all

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 :)
Top
bloodfilledwater
n00b
n00b
Posts: 6
Joined: Fri Apr 30, 2010 7:40 am

  • Quote

Post by bloodfilledwater » Fri Apr 30, 2010 7:43 am

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.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy