Forums

Skip to content

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

"C compiler cannot create executables" !??!

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
282 posts
  • Page 5 of 12
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 12
  • Next
Author
Message
apos
n00b
n00b
Posts: 3
Joined: Mon Sep 27, 2004 2:33 pm
Location: Germany, Worms
Contact:
Contact apos
Website

Analysis script for compiler issues

  • Quote

Post by apos » Wed Jan 11, 2006 5:22 pm

Moved to my experiences to
http://gentoo-wiki.com/HOWTO_Doing_a_hu ... erge_world Gentoo Wiki - HOWTO Doing a huge emerge system - emerge world.
---------------------------------------------------------------------------------------------

Hy gues

So I did everything according to your advice and then:

Code: Select all

emerge -e system (DON'T DO THIS FOR NOW - see down!)
BOOM - after a VERY VERY LONG compile - same fault as before - oh no I thougt.I did: emerge glibc gcc
After a very lon compile, I could emerge e.g. patch. Everything went o.K. now. Whatw was up? What was the problem? What should I do, to prevent this in future?
I headless tried "emerge gcc-config" again.
But sudden - BOOOM. After a new gcc-config, everything was broken again. Another reemerge didn't help this time? I was completly down.

I found out, after reading of http://forums.gentoo.org/viewtopic-t-27 ... rt-75.html, and fiddling around hours with the combination of gcc-config, binutils-config, source /etc/profile, export CFLAGS="" - which won't change ANYTHING :evil:, fixing my CLFLAGS in make.conf and adding per package CFLAGS settings in package.cflags made it.

Additionally I found my cflags wrong with march=athlon-xp insted of march=athlon for gcc-3.4.4. See http://gcc.gnu.org/onlinedocs/gcc-3.4.4 ... 64-Options.
Last edited by apos on Wed Jan 18, 2006 7:34 pm, edited 62 times in total.
www.apos.de
Top
apos
n00b
n00b
Posts: 3
Joined: Mon Sep 27, 2004 2:33 pm
Location: Germany, Worms
Contact:
Contact apos
Website

shorted emerge system && emerge world

  • Quote

Post by apos » Thu Jan 12, 2006 9:53 am

Moved my experiences to
http://gentoo-wiki.com/HOWTO_Doing_a_hu ... erge_world Gentoo Wiki - HOWTO Doing a huge emerge system - emerge world.
---------------------------------------------------------------------------------------------
Hello again,

For the update from 2005.0 to 2001.5 after my last post i encountered repeatedly problems updating some files.
Here I will add all files that did emerge with an compile error.

# Failed during system emerge
sys-apps/groff-1.19.1-r2 #could not find a working g++
dev-lang/python-2.4.2 # Compiler cannot create executable ...

# Failed during world emerge
media-libs/libvisual-0.2.0 # Compiler cannot create executable ...
dev-libs/libusb-0.1.10a # i686-pc-linux-gnu-g++: O2: No such file or directory
app-pda/pilot-link # QA Notice: insecure RUNPATH...
kde-base/kdelibs # didn't found arts libs
gnome-extra/gtkhtml # bug #114399
net-libs/openh323 # this was a mess, not really solved

## SOLVED ##
Some emerges don't like too much optimization in CFLAGS or the march=athlon. Put this in your /etc/portage/package.cflags:

Code: Select all

# /etc/portage/package.cflags
dev-libs/libusb CFLAGS="-O1 -march=i686 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
sys-apps/groff CFLAGS="-O1 -march=i686 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
dev-lang/python CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
media-libs/libvisual CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
app-pda/pilot-link - http://bugs.gentoo.org/show_bug.cgi?id=114437

Code: Select all

perl /usr/portage/dev-lang/perl/files/perl-cleaner all
and

Code: Select all

# /etc/portage/package.use
app-pda/pilot-link -perl
kde-base/kdelibs
didn't find arts-libs => reeimerged arts
so put arts in your emerge before kdelibs ;)

gnome-extra/gtkhtml
BUG #114399
unmerge gtkhtml
unmerge libgtkhtml
remove any gtkhtml and gtkhtml from /var/tmp/portage
emerge gtkhtml and libgtkhtml

OR (in our context)

Code: Select all

emerge unmerge gtkhtml libgtkhtml; rm -rf /var/tmp/portage/*; rm -rf /var/tmp/ccache/*; sync; emerge gtkhtml libgtkhtml ; sh emerge.myWorld
net-libs/openh323
This was an emerge, that shows, how important it is to google.
Openh323 was emerged as a dependence of gnomemeeting.
This depends on ffmpeg, and this had changed. I tried all versions suggested
no effort. So for me it was just possible to unmerge the whole dependence tree:

Code: Select all

emerge unmerge net-libs/openh232 net-libs/linx net-im/gnomemeeting
Last edited by apos on Wed Jan 18, 2006 6:25 pm, edited 19 times in total.
www.apos.de
Top
lefsha
Veteran
Veteran
Posts: 1235
Joined: Mon Aug 30, 2004 5:02 pm
Location: Burgas, Bulgaria

  • Quote

Post by lefsha » Sat Jan 14, 2006 11:52 am

"C compiler cannot create executables"

That is not a problem of configuration of user system, but a big problem of
GCC itself and also a big problem of programmers!!!

I would ask you all don't write error messages in that style.
That is very bad way to give user some information about program error!
It is better don't write anything, just a error then this.

The Message should first of all give an INFORMATION about what's really wrong
and probably why.
The message "C compiler cannot create executables" means the same like
the program can not start or it doesn't work. But it's clear without ANY message
beacause of error!

So, please, avoid such messages in your programs at all!!!

In most cases I know, that is the problem of wrong parameters sent to gcc.
And I'm really sure, that people who wrote gcc are able to distinguish the reason
of this error. So why just not to give a message that user used wrong flags
for this version of gcc? It's much easier for user to solve his problem without
bombing of forums with this problem. If you would google for this topics keywords
you will found thousends of similar questions from many people around.

And only becasue of some guy who doesn't know how to write error messages properly!!!

That is my word for today.
Lefsha
Top
at6
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 78
Joined: Thu Nov 28, 2002 6:19 pm
Location: /dev/null

  • Quote

Post by at6 » Tue Jan 17, 2006 10:09 pm

i found a very simple solution for my problem on the compile error for the sys-libs/db-4.2.52_p4 ebuild. everytime it exits with exitcode 77.

try the following:

Code: Select all

rm /usr/bin/i686-pc-linux-gnu-cc -Rv
good luck marc
debian: stable but lame! suse: unstable and lame! gentoo: stable and only 4 geeks!
Gadget tests!
Top
slithy
Guru
Guru
User avatar
Posts: 321
Joined: Sat Nov 26, 2005 4:43 am
Location: Kansas

  • Quote

Post by slithy » Mon Jan 23, 2006 7:51 pm

I am having the same problem with db, but I very unsure to whether or not to delete that file suggested in the fix above! What are the ramification for doing this? Is it safe?

***EDIT***

I solved it myself and it didn't involve the above fix. First I saw this http://bugs.gentoo.org/show_bug.cgi?id=117611 on bugs.gentoo and found out that the error had to do with eselect-compiler. I am using gcc 3.4.5 and eselect-compiler was showing 3.3.5, so I switch the profile and with

Code: Select all

eselect compiler set 20
with 20 being the 3.4.5 vanilla and db is emerging successfully.
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

  • Quote

Post by Gentree » Thu Jan 26, 2006 2:59 pm

sound like me too. Odd thing is this pkg comes up as a dep of gcc 3.x and 4.x on my system yet I dont have it installed and have never heard of it.

Also it is hardmasked so there's not way it could have been in there without me knowing.

I'm trying to retrograde from gcc4.x to 3.4 so I think that may be the cause of my problem but I still dont see how this can be a dep. I cant even seem to unmask it !

added to package.keyworks and package.unmask to no avail.

Probably forgetting some trick, pls refresh my memory.

Thx . 8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
slithy
Guru
Guru
User avatar
Posts: 321
Joined: Sat Nov 26, 2005 4:43 am
Location: Kansas

  • Quote

Post by slithy » Fri Jan 27, 2006 4:19 am

I assume you are talking about eselect-compiler? To unmask it I have the entry of <=app-admin/eselect-compiler-2.0.0_rc1-r1 in /etc/portage/package.unmask
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

  • Quote

Post by Gentree » Fri Jan 27, 2006 4:29 am

Thanks , I had an entry like that without a version number. It now seems prepared to work so it must have part of the general borkage that was going on.

I was trying to revert my system from gcc-4.1 to 3.4.x which I expected to be a bit tricky.

The compiler problem seemed to be resolved by simply rebooting and doing etc-update . Then I was able to continue emerge -e world.

Obviously some of the core packages were out of sync due to the compiler retrograde.

I took the opertunity to rebuild the whole system on ~x86 and it seems to be going a lot better.

I had that much stuff unmasked specifically it made more sense to go the whole hog.

Thanks for your help.
8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
keli
Apprentice
Apprentice
User avatar
Posts: 210
Joined: Fri Jul 18, 2003 8:30 am
Location: TgMures, RO
Contact:
Contact keli
Website

  • Quote

Post by keli » Mon Feb 13, 2006 1:22 pm

Help! :D
After I upgraded to GCC 3.4.1-r3, I'm getting

Code: Select all

checking for C compiler default output... configure: error: C compiler cannot create executables
on almost all packages (obviously, exceptions are those, that don't use C at all). I tried everything suggested (and possibly applicable to my case) in this thread, still no luck. I tried gcc-config back and forth (prev. version was 3.3.4), simplifying CFLAGS, nothing. Current system status:

Code: Select all

# emerge --info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.1, glibc-2.3.5-r2, 2.6.14-gentoo-r2-keli i686)
=================================================================
System uname: 2.6.14-gentoo-r2-keli i686 Intel(R) Celeron(R) M processor         1500MHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -fprefetch-loop-arrays -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -fprefetch-loop-arrays -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa apache2 apm audiofile avi bindist bitmap-fonts bluetooth bonobo bzip2 bzlib calendar cdparanoia cdr crypt ctype cups curl dbase directfb divx4linux dv dvb dvd dvdread emboss encode esd ethereal exif expat fam fbcon ffmpeg foomaticdb freetype ftp gd gif glut gmail gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imap imlib innodb jabber java jpeg lcms libg++ libwww mad mhash mikmod mime mmx mmx2 mng motif mozilla mp3 mpeg msn mssql mysql ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis opengl oscar pam pcmcia pcre pdflib perl php png pnp python quicktime readline ruby samba sdl session slang slp soap sockets speex spell sqlite sse sse2 ssl svg svga symlink tcpd tiff truetype truetype-fonts type1-fonts udev unicode utf8 vorbis wifi win32codecs x86 xml2 xmms xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
The only "hint" I've got is the following:

Code: Select all

# gcc-config -l
 [1] i386-pc-linux-gnu-3.3.4
 [2] i686-pc-linux-gnu-3.4.1 *
# fix_libtool_files.sh 3.3.4
 * Scanning libtool files for hardcoded gcc library paths...
 * Could not get gcc's CHOST!
Any ideas?

[Edit] It seems it's some type of LDPATH issue - ld seems to ignore it, or something.
Here's my /etc/env.d/05gcc I used ldconfig, env-update, tried rebooting ... still no luck

Code: Select all

 # cat /etc/env.d/05gcc
PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info"
LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.1"
GCC_SPECS=""
A test compile behaves like this:

Code: Select all

# gcc t.c
/usr/lib/../i686-pc-linux-gnu/bin/ld: crtbegin.o: No such file: No such file or directory
collect2: ld returned 1 exit status
although crtbegin.o exists in the directory specified by LDPATH above.
"The future masters of technology will have to be lighthearted and intelligent. The machine easily masters the grim and the dumb."
Marshall McLuhan, 1969
Top
keli
Apprentice
Apprentice
User avatar
Posts: 210
Joined: Fri Jul 18, 2003 8:30 am
Location: TgMures, RO
Contact:
Contact keli
Website

  • Quote

Post by keli » Tue Feb 14, 2006 9:34 am

for the record :)

My problem is solved - after I started digging in the fix_libtool_files.sh script (to see where was it getting the error), I found out, that

Code: Select all

gcc -print-file-name=libgcc.a
didn't work for me. It turns out, (gcc -print-search-dirs) gcc was using the wrong path to look for libraries -

Code: Select all

/usr/lib/i686-pc-linux-gnu/3.4.1/
instead of

Code: Select all

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.1/
although it did have the right paths set in /etc/env.d/05gcc (see above). Or am I missing something?
Anyway. A symlink, and everything's working now.

[Edit]
I also needed a

Code: Select all

ln -s /usr/lib/gcc-lib /usr/lib/gcc
. I really don't get it, why I need these (why wasn't it set as expected by emerge?), but anyway ....
"The future masters of technology will have to be lighthearted and intelligent. The machine easily masters the grim and the dumb."
Marshall McLuhan, 1969
Top
Brooske
n00b
n00b
Posts: 11
Joined: Fri Jun 03, 2005 9:43 am

  • Quote

Post by Brooske » Sun Jul 09, 2006 12:04 am

Same error, other solution:

I chose the i686 stage3 tarball
Acidentally deleted /etc/make.conf, started a new one from the .example
where CHOST was i386.

I changed it to i686 and poof, it worked :-)

Btw, this is my first post on the Gentoo Forum. I'm using gentoo since a long time, and I can't say how much I like it.
I found valuable info and help on this forum. So: thank you guys ! ;-)
Top
startail
n00b
n00b
User avatar
Posts: 71
Joined: Sun Sep 25, 2005 10:11 am

  • Quote

Post by startail » Sat Sep 23, 2006 5:02 pm

I had a problem with sys-libs/db 4.3.29-r2 that you can read here, http://forums.gentoo.org/viewtopic-p-35 ... ml#3598248

My problem was also that I got an error that It can not create executables.
But I had a link to ccache in /usr/lib/ccache/bin named i686-pc-linux-gnu-cc that the compiled found and tried to run, but it seems like it doesn't work and thus it crashed. Anyhow, now I hope someone has been helped.
Top
irish
n00b
n00b
Posts: 10
Joined: Thu Sep 23, 2004 7:19 pm

  • Quote

Post by irish » Wed Sep 27, 2006 6:10 pm

After an overnight emerge -uND system I found I had this 'could not compile exe' issue.
I tried various other suggestions on here, all the older compilers etc
When I ran binutils-config I realised I wasn't using the latest version.
Switching to the most recent compiler, then the most recent binutils returned me to a working system.

Man am I relieved!

Woulda been nice if the new binutils had switched me over automatically, particularly if it broke my old one!

YMMV
Top
basicx
n00b
n00b
Posts: 14
Joined: Sat Apr 09, 2005 1:16 pm
Location: The Netherlands

  • Quote

Post by basicx » Wed Oct 18, 2006 9:50 pm

Hi,

I had the "configure: error: C compiler cannot create executables" error just now, while trying to 'emerge -uvDN world'. The error occurred on the first package that portage was trying to emerge (db-4.2.52_p4-r2).

The solution for me was to comment out the line containing my FEATURES variable in /etc/make.conf (simply add a '#' at the beginning of the line). The variable was set to "ccache". After that, db was emerged fine.

I then interrupted the 'emerge -uvDN world', re-emerged ccache and uncommented FEATURES in /etc/make.conf again. This solved the problem.

Portage is currently compiling happily ever after with ccache enabled... :D

Thanks to the person way back in this thread who suggested to try commenting out the FEATURES variable!
Top
bmeagle
n00b
n00b
User avatar
Posts: 56
Joined: Wed Nov 30, 2005 10:46 am
Location: South Africa

  • Quote

Post by bmeagle » Wed Oct 25, 2006 6:21 pm

Same here, disabled ccache from my features variable and viola I can emerge db, does anyone know why this is happening?
Top
changeling
n00b
n00b
Posts: 4
Joined: Sun Oct 29, 2006 8:38 pm

  • Quote

Post by changeling » Sun Oct 29, 2006 8:42 pm

For what it's worth, my experience:

I tried most of the fixes listed here, what finally fixed it was:

Code: Select all

binutils-config -l

Code: Select all

binutils-config 2
Note that [2] was, for me, 'i686-pc-linux-gnu-2.17', in the 'binutils-config' listing.

In my case, somehow 'binutils-config' was still pointing at 2.16.1, which was no longer on the system. 2.17 had been installed, but binutils had not reconfigured.
Hope this helps some of y'all.

-- Just this guy.
Top
dalu
Guru
Guru
User avatar
Posts: 536
Joined: Mon Jan 20, 2003 9:55 pm

  • Quote

Post by dalu » Wed Nov 01, 2006 2:46 am

just for the record

after i merged a new gcc version (3.4.6 hardenednopie)

Code: Select all

source /etc/profile
solved the problem
Top
raulpober
n00b
n00b
User avatar
Posts: 36
Joined: Thu Oct 26, 2006 10:23 pm

  • Quote

Post by raulpober » Wed Dec 06, 2006 6:55 pm

Getting the same configure error when trying to emerge povray. I have checked /etc/make.conf, gcc-config, and binutils and all of them are setup correctly. Furthermore, I don't get this error when emerging other packages.

Code: Select all

checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.


===============================================================================
POV-Ray 3.6.1 has been configured with the following features:
  I/O restrictions: enabled
  X Window display: enabled
  SVGAlib display : disabled

Type 'make' to build, and 'make install' to install all files in the hierarchy
/usr
===============================================================================

 * Building povray
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1'
Making all in libraries
make[2]: Entering directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/libraries'
Making all in png
make[3]: Entering directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/libraries/png'
make[3]: *** No rule to make target `all'.  Stop.
make[3]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/libraries/png'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/libraries'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1'
make: *** [all] Error 2

!!! ERROR: media-gfx/povray-3.6.1-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  povray-3.6.1-r1.ebuild, line 51:   Called die

!!! build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Top
raulpober
n00b
n00b
User avatar
Posts: 36
Joined: Thu Oct 26, 2006 10:23 pm

  • Quote

Post by raulpober » Wed Dec 06, 2006 9:14 pm

Turns out this is a problem with the povray ebuild. The solution can be found here:

http://forums.gentoo.org/viewtopic-p-37 ... ml#3766204
Top
bytenirvana
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sat Jun 10, 2006 10:18 pm
Location: Volksstaat Hessen

  • Quote

Post by bytenirvana » Wed Dec 27, 2006 9:11 pm

neiras wrote:

Code: Select all

# gcc-config

Code: Select all

# gcc-config 1

Code: Select all

# source /etc/profile
thx. I stumpled on this tonight, but the solution was much easier then exspected!
Top
Sedrik
l33t
l33t
User avatar
Posts: 655
Joined: Fri Apr 08, 2005 7:14 am
Location: Uppsala, Sweden

Error: C compiler cannot create executables

  • Quote

Post by Sedrik » Fri Jan 12, 2007 11:28 pm

Hi all

So I'm working on my Intel core 2 duo x86_64 install and when I'm about to do the first emerge (syslog-ng) I get that funny error message.

Sine I'm doing this on my laptop with only 2 mouse buttons I'm finding it hard to copy and paste stuff for you :(

This is what I have tried..
Changing -march to pentium4m instead of core2
rebuild gcc
rebuild kernel

I don't know what else is wrong :( Please give me some hints on what the error may be.
From Gentoo with love
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Fri Jan 12, 2007 11:35 pm

Yours is a duplicate of: http://forums.gentoo.org/viewtopic-t-27 ... ables.html

Read through that extensive thread and see if any of the solutions provided there work for you.

Edit: this is so common, there is an FAQ entry for it... http://forums.gentoo.org/viewtopic-t-29 ... ables.html
Bones McCracker wrote:On the other hand, regex is popular with the ladies.
Top
nixnut
Bodhisattva
Bodhisattva
User avatar
Posts: 10974
Joined: Fri Apr 09, 2004 1:43 pm
Location: the dutch mountains

  • Quote

Post by nixnut » Sat Jan 13, 2007 5:55 pm

merged above two posts here.
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Top
Mgiese
Veteran
Veteran
User avatar
Posts: 1638
Joined: Wed Mar 23, 2005 5:25 pm
Location: indiana
Contact:
Contact Mgiese
Website

  • Quote

Post by Mgiese » Sun Jan 14, 2007 2:14 am

same error : checking for C compiler default output file name... configure: error: C compiler cannot create executables


"binutils-config -l" told me i have only i386-pc-linux-gnu
so i changed everything in it into i686 ;) and now it is compiling ;) lets see howlong hehe

thx at all involved
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x (powersave governor) ; Radeon 9070 XT ; kernel 6.18.4 ; XFCE ; SYSTEMD
Top
sylum
n00b
n00b
Posts: 36
Joined: Thu Jun 01, 2006 11:48 am
Location: Arizona

I think I broke it!

  • Quote

Post by sylum » Sun Jan 14, 2007 11:52 pm

So, running emerge I get something similar to the problem everyone here is having:

Code: Select all

checking for C compiler default output file name... configure: error: C compiler cannot create executables
So, I've tried reinstalling glibc (cause I saw that on some forum). That didn't help. I'm trying to update my gcc to 4.1.1 ... but it gives me:

Code: Select all

checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
OK, fine. I try to run "gcc-config -c" (to get current gcc profile version) and get:

Code: Select all

 * gcc-config: No gcc profile is active!
 * gcc-config: No gcc profile is active; please select one!
OK, well, this could very well be the cause of my problem. Great, so lets select a profile I'm thinking... "gcc-config -l" (list available):

Code: Select all

 * gcc-config: No gcc profile is active!
 * gcc-config: No gcc profile is active; please select one!
Same thing. So, dumb question. How do I generate a gcc profile???
Top
Post Reply

282 posts
  • Page 5 of 12
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 12
  • Next

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