I try to compile linux kernel multiple times. But I failed to compile second time. How to avoid this problem?
- First time, Following command successfully
LANG=C fakeroot debian/rules clean
LANG=C fakeroot debian/rules binary
- Second time, Following command failed with following error. but
buildworks fine.
LANG=C fakeroot debian/rules clean
LANG=C fakeroot debian/rules binary
Error log is follows (just last 3line)
mkdir /home/ubuntu/tmp/linux-aws-5.4.0/debian/linux-libc-dev/usr/include/x86_64-linux-gnu
mkdir: cannot create directory '/home/ubuntu/tmp/linux-aws-5.4.0/debian/linux-libc-dev/usr/include/x86_64-linux-gnu': File exists
make: *** [debian/rules.d/2-binary-arch.mk:529: install-arch-headers] Error 1
As a workaround, I remove debian/linux-libc-dev directory.