View previous topic :: View next topic |
Author |
Message |
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Sun Dec 29, 2002 1:26 am Post subject: overriding ${CC}? |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Dec 29, 2002 3:06 am Post subject: |
|
|
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 |
|
|
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Sun Dec 29, 2002 3:10 am Post subject: |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Dec 29, 2002 3:25 am Post subject: |
|
|
Are they both the same architecture? How do their make.conf's compare? _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Sun Dec 29, 2002 3:42 am Post subject: |
|
|
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 |
|
|
kram n00b
Joined: 29 Nov 2002 Posts: 35
|
Posted: Sun Dec 29, 2002 6:07 am Post subject: |
|
|
Maybe check the contents of /etc/env.d/05gcc ??? |
|
Back to top |
|
|
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Sun Dec 29, 2002 9:47 am Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Dec 29, 2002 10:16 pm Post subject: |
|
|
Moved from DE. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
proxy Apprentice
Joined: 20 Apr 2002 Posts: 260 Location: Chantilly, VA
|
Posted: Mon Dec 30, 2002 7:45 pm Post subject: |
|
|
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
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 |
|
|
jukka Apprentice
Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Dec 31, 2002 8:44 am Post subject: |
|
|
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 |
|
|
|