Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc 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
gino_rotormind
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2003
Posts: 79

PostPosted: Wed May 04, 2005 8:13 am    Post subject: glibc Problem Reply with quote

I have an aluminium powerbook 15" and have been playing with my USE flags. Specifically regarding nptl and nptlonly. This machine has been upgraded for over a year now without problems. However, after playing with these and a few other USE flags emerge --newuse requires a rebuild of glibc (whether or not I have added or removed nptl and nptlonly). This is not a problem except regardless of whether I try and install 2.3.5 (yes I know it is unstable) or 2.3.4.20041102-r1 I get compile errors. This has basically left me in a position that I can't update anything until glibc is fixed. I have set my CFLAGS as those on http://gentoo-wiki.com/Safe_Cflags#7450.2C_aka_G4_second_generation_.28PowerPC.29 thinking these might fix the issue.

Given the choice I would rather move to nptl only with the 2.3.5 glibc.

The error if I try 2.3.4.20041102-r1 is as follows:
Code:

powerpc-unknown-linux-gnu-gcc uselocale.c -c -std=gnu99 -O2 -Wall -Winline -Wstr ict-prototypes -Wwrite-strings -mabi=altivec -mcpu=7450 -pipe -mnew-mnemonics   -DLOCALE_PATH='"/usr/lib/locale:/usr/share/i18n"' -DLOCALEDIR='"/usr/lib/local e"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"' -DCHARMAP_PATH='"/usr/share/i18n/c harmaps"' -DREPERTOIREMAP_PATH='"/usr/share/i18n/repertoiremaps"' -DLOCSRCDIR='" /usr/share/i18n/locales"' -DHAVE_CONFIG_H -Iprograms -I../include -I. -I/var/tmp /portage/glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-np tl/locale -I.. -I../libio -I../nptl -I/var/tmp/portage/glibc-2.3.4.20041102-r1/w ork/build-default-powerpc-unknown-linux-gnu-nptl -I../sysdeps/powerpc/powerpc32/ elf -I../sysdeps/powerpc/elf -I../nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32  -I../nptl/sysdeps/unix/sysv/linux/powerpc -I../nptl/sysdeps/unix/sysv/linux -I. ./nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../npt l/sysdeps/unix -I../nptl/sysdeps/powerpc -I../libidn/sysdeps/unix -I../sysdeps/u nix/sysv/linux/powerpc/powerpc32 -I../sysdeps/unix/sysv/linux/powerpc -I../sysde ps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/m man -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../sy sdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/flt-32 -I../sysdeps/ ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generi c -nostdinc -isystem /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3/include -isyst em //usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-sy mbols.h  -DPIC     -o /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-defaul t-powerpc-unknown-linux-gnu-nptl/locale/uselocale.o -MD -MP -MF /var/tmp/portage /glibc-2.3.4.20041102-r1/work/build-default-powerpc-unknown-linux-gnu-nptl/local e/uselocale.o.dt -MT /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default -powerpc-unknown-linux-gnu-nptl/locale/uselocale.o
{standard input}: Assembler messages:
{standard input}:185: Error: symbol `.LTLS0' is already defined
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-powerp c-unknown-linux-gnu-nptl/locale/newlocale.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../socket/sys/socket.h:27,
                 from ../include/sys/socket.h:2,
                 from ../inet/netinet/in.h:24,
                 from ../include/netinet/in.h:3,
                 from ../resolv/resolv.h:57,
                 from ../include/resolv.h:11,
                 from ../nptl/descr.h:43,
                 from ../nptl/sysdeps/powerpc/tls.h:61,
                 from ../include/tls.h:6,
                 from ../sysdeps/generic/bits/libc-tsd.h:45,
                 from localeinfo.h:190,
                 from uselocale.c:21:
../include/sys/uio.h:5: warning: `altivec' attribute ignored
../include/sys/uio.h:7: warning: `altivec' attribute ignored
../include/sys/uio.h:9: warning: `altivec' attribute ignored
../include/sys/uio.h:11: warning: `altivec' attribute ignored
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc- 2.3.3/locale'
make[1]: *** [locale/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc- 2.3.3'
make: *** [all] Error 2


and for glibc 2.3.5
Code:
powerpc-unknown-linux-gnu-gcc uselocale.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -freorder-blocks -mcpu=7450 -pipe -mnew-mnemonics     -DLOCALE_PATH='"/usr/lib/locale:/usr/share/i18n"' -DLOCALEDIR='"/usr/lib/locale"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"' -DCHARMAP_PATH='"/usr/share/i18n/charmaps"' -DREPERTOIREMAP_PATH='"/usr/share/i18n/repertoiremaps"' -DLOCSRCDIR='"/usr/share/i18n/locales"' -DHAVE_CONFIG_H -Iprograms -I../include -I. -I/var/tmp/portage/glibc-2.3.5/work/build-default-powerpc-unknown-linux-gnu-nptl/locale -I.. -I../libio -I../nptl -I/var/tmp/portage/glibc-2.3.5/work/build-default-powerpc-unknown-linux-gnu-nptl -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../nptl/sysdeps/unix/sysv/linux/powerpc -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/powerpc -I../libidn/sysdeps/unix -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.3/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC     -o /var/tmp/portage/glibc-2.3.5/work/build-default-powerpc-unknown-linux-gnu-nptl/locale/uselocale.o -MD -MP -MF /var/tmp/portage/glibc-2.3.5/work/build-default-powerpc-unknown-linux-gnu-nptl/locale/uselocale.o.dt -MT /var/tmp/portage/glibc-2.3.5/work/build-default-powerpc-unknown-linux-gnu-nptl/locale/uselocale.o
In file included from ../socket/sys/socket.h:27,
                 from ../include/sys/socket.h:2,
                 from ../inet/netinet/in.h:24,
                 from ../include/netinet/in.h:3,
                 from ../resolv/resolv.h:57,
                 from ../include/resolv.h:11,
                 from ../nptl/descr.h:39,
                 from ../nptl/sysdeps/powerpc/tls.h:61,
                 from ../include/tls.h:6,
                 from ../include/errno.h:22,
                 from ../string/argz.h:26,
                 from ../include/argz.h:3,
                 from newlocale.c:22:
../include/sys/uio.h:5: warning: `altivec' attribute ignored
../include/sys/uio.h:7: warning: `altivec' attribute ignored
../include/sys/uio.h:9: warning: `altivec' attribute ignored
../include/sys/uio.h:11: warning: `altivec' attribute ignored
{standard input}: Assembler messages:
{standard input}:185: Error: symbol `.LTLS0' is already defined
make[2]: *** [/var/tmp/portage/glibc-2.3.5/work/build-default-powerpc-unknown-linux-gnu-nptl/locale/newlocale.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../socket/sys/socket.h:27,
                 from ../include/sys/socket.h:2,
                 from ../inet/netinet/in.h:24,
                 from ../include/netinet/in.h:3,
                 from ../resolv/resolv.h:57,
                 from ../include/resolv.h:11,
                 from ../nptl/descr.h:39,
                 from ../nptl/sysdeps/powerpc/tls.h:61,
                 from ../include/tls.h:6,
                 from ../sysdeps/generic/bits/libc-tsd.h:45,
                 from localeinfo.h:190,
                 from uselocale.c:21:
../include/sys/uio.h:5: warning: `altivec' attribute ignored
../include/sys/uio.h:7: warning: `altivec' attribute ignored
../include/sys/uio.h:9: warning: `altivec' attribute ignored
../include/sys/uio.h:11: warning: `altivec' attribute ignored
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/locale'
make[1]: *** [locale/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5'
make: *** [all] Error 2


My USE flags are:
Quote:

a52 aac accessibility acpi aim altivec apm artworkextra audiofile avi
bash-completion bluetooth bzlib calendars ccache cdparanoia cpdflib
crypt dbus dga dio divx4linux doc dvdr dvdread encode exif fbcon
ffmpeg flash font-server ftp gb gcj gd glitz gmail gmailtimestamps
gphoto2 gtk2 gtkhtml hal hardened howl icq ieee1394 ipv6 jabber
javascript jikes ladcca lcms lm_sensors mcal memlimit mime ming
mmap mng mozsvg mpeg msn nfs no_wxgtk1 nptl nptlonly offensive oldworld openal
osc oscar oss pcmcia pcntl pdflib pic pnp portaudio posix ppds
qemu-fast quicktime sharedmem sheep simplexml slp smartcard sndfile
snmp soap sockets softmmu sox spell svg svga symlink sysfs szip
test theora threads udev usb vcd videos wifi xface xinerama xosd
xvid yahoo -gtk -motif -ppc -tcltk


any help with this would be greatly appreciated. if there is any additional information I can provide please let me know.

cheers,
gino
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed May 04, 2005 4:29 pm    Post subject: Reply with quote

I see you have hardened in your use flags. Try without hardened and change the gcc profile to the vanilla profile.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
gino_rotormind
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2003
Posts: 79

PostPosted: Fri May 06, 2005 12:04 am    Post subject: Vanilla profile?? Reply with quote

I was unaware I had changed anything in regards to the gcc profile. How do I change that?? And for that matter what is it??
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat May 07, 2005 7:53 am    Post subject: Reply with quote

first of all: you have "-ppc" in your use flags and that is bad, if you run ppc. ;-) I think you are using ufed to change your useflags. So this should be this bug.

How to change your compiler now? this can be done using gcc-config:

Code:

$ gcc-config -l
[1] powerpc-unknown-linux-gnu-3.4.1
[2] powerpc-unknown-linux-gnu-3.4.3 *
[3] powerpc-unknown-linux-gnu-3.4.3-hardened
[4] powerpc-unknown-linux-gnu-3.4.3-hardenednopie
[5] powerpc-unknown-linux-gnu-3.4.3-hardenednossp
$


now do "gcc-config 2" (or the number of the compiler you want to use..)

Best regards,

Markus
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