Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Aug 15, 2006 3:37 am    Post subject: gcc problem Reply with quote

I just finished a fresh stage3 install on g4 1ghz tibook (Powerbook IV). After reboot, I
Code:
emerge -uDN world
Emerge failed at gcc:
Code:
!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
   ebuild.sh, line 1539:    Called dyn_compile
   ebuild.sh, line 939:    Called src_compile
   ebuild.sh, line 1248:    Called toolchain_src_compile
   toolchain.eclass, line 24:    Called gcc_src_compile
   toolchain.eclass, line 1523:    Called gcc_do_make
   toolchain.eclass, line 1397:    Called die

!!! emake failed with bootstrap-lean

How do I correct this problem?
_________________
gentoo good to be true
Back to top
View user's profile Send private message
vandalman
n00b
n00b


Joined: 16 Mar 2005
Posts: 52

PostPosted: Tue Aug 15, 2006 4:22 am    Post subject: Reply with quote

what does the following produce?
Code:
emerge -pv sys-devel/gcc
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Aug 15, 2006 5:10 am    Post subject: Reply with quote

vandalman wrote:
what does the following produce?
Code:
emerge -pv sys-devel/gcc

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

Calculating dependencies... done!
[ebuild  NS    ] sys-devel/gcc-4.1.1  USE="altivec fortran gtk nls -bootstrap -build -doc -gcj -hardened -ip32r10k -mudflap -multislot -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB
[ebuild      U ] sys-libs/glibc-2.4-r3 [2.3.5-r3] USE="nls nptl -build -glibc-omitfp -hardened -nptlonly -profile" 15,756 kB

_________________
gentoo good to be true
Back to top
View user's profile Send private message
sno35
Guru
Guru


Joined: 15 May 2004
Posts: 334
Location: Paris, France

PostPosted: Tue Aug 15, 2006 7:03 am    Post subject: Reply with quote

Hi
May be it is a bug in portage-2.1.1_pre5-r1 that was handling -D badly.
Try re-emerging it if it is the case. My problem went away this way.
Hth
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Aug 15, 2006 5:37 pm    Post subject: Reply with quote

I tried
Code:
emerge -uav gcc
and still same error.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
sno35
Guru
Guru


Joined: 15 May 2004
Posts: 334
Location: Paris, France

PostPosted: Tue Aug 15, 2006 5:51 pm    Post subject: Reply with quote

By the way, what were the last lines previous to
Code:
!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
   ebuild.sh, line 1539:    Called dyn_compile
?
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Aug 15, 2006 10:15 pm    Post subject: Reply with quote

I think you are caught in a nasty loop. You currently have glibc-2.3.5 installed.
gcc-4.1.x needs to be compiled with at least glibc-2.3.6 - now that's where the
fun begin. You cannot upgrade glibc directly to version 2.4-r3 because it requires
gcc-4.1.x to compile.
So try this in this order:
Code:
emerge =sys-libs/glibc-2.3.6-r3

Once this is done you can emerge gcc-4.1.1
Code:
emerge -uD gcc

Once there you can update glibc
Code:
emerge -u glibc

You may want to rebuild your toolchain after that.

Hope that will do the trick.

EDIT Before I forget for glibc-2.4 you need to add the use flag nptlonly, in
fact I am sure that on ppc it is needed since at least glibc 2.3.5 but from your post it
hasn't been set up that way, you should do that before emerging glibc-2.3.6.


Last edited by fb on Wed Aug 16, 2006 8:27 am; edited 1 time in total
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Wed Aug 16, 2006 6:26 am    Post subject: Reply with quote

I'm working on this. Should I specify the nptl and nptlonly USE flags generally in my make.conf or only specifically for glibc? After briefly googling nptlonly, I read that it can be dangerous to set this USE flag. True?
_________________
gentoo good to be true


Last edited by nss on Wed Aug 16, 2006 7:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Wed Aug 16, 2006 6:39 am    Post subject: Reply with quote

New error...
Code:
configure: error: this configuration requires -mlong-double-128 IBM extended format support

!!! ERROR: sys-libs/glibc-2.4-r3 failed
!!! Function glibc_do_configure, Line 941, Exitcode 1
!!! failed to configure glibc

_________________
gentoo good to be true
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Wed Aug 16, 2006 8:49 am    Post subject: Reply with quote

Hi Bobotoes,

thanks for pointing my error it is corrected now. As far as I know nptl and nptlonly
are use flags that only applies to glibc (and may be some other libc). I had them
in my /etc/make.conf for a while without trouble. I recently moved them to
/etc/portage/package.use because they are very specific flags for only one package.
I have been using nptl and nptlonly on ppc and x86 without trouble. Furthermore
glibc-2.4 only provides nptl and not the other threads. And as I said on ppc the old
threads have stopped being compilable since glibc-2.3.5.

For your second problem, I should added a few steps before compiling glibc-2.4
-I am sorry for the omission- everything you need to know about your compilation
problem is in this thread https://forums.gentoo.org/viewtopic-t-478997.html.

Hope that will finish to solve the problem. Once you are done you can first run
fix-libtool_files.sh to get rid of all problems of direct linking to the old gcc libraries.
And then you can remove the old gcc and rebuild your whole system.
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Wed Aug 16, 2006 7:10 pm    Post subject: Reply with quote

glibc has finished. Your method worked. Before I begin a new post, I have reached another error and I'm not sure if it is related to the glibc/gcc topic of this post. Once I finished updating glibc I ran:
Code:
emerge -uDN world
stopping at
Code:
install: cannot stat `/var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/antlr.jar': No such file or directory

!!! ERROR: dev-java/antlr-2.7.5-r2 failed.
Call stack:
   ebuild.sh, line 1539:    Called dyn_install
   ebuild.sh, line 1013:    Called src_install
   antlr-2.7.5-r2.ebuild, line 81: Called java-pkg_dojar '/var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/antlr.jar'
   java-pkg.eclass, line 267:    Called die

!!! /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/antlr.jar not found

_________________
gentoo good to be true
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Wed Aug 16, 2006 9:34 pm    Post subject: Reply with quote

I am unfamilliar with this ebuild (i.e. I probably don't have it installed).
It is possible that it is a package that is not working with gcc-4.1.1,
we have weeded out most of them but some may have gone through.
Try to add dev-java/antlr to your package.keywords file to see if there
is a newer version available that works.
If it does, you should fill a bug report stating that this package should
be bumped to work with gcc-4.1.1.
If that's not it, better start a new thread to attract people familiar with
this particular ebuild.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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