Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 26633

Summary: glibc-2.3.2-r1 fails to cross build
Product: Gentoo Linux Reporter: witr
Component: New packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED WONTFIX    
Severity: normal CC: witr
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to enable glibc crossbuild

Description witr 2003-08-14 10:49:01 UTC
Attempting to merge glibc-2.3.2 (using portage-2.0.49_pre17) with
CHOST=powerpc-unknown-linux-gnu and CBUILD=i686-pc-linux-gnu results in a
./configure error:

  * Configuring GLIBC...
  checking build system type... powerpc-unknown-linux-gnu
  checking host system type... powerpc-unknown-linux-gnu
  ...
  checking size of long double... configure: error: cannot compute sizeof (long
double), 77

Modifying the ebuild with code stolen from ebuild.sh, as attached, fixes this
problem.
Comment 1 witr 2003-08-14 10:51:03 UTC
Created attachment 16105 [details, diff]
Patch to enable glibc crossbuild

This patch enables cross-building of the glibc ebuild.
Comment 2 witr 2003-08-14 13:25:15 UTC
Actually, after thinking about it more, I'd suggest that the offending code in the ebuild be deleted and the econf() method be used instead, passing the needed additional options in EXTRA_ECONF.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-19 09:03:15 UTC
There is cross projects/bugs going, please look there first.
Comment 4 witr 2003-08-19 17:24:14 UTC
What about the argument that ebuilds should use econf intead of a "roll your own" conf?  That would fix my problem without being a cross compilation issue, or affecting other users.