make mrproper error

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
thomasan
帖子: 9
注册时间: 2008-08-14 16:18

make mrproper error

#1

帖子 thomasan » 2008-10-08 9:47

Hello, all:
I want to compile linux 2.6.10 kernel source, but i am stunk when excute "make mrproper" command.
-------------------------------------------
thomas@thomas-ubuntu7:~/Desktop/usagi/kernel/linux26$ make mrproper
grep: /usr/include/bits/stat.h: No such file or directory

thomas@thomas-ubuntu7:~/Desktop/usagi/kernel/linux26$ pwd
/home/thomas/Desktop/usagi/kernel/linux26
thomas@thomas-ubuntu7:~/Desktop/usagi/kernel/linux26$ uname -a
Linux thomas-ubuntu7 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
--------------------------------------------------------
Have anybody got any idea about this?
Any help appreciates.
Thomas An
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15

Re: make mrproper error

#2

帖子 iblicf » 2008-10-08 10:17

grep: /usr/include/bits/stat.h: No such file or directory
seems the compiling envirment ... this file is part of the GNU C Library

代码: 全选

sudo apt-get install build-essential
sudo apt-get install libc6-dev libstdc++
thomasan
帖子: 9
注册时间: 2008-08-14 16:18

Re: make mrproper error

#3

帖子 thomasan » 2008-10-08 17:57

thank you iblicf.
your way is ok!
but when i proceed to execute "make", it occurs such error:
-------------------
thomas@thomas-ubuntu7:/mnt/sda2/usagi/kernel/linux26$ make
CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CHK include/linux/compile.h
CHK usr/initramfs_list
drivers/atm/../../include/asm/byteorder.h:5:28: error: linux/compiler.h: No such file or directory
CC drivers/eisa/eisa-bus.o
cc1: warnings being treated as errors
In file included from include/asm/mpspec.h:5,
from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from include/linux/device.h:20,
from drivers/eisa/eisa-bus.c:10:
include/asm/mpspec_def.h:78: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
drivers/eisa/eisa-bus.c:421: warning: pointer targets in initialization differ in signedness
drivers/eisa/eisa-bus.c:422: warning: pointer targets in initialization differ in signedness
make[2]: *** [drivers/eisa/eisa-bus.o] Error 1
make[1]: *** [drivers/eisa] Error 2
make: *** [drivers] Error 2
-------------------------------------
could you give me some suggestion? thanks very much!
回复