[klibc] Building klibc on 64-bit Ubuntu

Sam Ravnborg sam at ravnborg.org
Sat Aug 3 13:01:31 PDT 2013


On Fri, Aug 02, 2013 at 05:52:54PM +0530, Anil Singhar wrote:
> Hi,
> 
> I am trying to build Klibc on a 64-bit Ubuntu on a x86 machine.
> 
> Here are the steps I followed:
> 
> 1. Got the source
> 
> wget
> https://launchpad.net/ubuntu/+archive/primary/+files/klibc_2.0.1.orig.tar.gz
> 
> tar xvzf klibc_2.0.1.orig.tar.gz
> 
> wget
> https://launchpad.net/ubuntu/+archive/primary/+files/klibc_2.0.1-3.1ubuntu1.debian.tar.gz
> tar xvzf klibc_2.0.1-3.1ubuntu1.debian.tar.gz<https://launchpad.net/ubuntu/+archive/primary/+files/klibc_2.0.1-3.1ubuntu1.debian.tar.gz>
> 
> Applied all the patches from the above list.
> 
> 2.
> Created the soft-link to linux source inside the main klibc source folder:
> 
> ln -s /usr/src/linux-headers-3.5.0-23/ linux
> 
> 3. make
> 
> At this stage I get file missing errors.. For example:
> 
> "linux/arch/x86/include/asm/unistd.h" : No such file or directory..
> 
> What is going wrong.. ? Could someone please point me to some place where
> there are steps to build Klibc..

IIRC you only need to run "make headers_install" in the kernel tree first.
This will generate all the user space API headers in the directory: usr/include
in the kernel tree - as klibc expects.

Good luck!

	Sam


More information about the klibc mailing list