When I compiled the Linux2.6 kernel the following happened, what should I do?
#make mrproper
#make menuconfig
HOSTCC scripts/basic/split-include
In file included from /usr/include/ linux/errno.h:4,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from scripts/basic/split-include.c:26:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: 没有那个文件或目录
make[1]: *** [scripts/basic/split-include] Error 1
make: *** [scripts_basic] Error 2
I have used "make menuconfig/xconfig/config", but the results were the same. But I had nothing wrong when compiling Linux2.4 kernel. Anybody tell me what happened?
please post your .config (ke
please post your .config (kernel configuration file)
(And please I can you translate: 没有那个文件或目录?)
you can build a symbol link to solve this problem
I think you can create a symbol link for /usr/include/asm-generic:
ln -s /usr/src/linux/include/asm-generic /usr/include/asm-generic
Thanks a lot!
Thank you for your concern.
Sorry, "没有那个文件或目录" is for "No such file or directory". I got the Linux 2.6 source code from kernel.org. So there shouldn't be anything wrong in the .config file.
To Strongzgy, I have made a symbol link as you said, and it works! Thank you. But it didn't work for "make xconfig", saying I have to install Qt. And can you explain why do I have to make a symbol link for /usr/src/linux/include/asm-generic ? Thanks.
whitespace screws up!
Ahh, I guess I see your problem too:
/usr/include/ linux/errno.h:4,
see the "whitespace" or "a Chinese letter?" between include/ linux/... You have to remove it.