Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I install g++? [HAD DONE]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ptcracker
n00b
n00b


Joined: 11 Nov 2007
Posts: 27

PostPosted: Sun Nov 11, 2007 12:49 am    Post subject: How can I install g++? [HAD DONE] Reply with quote

Hello, everybody!
Yesterday I did "emerge --sync" and "emerge --update --newuse --deep -av world".
And then, when I was installing zhcon, it showed me "g++ not found".
I reinstalled gcc-4.1.2, but I can't find i686-pc-linux-gnu-g++ yet.
Quote:

Gentoo Incoming # emerge -av gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-devel/gcc-4.1.2 USE="bootstrap build fortran gtk mudflap nls (-altivec) -d -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]

There are the commands in my system only.
Quote:

i686-pc-linux-gnu-addr2line i686-pc-linux-gnu-gcc i686-pc-linux-gnu-nm i686-pc-linux-gnu-readelf
i686-pc-linux-gnu-ar i686-pc-linux-gnu-gcc-4.1.2 i686-pc-linux-gnu-objcopy i686-pc-linux-gnu-size
i686-pc-linux-gnu-as i686-pc-linux-gnu-gprof i686-pc-linux-gnu-objdump i686-pc-linux-gnu-strings
i686-pc-linux-gnu-c++filt i686-pc-linux-gnu-ld i686-pc-linux-gnu-ranlib i686-pc-linux-gnu-strip

How can I install it?


Last edited by ptcracker on Sun Nov 11, 2007 1:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sun Nov 11, 2007 12:06 pm    Post subject: Reply with quote

Code:
sys-devel/gcc-4.1.2 USE="bootstrap build fortran gtk mudflap nls (-altivec) -d -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB


should be

Code:
sys-devel/gcc-4.1.2 USE="gtk mudflap nls (-altivec) -d -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB
Back to top
View user's profile Send private message
Habbit
Apprentice
Apprentice


Joined: 01 Sep 2007
Posts: 237
Location: 3.7137 W, 40.3873 N

PostPosted: Sun Nov 11, 2007 12:40 pm    Post subject: Reply with quote

Keruskerfuerst is right, the "bootstrap" and "build" USE flags should only be used while creating the stage1 and stage2 tarballs, which do not include C++ support. Rebuild gcc without these flags and you should be all set (anyways, do a revdep-rebuild after that for any possible libraries missing).
_________________
Code:
~ $ objdump -d ./habbit_mind
90      xchg %rax, %rax
EB FD   jmp $-3
Back to top
View user's profile Send private message
ptcracker
n00b
n00b


Joined: 11 Nov 2007
Posts: 27

PostPosted: Sun Nov 11, 2007 1:32 pm    Post subject: Reply with quote

You're right!
I had done when I rebuilded gcc without the flags "bootstrap" and "build".
Thanks Keruskerfuerst and Habbit.
How do you know should to disable these two flags? Where can I get the informations?
Back to top
View user's profile Send private message
Habbit
Apprentice
Apprentice


Joined: 01 Sep 2007
Posts: 237
Location: 3.7137 W, 40.3873 N

PostPosted: Sun Nov 11, 2007 2:26 pm    Post subject: Reply with quote

There is a file called something like use.desc that explains what the most common USE flags do. IIrc, it's located in the /usr/portage/profiles directory. Take a look at it and you'll see what I told you about those two flags.
_________________
Code:
~ $ objdump -d ./habbit_mind
90      xchg %rax, %rax
EB FD   jmp $-3
Back to top
View user's profile Send private message
ptcracker
n00b
n00b


Joined: 11 Nov 2007
Posts: 27

PostPosted: Sun Nov 11, 2007 3:31 pm    Post subject: Reply with quote

Thanks a lot! :D
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sun Nov 11, 2007 11:21 pm    Post subject: Reply with quote

ptcracker wrote:
How do you know should to disable these two flags? Where can I get the informations?
In addition to the file Habbit directed you to there is another in the same directory named use.local.desc which describes package specific flags. If you want to search for descriptions without manually searching through the files you could use euse -i $flag which will provide the description of $flag from either file, euse is part of app-portage/gentoolkit.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Nov 12, 2007 5:18 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Portage & Programming.
Not about getting gentoo installed, so moved 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
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
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