Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
overriding ${CC}?
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
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Sun Dec 29, 2002 1:26 am    Post subject: overriding ${CC}? Reply with quote

Hello,

I don't know if this is Desktop, or Programming related; please, move it where it belongs.

I'm trying to emerge fluxbox but the ebuild fails 'cause it calls gcc instead of g++. I've reemerged gcc, glibc, libtool, but nothing helps; so my question is: Is there any way to tell emerge to use g++? I've used:

Code:
CC="g++" emerge -b fluxbox
CXX="g++" emerge ...
export CC=g++; emerge....


but it didn't work.

Also, I'd like to know why this box calls gcc. I have another system which correctly calls g++. If anyone has an idea of what to check, please, drop me a line here.

Thank in advance,
Norberto
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Dec 29, 2002 3:06 am    Post subject: Reply with quote

Hmm... try an 'emerge rsync', and if it still acts funky, open up /usr/portage/x11-wm/fluxbox/fluxbox-___.ebuild and see what it's doing.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Sun Dec 29, 2002 3:10 am    Post subject: Reply with quote

Ok, I forget to say something. Both systems share /usr/portage thru NFS, so why does one compiles it and the other one, does not? They share the same portage tree....

Thanks,
Norberto
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Dec 29, 2002 3:25 am    Post subject: Reply with quote

Are they both the same architecture? How do their make.conf's compare?
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Sun Dec 29, 2002 3:42 am    Post subject: Reply with quote

Both make.conf are almost identical (same USE flags.) The system that does not compile fluxbox is a K6:

Code:
CHOST=i586-pc-linux-gnu.
CFLAGS="-march=i586 -O3 -pipe -fomit-frame-pointer"


The one that compiles it is a P3:
Code:
CHOST=i686-pc-linux-gnu.
CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"


BTW, I'm using gcc-2.95.3, glibc 2.2.5.
Back to top
View user's profile Send private message
kram
n00b
n00b


Joined: 29 Nov 2002
Posts: 35

PostPosted: Sun Dec 29, 2002 6:07 am    Post subject: Reply with quote

Maybe check the contents of /etc/env.d/05gcc ???
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Sun Dec 29, 2002 9:47 am    Post subject: Reply with quote

YES!! That did it!!

I had to change CXX="gcc" to "CXX=g++" and run env-update. Now I wonder why CXX was set to gcc....


Thank you kram.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Dec 29, 2002 10:16 pm    Post subject: Reply with quote

Moved from DE.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Mon Dec 30, 2002 7:45 pm    Post subject: Reply with quote

just letting you know that gcc is a front end for ALL the "gnu compiler collection" compilers, it will automatically do C++ compiling for .C .cpp .cxx files etc.

gcc does not stand for gnu C compiler anymore :P

so it is actually safe in most cases to just leave that as gcc, (unless it actually fails to detect the correct language).

proxy
Back to top
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Tue Dec 31, 2002 8:44 am    Post subject: Reply with quote

proxy wrote:
so it is actually safe in most cases to just leave that as gcc

hmm... gcc version 2 ebuilds set CXX is set to 'gcc' in /etc/env.d/05gcc. gcc version 3 ebuilds set it to 'g++'. can you explain this? on my boxes using profile 1.0 (gcc-2.95.3-r7) i often have to edit ebuilds to set CXX to 'g++', otherwise compiling fails.
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