Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229391 - powerpc-linux-gnu: gcc-4.3.1 needs glibc-headers but glibc-headers tests compiler for long double support
Summary: powerpc-linux-gnu: gcc-4.3.1 needs glibc-headers but glibc-headers tests comp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 233986 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-25 13:58 UTC by cyrillic
Modified: 2008-11-29 21:05 UTC (History)
4 users (show)

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


Attachments
/var/log/portage/cross-powerpc-unknown-linux-gnu-info.log (cross-powerpc-unknown-linux-gnu-info.log,8.35 KB, text/plain)
2008-06-25 13:59 UTC, cyrillic
Details
/var/log/portage/cross-powerpc-unknown-linux-gnu-glibc-headers.log (cross-powerpc-unknown-linux-gnu-glibc-headers.log,13.07 KB, text/plain)
2008-06-25 14:00 UTC, cyrillic
Details
Logs from running crossdev (cross-powerpc-unknown-linux-gnu-glibc-headers.log,14.01 KB, text/plain)
2008-11-12 16:08 UTC, Mirek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cyrillic 2008-06-25 13:58:08 UTC
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
Comment 1 cyrillic 2008-06-25 13:59:45 UTC
Created attachment 158379 [details]
/var/log/portage/cross-powerpc-unknown-linux-gnu-info.log
Comment 2 cyrillic 2008-06-25 14:00:45 UTC
Created attachment 158381 [details]
/var/log/portage/cross-powerpc-unknown-linux-gnu-glibc-headers.log
Comment 3 cyrillic 2008-06-28 23:03:58 UTC
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.
Comment 4 cyrillic 2008-07-21 17:59:52 UTC
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.
Comment 5 Nelson 2008-07-21 21:11:57 UTC
(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.
Comment 6 Robert W. 2008-08-02 21:59:30 UTC
(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.
Comment 7 Nelson 2008-08-06 22:41:36 UTC
*** Bug 233986 has been marked as a duplicate of this bug. ***
Comment 8 Maik Nijhuis 2008-09-11 06:50:25 UTC
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
Comment 9 João P. Teixeira 2008-09-23 16:37:30 UTC
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) 
Comment 10 Mirek 2008-11-12 16:08:06 UTC
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.
Comment 11 lordcris 2008-11-23 17:17:04 UTC
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.
Comment 12 SpanKY gentoo-dev 2008-11-29 21:05:10 UTC
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