Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93057 - altivec not used to compile glibc from stage1
Summary: altivec not used to compile glibc from stage1
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-18 05:47 UTC by Jonas Bernoulli
Modified: 2005-06-04 17:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Bernoulli 2005-05-18 05:47:47 UTC
when doing a fresh installation of gentoo from a stage1 (possibly also stage2),
the following warning is displayed for each object build is displayed. this also
slows down the compilation process conciderably.

[...]
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 first thought this is because the gcc in the stage1 is compiled without the
altivec-useflag. but then i found that "emerge -e system" also produces the same
error.

Reproducible: Always
Steps to Reproduce:
1. start from stage1
2. set CHOST="-mcpu=7400 -O2 -pipe -maltivec -mabi=altivec -mpowerpc-gfxopt"
3. /usr/portage/scripts/bootstrap.sh or emerge -e system



Expected Results:  
it sould at least be possible to recover from this situation. but recompiling
glibc doesnt fix it. i am now trying if first recompiling gcc and then glibc helps.

# in /etc/make.conf: #
USE="-nls -ipv6"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -mpowerpc-gfxopt"
CXXFLAGS="${CFLAGS}" 

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

# versions: #
gcc-3.4.3
glibc-2.3.4.20041102-r1
Comment 1 Luca Barbato gentoo-dev 2005-05-18 16:48:50 UTC
It should be ignored safely, you can just send the output to dev/null to speed
up the buildtime.
Comment 2 Joe Jezak (RETIRED) gentoo-dev 2005-06-04 17:52:52 UTC
Closing as WONTFIX as it's just a warning that altivec is being applied where
it's not needed.  You should also enable jumping or skipping on your terminal so
that this doesn't slow down compiles.