分页: 1 / 1

make mrproper error

发表于 : 2008-10-08 9:47
thomasan
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

Re: make mrproper error

发表于 : 2008-10-08 10:17
iblicf
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++

Re: make mrproper error

发表于 : 2008-10-08 17:57
thomasan
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!