Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170576 - dev-libs/klibc chooses ARCH based on running kernel rather than userland or ARCH parameter
Summary: dev-libs/klibc chooses ARCH based on running kernel rather than userland or A...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-12 15:00 UTC by Jarl Stefansson
Modified: 2007-03-13 16:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jarl Stefansson 2007-03-12 15:00:46 UTC
Emerging klibc in an i386 userland on an x86_64 kernel returns:
        "sorry, unimplemented: 64-bit mode not compiled in"

The kernel sources are built using ARCH="i386" and the useland utilities are inside a chroot, only the host kernel is x86_64. 

Klibc Makefile uses uname -m to determine the target architecture and ignores the ARCH parameter.

I think the best solution would be to add support for the ARCH parameter so that klibc behaves like the kernel packages.
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-03-13 16:26:47 UTC
(In reply to comment #0)
> Emerging klibc in an i386 userland on an x86_64 kernel returns:
>         "sorry, unimplemented: 64-bit mode not compiled in"
> 
> The kernel sources are built using ARCH="i386" and the useland utilities are
> inside a chroot, only the host kernel is x86_64. 
> 
> Klibc Makefile uses uname -m to determine the target architecture and ignores
> the ARCH parameter.
> 
> I think the best solution would be to add support for the ARCH parameter so
> that klibc behaves like the kernel packages.

Guess you should take a look at CTARGET and/or CBUILD, as thats being utilized in the ebuild. If you have them set correctly, please report back.