Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Today's emerge -uD libstd++ fails
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
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Thu Aug 19, 2004 6:33 am    Post subject: Today's emerge -uD libstd++ fails Reply with quote

heya guys,

i sync'ed today and an update world brought in a new gcc 3.4.1-r1 (which compiled fine) and also glibc++ 3.3.3 which fails. here is my current output

Code:
root@tigger ~ # emerge -uDpv world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild  N    ] sys-libs/libstdc++-v3-3.3.3-r1  -debug +nls  0 kB
...

which, when i run it, fails

Code:
...
checking whether the C compiler ( /var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/xgcc -B/var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/ -B/usr/powerpc-unknown-linux-gnu/bin/ -B/usr/powerpc-unknown-linux-gnu/lib/ -isystem /usr/powerpc-unknown-linux-gnu/include -O2 -O2 -mcpu=G4 -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-target-libiberty] Error 1

!!! ERROR: sys-libs/libstdc++-v3-3.3.3-r1 failed.
!!! Function src_compile, Line 169, Exitcode 2
!!! (no error message)

did any of you have the same problem, maybe a fix? thanks heaps in advance. this happens with both gcc compiled compilers: my old 3.3 and the 3.4.1 which i just compiled.

(ps: i am running ppc/linux, and i posted there too)

jens
_________________
Jens Troeger
http://savage.light-speed.de/


Last edited by _savage on Thu Aug 19, 2004 10:37 am; edited 1 time in total
Back to top
View user's profile Send private message
dgently
Apprentice
Apprentice


Joined: 29 Jul 2004
Posts: 160

PostPosted: Thu Aug 19, 2004 7:29 am    Post subject: Reply with quote

Is there some configure.log / build log which says why gcc 3.3 does not work?

Btw, a glibc++ does not exist ;) what you mean is libstdc++, the STL shipped with gcc.
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Thu Aug 19, 2004 10:30 am    Post subject: Reply with quote

dgently wrote:
Is there some configure.log / build log which says why gcc 3.3 does not work?


The file /var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/powerpc-unknown-linux-gnu/libiberty/config.log is the one containing the error log:

Code:
...
configure:1617: checking for uintptr_t
configure:1658: checking for pid_t
configure:2448: checking whether the C compiler ( /var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/xgcc -B/var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/ -B/usr/powerpc-unknown-linux-gnu/bin/ -B/usr/powerpc-unknown-linux-gnu/lib/ -isystem /usr/powerpc-unknown-linux-gnu/include -O2 -O2 -mcpu=G4 -pipe ) works
configure:2464:  /var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/xgcc -B/var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/ -B/usr/powerpc-unknown-linux-gnu/bin/ -B/usr/powerpc-unknown-linux-gnu/lib/ -isystem /usr/powerpc-unknown-linux-gnu/include -o conftest -O2 -O2 -mcpu=G4 -pipe   conftest.c  1>&5
cc1: error: bad value (G4) for -mcpu= switch
configure: failed program was:

#line 2459 "configure"
#include "confdefs.h"

main(){return(0);}


It says that G4 is an invalid value for the cpu switch. Erm, are these the settings from my /etc/make.conf file? I am surprised that nobody else ran into these issues yet. The G4 switch has been working for ages!

dgently wrote:
Btw, a glibc++ does not exist ;) what you mean is libstdc++, the STL shipped with gcc.


Oops yes, typo :-)

Jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Thu Aug 19, 2004 10:39 am    Post subject: Reply with quote

I just saw that this error message is all over the place, but did not break configure previously. Now I'm getting really curious here, was it like that all along??

[EDIT]Funny (not really though). According to http://gcc.gnu.org/onlinedocs/gcc-3.3.3/gcc/RS-6000-and-PowerPC-Options.html#RS%2f6000%20and%20PowerPC%20Options there is no G4 option at all? In my case, -mcpu is supposed to be set to 7450 (which comes closest to my 7455). Have I been compiling with the wrong -mcpu and -mtune options ever since I bootstrapped stage 1? I am rerunning the world update now....
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
dgently
Apprentice
Apprentice


Joined: 29 Jul 2004
Posts: 160

PostPosted: Thu Aug 19, 2004 10:57 am    Post subject: Reply with quote

The compiler that failed is not your installed gcc but an bootstrap compiler which was generated in the libstdc++ build.
I have no idea though, why it would fail with the option. Maybe some problems with CHOST or use flags?
To be honest, I do not really have any clue about ppc architecture but from what i know -mcpu=G4 should be right.

EDIT:
Looking at the link you posted, it indeed seems that only gcc-3.4 supports -mcpu=G4, but gcc-3.3 does not.
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Thu Aug 19, 2004 11:11 am    Post subject: Reply with quote

dgently wrote:
EDIT:
Looking at the link you posted, it indeed seems that only gcc-3.4 supports -mcpu=G4, but gcc-3.3 does not.


But I was using gcc-3.3 until now? I mean, my entire system was compiled with the G4 option on gcc-3.3 and it was working until now.
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
dgently
Apprentice
Apprentice


Joined: 29 Jul 2004
Posts: 160

PostPosted: Thu Aug 19, 2004 11:24 am    Post subject: Reply with quote

Then the doc is probably wrong.
Does "touch /tmp/foo.c; gcc -mcpu=G4 /tmp/foo.c" work for the gcc 3.3 compiler? (not sure if its called gcc-3.3 or if you have to set a special path..)
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Thu Aug 19, 2004 11:31 am    Post subject: Reply with quote

Well, libstd++ just compiled without problems.

If I call

Code:
savage@tigger ~ > echo "int main(int argc, char* argv[]) {return 0;}" > /tmp/foo.c ; gcc --version ; gcc -mcpu=G4 -o /tmp/foo.o -c /tmp/foo.c ; ll /tmp/foo*
gcc (GCC) 3.3.3 (Gentoo Linux 3.3.3_pre20040408-r1)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-rw-r--r--  1 savage users  45 Aug 19 04:27 /tmp/foo.c
-rw-r--r--  1 savage users 720 Aug 19 04:27 /tmp/foo.o
savage@tigger ~ >

then gcc obviously does not complain. Although it should. And it did when I tried to build the STL.

I am confused.

However, it is not gcc which fails when I build libstd++ but it's xgcc, the bootstrapped "mini" compiler. Maybe issues like that are handled differently then?

Jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
dgently
Apprentice
Apprentice


Joined: 29 Jul 2004
Posts: 160

PostPosted: Thu Aug 19, 2004 11:36 am    Post subject: Reply with quote

But libstdc++ compiled without -mcpu=G4?
If so, then i would file a bug against libstdc++.
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Thu Aug 19, 2004 11:42 am    Post subject: Reply with quote

dgently wrote:
But libstdc++ compiled without -mcpu=G4?
If so, then i would file a bug against libstdc++.


It compiled fine after I changed my /etc/make.conf settings from G4 to 7450. Which is fair enough, considering that G4 is not defined for gcc-3.3.x (it is, however, defined for gcc-3.4.x). Not sure if that is an actual bug...

Jens
_________________
Jens Troeger
http://savage.light-speed.de/
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