Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!!

share|improve this question

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/.

share|improve this answer
    
All "mkdir" in original Makefile were "mkdir -p". – Juan 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .