Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242510 - crosscompiling to powerpc doesn't work on amd64
Summary: crosscompiling to powerpc doesn't work on amd64
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 22:20 UTC by Frank Richter
Modified: 2008-10-21 16:01 UTC (History)
1 user (show)

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


Attachments
Log generated by crossdev run (cross-powerpc-pc-linux-gnu-info.log,25.49 KB, text/plain)
2008-10-17 22:21 UTC, Frank Richter
Details
Log generated by crossdev run (cross-powerpc-pc-linux-gnu-glibc-headers.log,32.45 KB, text/plain)
2008-10-17 22:21 UTC, Frank Richter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Richter 2008-10-17 22:20:37 UTC
Trying to set up a cross compilation environment ("crossdev -t powerpc-pc-linux-gnu") on an x86_64 machine does not work. Setting up the glibc headers causes the following glibc configure error:

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

Probably b/c gcc targets x86_64.

Reproducible: Always

Steps to Reproduce:
1. Run 'crossdev -t powerpc-pc-linux-gnu'.
2.
3.



Expected Results:  
Working cross compilation environment.

Presumably, the glibc headers step should be modified to circumvent the failing configure check
Comment 1 Frank Richter 2008-10-17 22:21:11 UTC
Created attachment 168850 [details]
Log generated by crossdev run
Comment 2 Frank Richter 2008-10-17 22:21:33 UTC
Created attachment 168852 [details]
Log generated by crossdev run
Comment 3 cyrillic 2008-10-18 01:05:41 UTC
The current version of crossdev needs to be run like this :
crossdev --without-headers -t powerpc-pc-linux-gnu

If you want to setup a cross-toolchain with gcc-4.3 , then the workaround is more complex.  See this thread : http://forums.gentoo.org/viewtopic-t-699683.html
Comment 4 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-10-21 15:39:11 UTC
(In reply to comment #0)
> Trying to set up a cross compilation environment ("crossdev -t
> powerpc-pc-linux-gnu") on an x86_64 machine does not work. Setting up the glibc
> headers causes the following glibc configure error:
> ...

Frank, please try what comment #3 says. I will resolve the bug as invalid. If you still have issues, reopen it. 

Panagiotis


Comment 5 Frank Richter 2008-10-21 16:01:32 UTC
That worked.

But I would disagree with the resolution: IMO the point is still valid, crossdev should work right OOTB. If some workaround is needed - why not build it into crossdev right away?
Or at the very least *document* that command line parameter.