Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unable to compile old gcc needed by libstdc++
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Tue Aug 07, 2007 4:48 pm    Post subject: [SOLVED] Unable to compile old gcc needed by libstdc++ Reply with quote

Hello!

Here is my make.conf (partial)
Code:
CFLAGS="-O2 -march=pentium-m -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
ACCEPT_KEYWORDS="~x86"
MAKEOPTS="-j2"


When I do an emerge gnome-light, virtual/libstdc++-3.3 has a dependency on gcc-3.3.6-r1 (which does not support the -march option given in my make.conf).
(I saw it in the build.log below). I tried anyway to compile it, but get the following error:
Code:
emake failed with bootstrap-lean


Part of the build.log (I can give the full, but it will take some place...)
Code:
cc1: error: bad value (pentium-m) for -march= switch
cc1: error: bad value (pentium-m) for -mcpu= switch


Any idea on how to solve this problem?

Thanks!!


Last edited by kirikou on Tue Aug 07, 2007 9:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Tue Aug 07, 2007 4:54 pm    Post subject: Reply with quote

instead of letting virtual/libstdc++ install an old gcc, force it to install the compatibiltiy layer for a new gcc:
Code:

emerge -1  sys-libs/libstdc++-v3


Then try again.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


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

PostPosted: Tue Aug 07, 2007 5:19 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
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Tue Aug 07, 2007 9:26 pm    Post subject: Reply with quote

Thanks it works!
(I have posted this in installing gentoo, because it happened while I was installing it! But doesn't matter now since the problem is solved!)
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Wed Sep 19, 2007 6:54 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads, refer to topic "Portage wants me to merge gcc 3?!".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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