Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181560 - klibc-1.5 fails cross-compilation
Summary: klibc-1.5 fails cross-compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-10 18:13 UTC by Michal Januszewski (RETIRED)
Modified: 2007-06-13 18:11 UTC (History)
0 users

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


Attachments
patch to make the ebuild use KLIBCARCH and CROSS_COMPILE (klibc-1.5-cross-fix.patch,885 bytes, patch)
2007-06-10 18:13 UTC, Michal Januszewski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Januszewski (RETIRED) gentoo-dev 2007-06-10 18:13:06 UTC
As shown below, cross-compilation of klibc fails when the first .c file is to be compiled. This is caused by using ARCH and CROSS instead of KLIBCARCH and CROSS_COMPILE (as documented in klibc's README) in the ebuild.

 * Found kernel source directory:
 *     /doc/stor/lab/proxima_amd64/usr/src/linux
 * Found kernel object directory:
 *     /doc/stor/lab/proxima_amd64/usr/src/proxima
 * Found sources for kernel version:
 *     2.6.22-rc4-ge15e2ce1
>>> Unpacking source...
>>> Unpacking klibc-1.5.tar.bz2 to /var/tmp/portage/dev-libs/klibc-1.5/work
 * CTARGET = x86_64-pc-linux-gnu
 * Applying klibc-1.4.11-interp-flags.patch ...                                                                                [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/klibc-1.5/work/klibc-1.5 ...
 * ARCH = "x86_64"
 * CROSS = "x86_64-pc-linux-gnu-"
  GEN     klcc/klibc.config
  GEN     klcc/klcc
  HOSTCC  scripts/basic/fixdep
  KLIBCCC usr/klibc/__static_init.o
usr/klibc/__static_init.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [usr/klibc/__static_init.o] Error 1
make[1]: *** [all] Error 2
make: *** [klibc] Error 2
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2007-06-10 18:13:59 UTC
Created attachment 121679 [details, diff]
patch to make the ebuild use KLIBCARCH and CROSS_COMPILE
Comment 2 Christian Heim (RETIRED) gentoo-dev 2007-06-13 18:11:01 UTC
Fixed in CVS, thanks Michal.