View previous topic :: View next topic |
Author |
Message |
asbud n00b
Joined: 11 Jan 2005 Posts: 60
|
Posted: Tue Jan 11, 2005 11:25 pm Post subject: C++ compiler missing |
|
|
I have bootstrapped my system, and when I tried emerge system, the emerge ended with the following error,
checking that C++ compiler can compile simple program... no
configure: error: a working C++ compiler is required
emerge ends.
Where can I get a working C++ compiler?
In the USE option, I did not specify C++ as the comment said change only if you know what you are doing, I figured the default would then suffice.
Is this the problem, or do I need to emerge something different?
Thanks in advance. |
|
Back to top |
|
|
Lajasha Veteran
Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Tue Jan 11, 2005 11:27 pm Post subject: |
|
|
Correct me if I am wrong but gcc should be your default compiler and it should be installed by default. No idea what could be b0rked though. _________________ Come and play in my land |
|
Back to top |
|
|
asbud n00b
Joined: 11 Jan 2005 Posts: 60
|
Posted: Tue Jan 11, 2005 11:29 pm Post subject: |
|
|
Yeah, I have gcc, and it worked fine for the bootstrap, but then this...? |
|
Back to top |
|
|
hw-tph l33t
Joined: 08 Jan 2004 Posts: 768 Location: Uppsala, Sweden
|
Posted: Wed Jan 12, 2005 1:34 pm Post subject: |
|
|
Check your CXXFLAGS in /etc/make.conf.
Håkan |
|
Back to top |
|
|
asbud n00b
Joined: 11 Jan 2005 Posts: 60
|
Posted: Wed Jan 12, 2005 6:05 pm Post subject: |
|
|
CXXFLAGS="${CFLAGS}"
CFLAGS="-O2 -pipe -march=athlon64" |
|
Back to top |
|
|
asbud n00b
Joined: 11 Jan 2005 Posts: 60
|
Posted: Wed Jan 12, 2005 6:07 pm Post subject: |
|
|
Is it possible something went wrong during the bootstrap and the error message went off screen so that I couldn't see it or that it did not exit when the error occurred? |
|
Back to top |
|
|
Gherald Veteran
Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Wed Jan 12, 2005 6:11 pm Post subject: |
|
|
try changing to
CFLAGS="-O2 -pipe -march=athlon64"
CXXFLAGS="${CFLAGS}"
(I suspect order matters) |
|
Back to top |
|
|
alchemyx Tux's lil' helper
Joined: 27 Nov 2003 Posts: 111 Location: Swinoujscie, Poland
|
Posted: Wed Jan 12, 2005 6:37 pm Post subject: |
|
|
I think you are dealing with same problem as we in another thread. I am afraid that stage1 is broken, or bootstrap scripts (because gcc should be bootstraped first, afair). _________________ Michał Margula, alchemyx@uznam.net.pl, http://alchemyx.uznam.net.pl/
"W życiu piękne są tylko chwile" [Ryszard Riedel] |
|
Back to top |
|
|
asbud n00b
Joined: 11 Jan 2005 Posts: 60
|
Posted: Wed Jan 12, 2005 11:16 pm Post subject: |
|
|
So all I have to do is type
emerge --nodeps gcc
cd /usr/portage
scripts/bootstrap.sh
(This came from the other thread) or use the 2004.2 build?
Even with this version, once I emerge --sync, I am totally up to date, yes? No dependancies or optimizations that emerge won't fix, right? |
|
Back to top |
|
|
Luthien n00b
Joined: 12 Jan 2005 Posts: 9
|
Posted: Wed Jan 12, 2005 11:25 pm Post subject: |
|
|
asbud wrote: | Even with this version, once I emerge --sync, I am totally up to date, yes? No dependancies or optimizations that emerge won't fix, right? |
emerge --sync just updates the Portage tree but does not install any kind of software.
So even if emerge --sync works flawless (wich it does) it will not solve the issue of g++ not being present in the stage1 tarball. That's the reason for needing to emerge gcc.
A faster solution would be to just download a g++ binary. Well, and whatever other files g++ might need, wich I don't know wich ones are if any at all are, so I let emerge do it for me. |
|
Back to top |
|
|
quantus n00b
Joined: 30 Jul 2002 Posts: 60
|
Posted: Wed Jan 12, 2005 11:28 pm Post subject: |
|
|
If the bootstrap still bails, you should statically compile gcc before the bootstrap as I wrote in the other thread https://forums.gentoo.org/viewtopic.php?p=1970841#1970841 Code: | USE="static" emerge --nodeps gcc
cd /usr/portage
scripts/bootstrap.sh
emerge system
... |
|
|
Back to top |
|
|
asbud n00b
Joined: 11 Jan 2005 Posts: 60
|
Posted: Wed Jan 12, 2005 11:35 pm Post subject: |
|
|
Come to think of it, I tried an emerge gcc last night, which did not exactly, fix the problem. At this point I rebooted, and have yet to retry. I think I might do this tonight.
Would I just be better off downloading the 2004.2 CD image? |
|
Back to top |
|
|
Luthien n00b
Joined: 12 Jan 2005 Posts: 9
|
Posted: Wed Jan 12, 2005 11:49 pm Post subject: |
|
|
I just succesfully finished bootstrapping with with roblem after emerge --nodeps gcc (notice the --nodeps, emerge gcc will just as well fail). You should not need to download 2004.2
And yes, use static. |
|
Back to top |
|
|
asbud n00b
Joined: 11 Jan 2005 Posts: 60
|
Posted: Wed Jan 12, 2005 11:52 pm Post subject: |
|
|
Okay, thanks, I am installing my portage snapshot as we speak, I will try the suggestions above, and we will see what happens
Thanks alot everyone. |
|
Back to top |
|
|
|