Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"C compiler cannot create executables" !??!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5 ... 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
zerwalter
n00b
n00b


Joined: 15 Aug 2004
Posts: 4
Location: Davis, CA

PostPosted: Tue Apr 26, 2005 2:43 am    Post subject: Reply with quote

I just found the solution to my above problem. I had qt in my USE flags, which is reliant on X11 (which I don't have installed -- console ftw.) I just changed it to -qt, and it compiled. Good luck with php :)
Back to top
View user's profile Send private message
tagger
n00b
n00b


Joined: 31 Mar 2005
Posts: 37

PostPosted: Wed Apr 27, 2005 4:12 am    Post subject: Reply with quote

Another one to add to the queue:

I followed the make.conf.example advice and, for my new dual G5 (ppc64, stage-2 install), set CFLAGS:
Code:
 CFLAGS="-O2 -pipe -mcpu=970 -mtarget=970 -maltivec -mabi=altivec"


The error popped up on me trying to do the initial
Code:
 emerge --emptytree system

Well, it turns out that the problem goes away if I remove -mcpu and every argument thereafter from CFLAGS. Too bad, it might have been nice to use those. I tried -mtune rather than -mcpu, to no avail. -mtarget=970 alone doesn't even work.

FWIW.
Back to top
View user's profile Send private message
binary_runner
n00b
n00b


Joined: 26 Oct 2003
Posts: 64

PostPosted: Wed Apr 27, 2005 9:08 pm    Post subject: Reply with quote

toddles13 wrote:

Code:
binutils-config --amd64

then
Code:
source /etc/profile



works for me too, thank you
Back to top
View user's profile Send private message
Gavinator
n00b
n00b


Joined: 29 Apr 2005
Posts: 1

PostPosted: Fri Apr 29, 2005 11:49 pm    Post subject: Reply with quote

I tried most of the methods and for some reason after i rebooted and logged in as root instead of using SU
it worked.
Back to top
View user's profile Send private message
Ibn al-Hazardous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Sep 2004
Posts: 133
Location: Somewhere deep in the desert.

PostPosted: Sat Jun 04, 2005 9:54 pm    Post subject: Reply with quote

I had this same error msg, but apparently another error. Since this was the thread I came across when searching, I thought I'd post the fix I found (by coinsidence) on bugzilla (https://bugs.gentoo.org/show_bug.cgi?id=86123):
Code:
rm -f /usr/lib32
ln -s ../../emul/linux/x86/usr/lib /usr/lib32
FEATURES=-sandbox emerge gcc

I was halfway through a reinstall on another partition when I found this solution, so I hope this'll help someone else. :)
_________________
/Ibn
Back to top
View user's profile Send private message
pounard
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2002
Posts: 143

PostPosted: Mon Jun 13, 2005 10:23 am    Post subject: Reply with quote

I had the error too; in fact it was binutils links in /usr/i686-pc-linux-gnu/bin that were pointing to /usr/i686-pc-linux-gnu/binutils-bin/2.16 ; or in facts real binaries were in /usr/i686-pc-linux-gnu/binutils-bin/2.16.1

So just do:
Code:
rm -rf /usr/i686-pc-linux-gnu/bin/*
for file in /usr/i686-pc-linux-gnu/binutils-bin/2.16.1/*; do ln -s $file /usr/i686-pc-linux-gnu/bin/; done
(of course dont forget to change this to match you binutils version)

after trying to fix /etc/env.d/05gcc and gcc-config of course

hope it can help some people (when typing this binutils-2.16.1 was just released in ~x86 profile)
_________________
<!-- ceci est une signature libre -->
Ceci n'est pas un virus, rassurez vous, aucune MST ne passe par les groupes pornos sur usenet;
Back to top
View user's profile Send private message
RaZoR1394
Guru
Guru


Joined: 09 Jan 2005
Posts: 356

PostPosted: Mon Jun 13, 2005 10:53 am    Post subject: Reply with quote

pounard Yes, after updating binutils 2.16.1 I got the same problem. Thanks for the solution ;).
Back to top
View user's profile Send private message
pounard
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2002
Posts: 143

PostPosted: Mon Jun 13, 2005 1:40 pm    Post subject: Reply with quote

i did this but i think binutils-config can do this on is own too..
i didnt tested, if anyone does; dont hesitate to answer :}
_________________
<!-- ceci est une signature libre -->
Ceci n'est pas un virus, rassurez vous, aucune MST ne passe par les groupes pornos sur usenet;
Back to top
View user's profile Send private message
exohuman
n00b
n00b


Joined: 16 Mar 2005
Posts: 6

PostPosted: Mon Jun 13, 2005 1:50 pm    Post subject: Thanks for the solution!!! Reply with quote

Ran into this problem too! Thanks for the solution!
Back to top
View user's profile Send private message
centic
n00b
n00b


Joined: 19 Nov 2003
Posts: 33

PostPosted: Mon Jun 13, 2005 1:52 pm    Post subject: Reply with quote

For fixing this cleanly, you should do

Code:

binutils-config i686-pc-linux-gnu-2.16.1
source /etc/profile


look at https://forums.gentoo.org/viewtopic-t-348545-start-0.html

Dominik.
Back to top
View user's profile Send private message
pounard
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2002
Posts: 143

PostPosted: Mon Jun 13, 2005 2:02 pm    Post subject: Reply with quote

That is I was thinking of; thanks for confirmation :D
_________________
<!-- ceci est une signature libre -->
Ceci n'est pas un virus, rassurez vous, aucune MST ne passe par les groupes pornos sur usenet;
Back to top
View user's profile Send private message
a2gentoo
n00b
n00b


Joined: 17 Nov 2004
Posts: 66
Location: Derry, NH

PostPosted: Mon Jun 13, 2005 2:38 pm    Post subject: Centic You Genious Reply with quote

I had to read 4 pages of stuff that didnt work until you came around

That was clean, easy and best of all.... IT WORKED!!

Thx.
_________________
BSD for my servers
Linux for my Laptop
Windows for my Spyware
-------------
Back to top
View user's profile Send private message
Dr_Smack
n00b
n00b


Joined: 15 Jul 2004
Posts: 18

PostPosted: Mon Jun 13, 2005 3:14 pm    Post subject: Reply with quote

I can verify that after installing binutils-2.16.1, my binutils profile was not updated to point to 2.16.1. It remained pointing to 2.16. Simply using binutils-config to change it and running source /etc/profile fixed everything as mentioned above.
Back to top
View user's profile Send private message
mrhenrik
n00b
n00b


Joined: 13 Jun 2005
Posts: 2

PostPosted: Mon Jun 13, 2005 3:43 pm    Post subject: Reply with quote

Finally!
I became a member of this Forum about 3 minutes ago just to say THANK YOU!
after browsing around all day i finally found the binutils error.
I had been trying to downgrade binutils - but "C compiler cannot create ..." wouldn't let me
and i could upgrade/downgrade gcc - because "as" couldn't be found...
Anyway thanks!
Back to top
View user's profile Send private message
lixer
n00b
n00b


Joined: 02 Sep 2004
Posts: 6

PostPosted: Mon Jun 13, 2005 4:07 pm    Post subject: Reply with quote

Dr_Smack wrote:
I can verify that after installing binutils-2.16.1, my binutils profile was not updated to point to 2.16.1. It remained pointing to 2.16. Simply using binutils-config to change it and running source /etc/profile fixed everything as mentioned above.


I failed to notice after the binutil upgrage that it failed to switch profiles. your tip seems to fix issues :)
Back to top
View user's profile Send private message
yamakawa
Guru
Guru


Joined: 28 Jul 2003
Posts: 340

PostPosted: Mon Jun 13, 2005 5:01 pm    Post subject: Reply with quote

i did
Quote:
/usr/bin/binutils-config -d i686-pc-linux-gnu-2.16.1
according to a solution in a bug report in bugzilla.
anyway, thank you all!! :D
Back to top
View user's profile Send private message
Lamp5
n00b
n00b


Joined: 17 Jun 2005
Posts: 6

PostPosted: Fri Jun 17, 2005 3:00 pm    Post subject: Whew Reply with quote

I'm the new guy. Thought I'd say hi and throw in .02 about this:

Do we agree that gcc upgrading is the trickiest quirk in the whole gentoo universe? I count about 4 threads devoted to it, some long ... mine was fixed by the short one :)
https://forums.gentoo.org/viewtopic-t-294109.html

Does someone think that these things
https://forums.gentoo.org/viewtopic-t-27486-highlight-binutils.html
https://forums.gentoo.org/viewtopic-t-278673.html

might be incorporated into a single sticky topic: try this first, then this,
Back to top
View user's profile Send private message
thirsk
n00b
n00b


Joined: 12 Feb 2005
Posts: 2

PostPosted: Thu Jun 23, 2005 12:45 am    Post subject: Reply with quote

I had things broken another way so that my C compiler wouldn't make executables.

I ran binutils-config (which I think is new on my system) and it wasn't set to anything. /usr/bin/ld didn't exist. So I did "binutils-config 1" and then everything was just fine and /usr/bin/ld existed again.

My etc-update wants to update 100 or so files so maybe it's my fault. Now, if emerging binutils-config had some super important warning notice after it completed merging (and many packages do), I can't take responsibility for that. Portage should compile these and keep them in a log or something.
Back to top
View user's profile Send private message
Darknight
Guru
Guru


Joined: 26 Jan 2004
Posts: 483
Location: Italy

PostPosted: Mon Jul 11, 2005 9:00 am    Post subject: Reply with quote

It happened to me today. I had changed "mcpu=pentium4" to "mtune=pentium4" in make.conf. When I changed back it worked ok... dohhhh
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon Jul 11, 2005 7:06 pm    Post subject: Re: Whew Reply with quote

Lamp5 wrote:

Do we agree that gcc upgrading is the trickiest quirk in the whole gentoo universe? ,


No, I have changed gcc several times and never had any real trouble. However, I have never been able to gat an ATI gx card to work - and I've spent days trying.

BTW the gentoo ATI thread is in the guiness book of records.
_________________
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
Back to top
View user's profile Send private message
antipod
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 168
Location: Karlshamn, Sweden

PostPosted: Fri Jul 15, 2005 10:00 pm    Post subject: Reply with quote

toddles13 wrote:
Don't know if this is your problem but it fixed mine by doing the following (this was after the upgrade to 2005.0)

Once you have gone through all the other suggestions in previous post then try this:

Code:
binutils-config --amd64

then

Code:
source /etc/profile




Worked for me too... amost, I did a
Code:
binutils-config 1
as it didn't work with --x86 for me. Now at least stuff is compiling. Goodie! :)

EDIT: Spelling...
Back to top
View user's profile Send private message
seifn06
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2004
Posts: 85
Location: Lowell, Michigan

PostPosted: Thu Jul 21, 2005 7:28 pm    Post subject: Reply with quote

Anyone here encountered the "C++ compiler cannot create executables" error while doing a fresh install of Hardened Gentoo (i.e. SELinux) lately? If so, how did you get solve the problem?

I'm in such a situation. I get the "C++ compiler cannot create executables" when I try to bootstrap the system (i.e. run scripts/bootstrap.sh). I've checked and rechecked my make.conf file, tried different options and even tried commenting out the CFLAGs and other variables in make.conf altogether but the bootstrap keeps failing while trying to compile Python early on in the script. I've used gcc-config as directed in the threads above to verify that the compiler is correctly chosen/referenced too. I would have used the binutils suggestion but I can't compile/emerge it since ncurses is among its dependencies. ncurses in turn complains and errors out during emerge/compilation because it can't find a C++ compiler and cannot create executables...

I posted https://forums.gentoo.org/viewtopic-t-361737.html yesterday about the problem but haven't gotten a reply yet...
Back to top
View user's profile Send private message
WetSpot
n00b
n00b


Joined: 05 May 2005
Posts: 29
Location: Atlanta, GA

PostPosted: Wed Sep 07, 2005 4:28 pm    Post subject: Reply with quote

Or, as was my case, I simply borked my /etc/make.conf by not using the -w option with nano while editng the USE flags.

Thus $CHOST was unavailable when required
_________________
"Consensus is the Negation of Leadership"
--M. Thatcher
Back to top
View user's profile Send private message
Gustav
n00b
n00b


Joined: 28 Oct 2005
Posts: 1

PostPosted: Fri Oct 28, 2005 7:52 pm    Post subject: Reply with quote

Hello!

I've the problem that "configure: error: installation or configuration problem: C++ compiler cannot create executables.".
When try using gcc-confiig says that command not found. I'm a beginer on this so can I fix it step by step?
I've the Ubuntu dstribution

This is what I get:

Code:

root@ubuntu:/usr/mp3blaster-3.2.0# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc  ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.


Thanks
_________________
Gustav :-)
Back to top
View user's profile Send private message
dkaste
n00b
n00b


Joined: 03 Nov 2005
Posts: 1

PostPosted: Thu Nov 03, 2005 4:39 am    Post subject: Problem with emergeing gtk+ on 64 bit kernel in gentoo Reply with quote

when i try and emerge gaim it bombs out when emergeing gtk+.
gives me c complier cannot create executables. I've tried the things listed in this topic and nothing seems to work for me.
I have a Amd64 Athlon xp 3500 with gentoo and a 64 bit kernel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3, 4, 5 ... 10, 11, 12  Next
Page 4 of 12

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum