Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104299 - dev-libs/klibc doesnt compile against ARCH=um kernel sources
Summary: dev-libs/klibc doesnt compile against ARCH=um kernel sources
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords:
: 104300 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-30 13:47 UTC by Eric Edgar (RETIRED)
Modified: 2007-05-17 19:16 UTC (History)
1 user (show)

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


Attachments
klibc-1.1-UM-support.patch (klibc-1.1-UM-support.patch,664 bytes, patch)
2005-09-02 06:57 UTC, Martin Schlemmer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Edgar (RETIRED) gentoo-dev 2005-08-30 13:47:10 UTC
klibc doesnt compile against a kernel source tree that was configured for 
ARCH=um.

ARCH=i386 or x86 or whatever it is works, but this is not very convenient for 
genkernel work.  It would be nice if it compiled against ANY arch= variation in 
the kernel tree.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2005-08-30 14:17:30 UTC
*** Bug 104300 has been marked as a duplicate of this bug. ***
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2005-09-02 06:57:18 UTC
Created attachment 67478 [details, diff]
klibc-1.1-UM-support.patch

Hackish workaround for now.
Comment 3 BlaisorBlade 2005-10-13 17:36:08 UTC
The workaround, or at least the idea, is correct.

As a UML core developer, there is no reason for UML kernel headers to support
usage for compilation against userspace. The added complexity is a lot, and
neither I nor glibc maintainance need that. Plus using the i386 headers is
perfectly ok.

So I'd accept the patch (I've not tested it, but any slip can be fixed) and mark
this as resolved fixed.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2005-10-13 23:43:43 UTC
I checked with HPA on the klibc mailing list, and he wanted to do it some other
way.  Anyhow, any other cleaner suggestions would be welcome, as I have not had
the time to look at it again.
Comment 5 Christian Heim (RETIRED) gentoo-dev 2007-05-17 09:09:06 UTC
(In reply to comment #0)
> klibc doesnt compile against a kernel source tree that was configured for 
> ARCH=um.
> 
> ARCH=i386 or x86 or whatever it is works, but this is not very convenient for 
> genkernel work.  It would be nice if it compiled against ANY arch= variation in 
> the kernel tree.

Eric, is this still an issue w/ klibc-1.4.13 stable ?
Comment 6 BlaisorBlade 2007-05-17 19:02:14 UTC
I will iterate the concept. I, as UML developer, reject any such bug as "INVALID". There is no value in supporting such a configuration: the headers for the architecture we emulate provide the full and correct API, and we cannot because our headers must be different, and striving towards compatibility would be useless; additionally include/asm-um is not self-contained and for good reasons.

On a recent enough kernel tree (I'm on git HEAD), you can try this to make sure:
$ make headers_check ARCH=um
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
*** Error: Headers not exportable for this architecture (um)
make[1]: *** [headers_install] Error 1
make: *** [headers_check] Error 2
Comment 7 Christian Heim (RETIRED) gentoo-dev 2007-05-17 19:16:51 UTC
(In reply to comment #6)
> I will iterate the concept. I, as UML developer, reject any such bug as
> "INVALID". There is no value in supporting such a configuration: the headers
> for the architecture we emulate provide the full and correct API, and we cannot
> because our headers must be different, and striving towards compatibility would
> be useless; additionally include/asm-um is not self-contained and for good
> reasons.
> 
> On a recent enough kernel tree (I'm on git HEAD), you can try this to make
> sure:
> $ make headers_check ARCH=um
>   CHK     include/linux/version.h
>   UPD     include/linux/version.h
>   HOSTCC  scripts/basic/fixdep
>   HOSTCC  scripts/basic/docproc
> *** Error: Headers not exportable for this architecture (um)
> make[1]: *** [headers_install] Error 1
> make: *** [headers_check] Error 2

Thanks Paolo