building gcc-4.3 requires libc-headers, but cross-libc-headers requires cross-gcc ... Reproducible: Always Steps to Reproduce: 1. crossdev --target powerpc-unknown-linux-gnu Actual Results: checking whether gcc -O1 -pipe -mlong-double-128 uses IBM extended format... no checking whether gcc -O1 -pipe supports -mabi=ibmlongdouble... no configure: error: this configuration requires -mlong-double-128 IBM extended format support Expected Results: A working cross-toolchain to use with distccd
Created attachment 158379 [details] /var/log/portage/cross-powerpc-unknown-linux-gnu-info.log
Created attachment 158381 [details] /var/log/portage/cross-powerpc-unknown-linux-gnu-glibc-headers.log
Would it be possible to build a precompiled glibc-headers package using the native gcc-4.3.1 on one of my ppc32 machines ? I am willing to test any ideas you may have.
I have posted a workaround for this crossdev bug : http://forums.gentoo.org/viewtopic-t-699683.html I would be interested to hear from people if this works for them.
(In reply to comment #4) > I would be interested to hear from people if this works for them. > It worked for me! Didn't emerged two gcc's, only 4.3.1. Did crossdev --stage3 --l 2.7-r2 --g 4.1.3 --target powerpc64-unknown-linux-gnu crossdev --l 2.7-r2 --g 4.1.3 --target powerpc64-unknown-linux-gnu (the last one is probably enough) Before I was having the same error.
(In reply to comment #4) > I have posted a workaround for this crossdev bug : > http://forums.gentoo.org/viewtopic-t-699683.html > > I would be interested to hear from people if this works for them. > Sorry, didn't got it to work: crossdev --b 2.18-r3 --k 2.6.23-r3 --l 2.6.1 --g 4.1.2 \ -t powerpc-unknown-linux-gnu Additionally I tried the suggested patch and the --without-headers option However, I do not see, where the bug was introduced, the same toolchain built fine 2 months ago. I just removed it accidently with a --depclean.
*** Bug 233986 has been marked as a duplicate of this bug. ***
I also got the -mlong-double-128 error while installing a cross-toolchain with gcc-4.3, but I managed to get around it using crossdev --without-headers --gcc 4.1.2 --l 2.7-r2 --target powerpc64-unknown-linux-gnu Then I could succesfully install cross-gcc-4.3.1-r1 using crossdev --l 2.7-r2 --target powerpc64-unknown-linux-gnu
I also get this same error when installing a cross toolchain on a amd64 host and ppc target, compiling only stable versions (gcc-4.1.2, glibc-2.6.1, binutils-2.18-r3 and linux-headers-2.6.23-r3)
Created attachment 171542 [details] Logs from running crossdev I am still getting this error: I've tried a couple of different configurations and have yet to have any success with crossdev This is the error I get: error: this configuration requires -mlong-double-128 IBM extended format support I've tried all suggested workarounds with no success.
the solution from Maik works: crossdev --without-headers --gcc 4.1.2 --l 2.7-r2 --target powerpc64-unknown-linux-gnu Then: crossdev --l 2.7-r2 --target powerpc64-unknown-linux-gnu but it would be nice if it worked right out of the box.
it would be nice if someone submitted a patch too, but we see how that worked out fixed in cvs http://sources.gentoo.org/sys-libs/glibc/files/eblits/src_compile.eblit?r1=1.5&r2=1.6