Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C++ compiler missing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
asbud
n00b
n00b


Joined: 11 Jan 2005
Posts: 60

PostPosted: Tue Jan 11, 2005 11:25 pm    Post subject: C++ compiler missing Reply with quote

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
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Tue Jan 11, 2005 11:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
asbud
n00b
n00b


Joined: 11 Jan 2005
Posts: 60

PostPosted: Tue Jan 11, 2005 11:29 pm    Post subject: Reply with quote

Yeah, I have gcc, and it worked fine for the bootstrap, but then this...?
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Wed Jan 12, 2005 1:34 pm    Post subject: Reply with quote

Check your CXXFLAGS in /etc/make.conf.


Håkan
Back to top
View user's profile Send private message
asbud
n00b
n00b


Joined: 11 Jan 2005
Posts: 60

PostPosted: Wed Jan 12, 2005 6:05 pm    Post subject: Reply with quote

CXXFLAGS="${CFLAGS}"
CFLAGS="-O2 -pipe -march=athlon64"
Back to top
View user's profile Send private message
asbud
n00b
n00b


Joined: 11 Jan 2005
Posts: 60

PostPosted: Wed Jan 12, 2005 6:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Wed Jan 12, 2005 6:11 pm    Post subject: Reply with quote

try changing to

CFLAGS="-O2 -pipe -march=athlon64"
CXXFLAGS="${CFLAGS}"

(I suspect order matters)
Back to top
View user's profile Send private message
alchemyx
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2003
Posts: 111
Location: Swinoujscie, Poland

PostPosted: Wed Jan 12, 2005 6:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
asbud
n00b
n00b


Joined: 11 Jan 2005
Posts: 60

PostPosted: Wed Jan 12, 2005 11:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Luthien
n00b
n00b


Joined: 12 Jan 2005
Posts: 9

PostPosted: Wed Jan 12, 2005 11:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
quantus
n00b
n00b


Joined: 30 Jul 2002
Posts: 60

PostPosted: Wed Jan 12, 2005 11:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
asbud
n00b
n00b


Joined: 11 Jan 2005
Posts: 60

PostPosted: Wed Jan 12, 2005 11:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Luthien
n00b
n00b


Joined: 12 Jan 2005
Posts: 9

PostPosted: Wed Jan 12, 2005 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
asbud
n00b
n00b


Joined: 11 Jan 2005
Posts: 60

PostPosted: Wed Jan 12, 2005 11:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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