Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc: problem w/ altivec
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
glurps
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 292

PostPosted: Fri May 13, 2005 3:27 pm    Post subject: glibc: problem w/ altivec Reply with quote

when compiling glibc i get this error for all objects build:

emerge -e system (part)
Code:
powerpc-unknown-linux-gnu-gcc ../sysdeps/ieee754/dbl-64/e_atanh.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mabi$
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 ../include/errno.h:22,
                 from ../sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h:55,
                 from ../sysdeps/powerpc/fpu/bits/mathinline.h:128,
                 from ../math/math.h:382,
                 from ../include/math.h:3,
                 from ../sysdeps/ieee754/dbl-64/e_atanh.c:35:
../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


i get this error only when doing a stage1 installation. so at first thought that the reason is that the gcc in the stage1 was compiled without altivec support. but above code is from the "emerge -e system" output where the newly compiled gcc is used.

i include some relevant files, in case there is a typo i can not see:

/etc/package.use
Code:
sys-devel/gcc altivec -fortran -gtk
sys-libs/glibc nptl nptlonly userlocales


/etc/make.conf
Code:
USE="-nls -ipv6"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -mpowerpc-gfxopt"
CXXFLAGS="${CFLAGS}"
# ...
Back to top
View user's profile Send private message
watersb
Apprentice
Apprentice


Joined: 04 Sep 2002
Posts: 297
Location: where the hell is Tesuque, New Mexico?

PostPosted: Fri May 13, 2005 10:41 pm    Post subject: Reply with quote

It's a warning; I don't think you need to worry about it. I get the same warnings...
Back to top
View user's profile Send private message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Sat May 14, 2005 2:20 am    Post subject: Reply with quote

me too. Everything seems ok, though.
Back to top
View user's profile Send private message
glurps
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 292

PostPosted: Wed May 18, 2005 12:40 pm    Post subject: Reply with quote

yes it is a warning. but it also means what it sais and that is that "altivec wont be used". and this means that some optimation wont be performed. therefor it is relevant since this slows down all apps that could otherwise be compiled with this option activated. i consider this a bug and will file a bug report.

Bug (93057)
Back to top
View user's profile Send private message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Fri May 20, 2005 2:21 pm    Post subject: Reply with quote

Should altivec matter for glibc? (I thought the standard C library had more to do with file/char i/o, math functions, and other really simple stuff.) I thought altivec was some sort of multimedia optimization like mmx or 3dnow....I'm not a programmer, so perhaps someone with some low-level knowledge can enlighten me, if I'm wrong.
Back to top
View user's profile Send private message
aronchi
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2004
Posts: 94

PostPosted: Sat May 21, 2005 10:17 am    Post subject: Reply with quote

Glibc are used by nearly all system programs, so an optimization on those libraries is very important for all the system performance.

Optimizing glibc and kernel is so important for this reason.
_________________
Alessandro Ronchi Home Page
SOASI: Sviluppo Software e Sistemi Open Source Forlì
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