Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26633 - glibc-2.3.2-r1 fails to cross build
Summary: glibc-2.3.2-r1 fails to cross build
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-14 10:49 UTC by witr
Modified: 2003-08-19 17:24 UTC (History)
1 user (show)

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


Attachments
Patch to enable glibc crossbuild (glibc.patch,612 bytes, patch)
2003-08-14 10:51 UTC, witr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.