View previous topic :: View next topic |
Author |
Message |
zerwalter n00b

Joined: 15 Aug 2004 Posts: 4 Location: Davis, CA
|
Posted: Tue Apr 26, 2005 2:43 am Post subject: |
|
|
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 |
|
 |
tagger n00b

Joined: 31 Mar 2005 Posts: 37
|
Posted: Wed Apr 27, 2005 4:12 am Post subject: |
|
|
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 |
|
 |
binary_runner n00b

Joined: 26 Oct 2003 Posts: 64
|
Posted: Wed Apr 27, 2005 9:08 pm Post subject: |
|
|
toddles13 wrote: |
Code: | binutils-config --amd64 |
then
Code: | source /etc/profile |
|
works for me too, thank you |
|
Back to top |
|
 |
Gavinator n00b

Joined: 29 Apr 2005 Posts: 1
|
Posted: Fri Apr 29, 2005 11:49 pm Post subject: |
|
|
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 |
|
 |
Ibn al-Hazardous Tux's lil' helper


Joined: 02 Sep 2004 Posts: 133 Location: Somewhere deep in the desert.
|
Posted: Sat Jun 04, 2005 9:54 pm Post subject: |
|
|
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 |
|
 |
pounard Tux's lil' helper


Joined: 17 Oct 2002 Posts: 143
|
Posted: Mon Jun 13, 2005 10:23 am Post subject: |
|
|
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 |
|
 |
RaZoR1394 Guru


Joined: 09 Jan 2005 Posts: 356
|
Posted: Mon Jun 13, 2005 10:53 am Post subject: |
|
|
pounard Yes, after updating binutils 2.16.1 I got the same problem. Thanks for the solution . |
|
Back to top |
|
 |
pounard Tux's lil' helper


Joined: 17 Oct 2002 Posts: 143
|
Posted: Mon Jun 13, 2005 1:40 pm Post subject: |
|
|
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 |
|
 |
exohuman n00b

Joined: 16 Mar 2005 Posts: 6
|
Posted: Mon Jun 13, 2005 1:50 pm Post subject: Thanks for the solution!!! |
|
|
Ran into this problem too! Thanks for the solution! |
|
Back to top |
|
 |
centic n00b

Joined: 19 Nov 2003 Posts: 33
|
|
Back to top |
|
 |
pounard Tux's lil' helper


Joined: 17 Oct 2002 Posts: 143
|
Posted: Mon Jun 13, 2005 2:02 pm Post subject: |
|
|
That is I was thinking of; thanks for confirmation  _________________ <!-- 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 |
|
 |
a2gentoo n00b

Joined: 17 Nov 2004 Posts: 66 Location: Derry, NH
|
Posted: Mon Jun 13, 2005 2:38 pm Post subject: Centic You Genious |
|
|
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 |
|
 |
Dr_Smack n00b

Joined: 15 Jul 2004 Posts: 18
|
Posted: Mon Jun 13, 2005 3:14 pm Post subject: |
|
|
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 |
|
 |
mrhenrik n00b

Joined: 13 Jun 2005 Posts: 2
|
Posted: Mon Jun 13, 2005 3:43 pm Post subject: |
|
|
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 |
|
 |
lixer n00b

Joined: 02 Sep 2004 Posts: 6
|
Posted: Mon Jun 13, 2005 4:07 pm Post subject: |
|
|
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 |
|
 |
yamakawa Guru


Joined: 28 Jul 2003 Posts: 340
|
Posted: Mon Jun 13, 2005 5:01 pm Post subject: |
|
|
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!!  |
|
Back to top |
|
 |
Lamp5 n00b

Joined: 17 Jun 2005 Posts: 6
|
|
Back to top |
|
 |
thirsk n00b

Joined: 12 Feb 2005 Posts: 2
|
Posted: Thu Jun 23, 2005 12:45 am Post subject: |
|
|
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 |
|
 |
Darknight Guru


Joined: 26 Jan 2004 Posts: 485 Location: Italy
|
Posted: Mon Jul 11, 2005 9:00 am Post subject: |
|
|
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 |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Mon Jul 11, 2005 7:06 pm Post subject: Re: Whew |
|
|
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 |
|
 |
antipod Apprentice


Joined: 20 Mar 2003 Posts: 168 Location: Karlshamn, Sweden
|
Posted: Fri Jul 15, 2005 10:00 pm Post subject: |
|
|
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 as it didn't work with --x86 for me. Now at least stuff is compiling. Goodie!
EDIT: Spelling... |
|
Back to top |
|
 |
seifn06 Tux's lil' helper


Joined: 19 Sep 2004 Posts: 90 Location: Lowell, Michigan
|
Posted: Thu Jul 21, 2005 7:28 pm Post subject: |
|
|
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 |
|
 |
WetSpot n00b


Joined: 05 May 2005 Posts: 29 Location: Middle Tennessee, USA
|
Posted: Wed Sep 07, 2005 4:28 pm Post subject: |
|
|
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 |
|
 |
Gustav n00b

Joined: 28 Oct 2005 Posts: 1
|
Posted: Fri Oct 28, 2005 7:52 pm Post subject: |
|
|
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 |
|
 |
dkaste n00b

Joined: 03 Nov 2005 Posts: 1
|
Posted: Thu Nov 03, 2005 4:39 am Post subject: Problem with emergeing gtk+ on 64 bit kernel in gentoo |
|
|
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 |
|
 |
|