[klibc] version compatibility between linux and klibc

Sam Ravnborg sam at ravnborg.org
Tue Jul 6 11:32:04 PDT 2010

On Tue, Jul 06, 2010 at 05:38:35PM +0200, maximilian attems wrote:
> On Sun, Jul 04, 2010 at 08:30:03PM -0400, Phil Howard wrote:
> > Are there any version compatibilities between linux and klibc?  I tried to
> > compile the latest klibc (1.5.18) with the latest linux ( and
> > there is miserable compile failures.  It looks like klibc wants some headers
> > to be in include/asm (linked in my case to include/asm-x86) but they are
> > instead in include/asm-generic (it seems all headers but one are in there).
> hmm I haven't tried exactly with, but it does compile with
> earlier 2.6.32.
> I'd more guess that you are doing something wrong here, see the output
> of "make help" on how to easily compile against linux-2.6.

That says:
Build options:
KLIBCKERNELSRC - Path to a configured linux-2.6 tree
KLIBCKERNELOBJ - Path to kernel output dir (defaults to KLIBCKERNELSRC)
make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build

Sample invocation:
make  KLIBCKERNELSRC=`pwd`/../linux-2.6

Which is misleading.
"configured linux-2.6 tree" is not enough. USer needs to know that
headers had to be exported.


    make  KLIBCKERNELSRC=`pwd`/../linux-2.6

Does not do it as we should point to the exported headers.
At least this was how I could built klibc without any symlinks or copying files.


More information about the klibc mailing list