Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc stable fails to compile on my G4 [solved]
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
cdf
n00b
n00b


Joined: 30 Apr 2005
Posts: 40
Location: Southern California

PostPosted: Thu Sep 08, 2005 9:34 pm    Post subject: glibc stable fails to compile on my G4 [solved] Reply with quote

I'm new to ppc but I was given a G4 desktop machine lately and am trying to install Gentoo. I started from stage3 so I have a usable system, but no matter what I do I can't seem to recompile glibc. Here are some details of the system:

/proc/cpuinfo:
Code:
processor       : 0
cpu             : 7400, altivec supported
temperature     : 22-24 C (uncalibrated)
clock           : 400MHz
revision        : 2.6 (pvr 000c 0206)
bogomips        : 794.62

total bogomips  : 794.62
machine         : PowerMac3,1
motherboard     : PowerMac3,1 MacRISC2 MacRISC Power Macintosh
detected as     : 65 (PowerMac G4 AGP Graphics)
pmac flags      : 00000004
L2 cache        : 1024K unified
memory          : 640MB
pmac-generation : NewWorld


/etc/make.conf:
Code:
CFLAGS="-O3 -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"

USE="-* altivec arts kde kdeenablefinal pam qt readline ssl X"


I've only tried compiling with (so-called) stable glibc-2.3.4.20041102-r1. I am about to try 2.3.5 or other versions unless someone can tell me what's going on. I have tried several combinations of USE flags with no luck:
Code:

userlocales hardened nptl nptlonly
userlocales hardened nptl
userlocales hardened
userlocales


And here is the latest pertinent (?) set of errors from my umpteenth attempt at compiling:
Code:

/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/libc.a(setjmp.o)(.text+0xb2): In function `__sigsetjmp@@GLIBC_2.3.4':
: undefined reference to `_rtld_global_ro'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads/elf/sln] Error 1
make -C ../io objdir=/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-linuxthreads -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-xstat64.os rtld-fxstat64.os rtld-open.os rtld-close.os rtld-read.os rtld-write.os rtld-lseek.os rtld-access.os rtld-fcntl.os rtld-getcwd.os'
make[2]: *** Waiting for unfinished jobs....

{snip}

make[1]: *** [elf/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function src_compile, Line 755, Exitcode 2
!!! (no error message)


Anyone know what's going on? I saw somewhere else on these forums that hardened and nptl[only] don't work with ppc, so that's why I started trying different USE flags. But still nothing.


Last edited by cdf on Fri Sep 09, 2005 12:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Sep 09, 2005 12:59 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=78951
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
cdf
n00b
n00b


Joined: 30 Apr 2005
Posts: 40
Location: Southern California

PostPosted: Fri Sep 09, 2005 12:26 pm    Post subject: it works!!! Reply with quote

Thanks!!!!! It works now. The above link reveals that having "hardened" in your toolchain interferes with glibc somehow. So I removed the hardened flag and recompiled gcc, and now glibc compiles just fine.
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