Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc problems - 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
alexmoreno
n00b
n00b


Joined: 29 Oct 2003
Posts: 25

PostPosted: Mon Dec 20, 2004 3:55 pm    Post subject: glibc problems - SOLVED?? Reply with quote

Hi,

i´m trying to install gentoo on my aluminium powerbook g4 and it´s starting to be a nigthmare. After installing i tried to upgrade but then glibc failed with a hardware or OS error. I restarted the installation from stage1 instead of stage3 and when i tried to bootstrap the system i get th SAME ERROR.

Here you can see the error:

Code:

In file included from strftime.c:20:
../include/time.h:24: internal compiler error: in �k, at 0��:812
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [/var/tmp/portage/glibc-2.3.3.20040420-r1/work/glibc-2.3.2/buildhere/time/strftime.os] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.3.20040420-r1/work/glibc-2.3.2/time'
make[1]: *** [time/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.3.20040420-r1/work/glibc-2.3.2'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.3.20040420-r1 failed.
!!! Function src_compile, Line 589, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

livecd portage #



¿Could someoune help me please? I want GNOME on my g4 NOW!!! :p

thanks.


Last edited by alexmoreno on Tue Dec 21, 2004 3:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
MiniMoose
n00b
n00b


Joined: 22 Sep 2004
Posts: 33
Location: Seattle, WA

PostPosted: Mon Dec 20, 2004 5:02 pm    Post subject: Reply with quote

You probably have some wonky CFLAGS and USE settings. There is a nother thread in here detailing the latest CFLAGS you should use. I think it's something like this:

Code:
CFLAGS="-O3 -mcpu=XXXX -pipe"


Where XXXX is your CPU type. I use 7450 for my aluminum G4 laptop (1GHz).

The USE setting must have PAM in it. Since you want gnome, you'll also want to add all of the gnome related flags. You can read more about USE flags here: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=2
Back to top
View user's profile Send private message
alexmoreno
n00b
n00b


Joined: 29 Oct 2003
Posts: 25

PostPosted: Tue Dec 21, 2004 1:40 am    Post subject: Reply with quote

I´ve change a bit my make.conf file and now looks like this:


Code:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O1 -mcpu=G4 -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="-j2"


again, during bootstraping it failed on glibc...
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Dec 21, 2004 9:10 am    Post subject: Reply with quote

USE="-j2" is invalid, you set your use flags here, see /etc/make.conf.example. MAKE_OPTS="-j2" is the right place to set that.
Back to top
View user's profile Send private message
alexmoreno
n00b
n00b


Joined: 29 Oct 2003
Posts: 25

PostPosted: Tue Dec 21, 2004 9:57 am    Post subject: frustration... Reply with quote

:? frustration...


Code:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
#CFLAGS="-O2 -pipe -mcpu=7400 -maltivec"
CFLAGS="-O2 -pipe -mmultiple -mstring"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE=""




Code:

EENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DASSEMBLER -Wa,--noexecstack -x assembler-with-cpp -o /var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/misc/fgetxattr.os -
(echo '#include <sysdep.h>'; \
 echo 'PSEUDO (flistxattr, flistxattr, 3)'; \
 echo ' ret'; \
 echo 'PSEUDO_END(flistxattr)'; \
 echo 'libc_hidden_def (flistxattr)'; \
) | gcc -c -I../include -I. -I/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/misc -I.. -I../libio -I/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc/powerpc32 -I../linuxthreads/sysdeps/powerpc -I../sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32/fpu -I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/soft-fp -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.1/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DASSEMBLER -Wa,--noexecstack -x assembler-with-cpp -o /var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/misc/flistxattr.os -
cc1: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/buildhere/misc/fgetxattr.os] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.3.20040420-r2/work/glibc-2.3.2'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.3.20040420-r2 failed.
!!! Function src_compile, Line 587, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

livecd portage #
Back to top
View user's profile Send private message
alexmoreno
n00b
n00b


Joined: 29 Oct 2003
Posts: 25

PostPosted: Tue Dec 21, 2004 3:44 pm    Post subject: VICTORY!!!! Reply with quote

I´ve been all the night compiling once and again without satisfactory resutls. Finally this morning i decided to restart the install process from scracth. I also decided no to upgrade portage tree (as i did the last times), using the one included on the live cd.

Now, the installation has gracefully passed the glibc merging. That makes me think that there must be a bug on the last glibc library included on the portage tree. Could someone confirm that? Has someone upgraded glibc in a powerbook G4 as mine?

Thanks everybody
Back to top
View user's profile Send private message
alexmoreno
n00b
n00b


Joined: 29 Oct 2003
Posts: 25

PostPosted: Thu Dec 23, 2004 8:02 pm    Post subject: flags problem Reply with quote

Ok, i´be been having the same problem again with differents ebuilds. I´ve noticed that i can´t use any O flag. I was using O2 by default and when a deleted it ebuilds started to compile with not many problems.
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1311
Location: Munich / Germany

PostPosted: Sun Jan 30, 2005 11:25 am    Post subject: Reply with quote

Do you have "preemption" enables in your kernel? This could cause problems.
Back to top
View user's profile Send private message
BliZZZard
n00b
n00b


Joined: 25 Jul 2002
Posts: 52
Location: Colorado Springs, CO

PostPosted: Mon Feb 14, 2005 4:03 pm    Post subject: PPC GCC Prob: Internal Compiler Error Reply with quote

I have seen this same error message in a few other ebuilds, other than glibc, which I cannot seem to resolv. kde-libs and gst-plugins are two reproducable ones, where i get an error messages of an "Internal compiler error: Segment Fault". Unfortunately I'm not on the macihne to be able to post the actual code... but the machine is currently re-compiling the kernel with preemption removed to see if it resolves this issue. I sure hope that the compiler flags aren't the issue as I'm using the standard settings that came with the Stage3.tar.bz2 for PPC G4. In case anyone cares it's a 17" "iLamp" style iMac G4.
_________________
... Yea, if you could come in on saturday... that would be great....
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