Summary: | crossdev-0.9 fails while building PowerPC glibc | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Scott Alfter <scott> |
Component: | New packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
cross-powerpc-unknown-linux-gnu-glibc.log
cross-powerpc-unknown-linux-gnu-info.log config.log |
Description
Scott Alfter
2005-03-22 22:52:50 UTC
Created attachment 54206 [details]
cross-powerpc-unknown-linux-gnu-glibc.log
Created attachment 54207 [details]
cross-powerpc-unknown-linux-gnu-info.log
Created attachment 54209 [details]
config.log
Attachment #<a href="/attachment.cgi?id=54206">54206</a> says to refer to this
file for more details.
Updating virtual/os-headers from 2.4.21-r1 to 2.6.8.1-r2 made no difference, FWIW. About the only native-toolchain element not upgraded yet is gcc. I'm trying to build gcc 3.4.3 as a cross-compiler for PowerPC because emerge world on my Power Mac G3 decided to grab it (the stage3 tarball came with gcc-3.4.3-r1 and emerge world is building gcc-3.4.3-r3, while the gcc-3.3.5-r1 that's currently installed on my Athlon box is the newest stable version for x86. I ordinarily wouldn't bother building PPC glibc because I just want the C and C++ compilers to be available to distcc, but the C++ compiler apparently can't be built without glibc. you're running stable x86, chances are your host toolchain is screwing things up My host toolchain meets all of the minimums given at http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO: glibc-2.3.4.20040808-r1, binutils-2.15.92.0.2-r7, gcc-3.3.5-r1, linux26-headers-2.6.8.1-r2. If there is some additional dependency that isn't specified on that page, perhaps it should be updated so that people won't file bugs here that end up getting tagged WONTFIX. I've thrown together another x86 Gentoo box with the instructions given at http://forums.gentoo.org/viewtopic-t-189250-postdays-0-postorder-asc-start-0.html. It's using binutils-2.15.92.0.2-r7 (same as above), gcc-3.4.3.20050110-r1 (updated), glibc-2.3.4.20050125-r1 (updated), and linux26-headers-2.6.8.1-r2 (same as above). Maybe that'll make a difference. eh, i didnt really read your config.log, i just assumed you did it wrong :p that said, your config.log shows that you're using the wrong CFLAGS: configure:2672: powerpc-unknown-linux-gnu-gcc -c -O2 -march=i686 -finline-limit=2000 -O2 conftest.c >&5 cc1: error: invalid option `arch=i686' configure:2672: powerpc-unknown-linux-gnu-gcc -c -O2 -march=i686 -finline-limit=2000 -O2 conftest.c >&5 cc1: error: invalid option `arch=i686' I didn't notice that. It does seem bizarre that it would try to apply an x86 optimization to a PowerPC build. I'm trying the build again on the first system with CFLAGS and CXXFLAGS unset to see if that'll allow it to build. (tail -f /var/log/portage/cross-powerpc-unknown-linux-gnu-glibc.log shows some compiling activity.) The crossdev-0.9.5 ebuild on the second system failed at the same point, so I'm doing the same thing with it: build stage 2 (glibc) with CFLAGS & CXXFLAGS unset, then stage 3 with the usual CFLAGS & CXXFLAGS. I'll post an update when they're done. crossdev just uses portage which defaults to the CFLAGS in your /etc/make.conf ;) you should `export CFLAGS="-O2 -pipe"` when running crossdev |