I've compiled the last stable ubuntu kernel (2.6.38-...) following this guide: How to compile a Ubuntu 10.10 kernel but in this guide doesn't explain how create linux-libc-dev package for that kernel? How do I do?

I've tried with fakeroot debian/rules binary-arch-headers but it returns an, IMHO, absurd error:

mkdir /home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/
mkdir: cannot create directory `/home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/': File exists
make: *** [install-arch-headers] Error 1

The error is correct but this folder is created in the same process!!

link|improve this question
feedback

1 Answer

The error is caused because mkdir returns a failure if a directory exists (there is a good reason for this - you'd have to ask K&R&etc. to get it, though).

Just remove the directory it tries to create: /home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/.

link|improve this answer
All "mkdir" in original Makefile were "mkdir -p". – Simón May 9 '11 at 9:34
@Simon Oh. In that case just delete the directory it trys to create. – new123456 May 9 '11 at 11:20
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.