Make error

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

Make error

#1

帖子 thomasan » 2008-10-08 18:33

I want to recompile my kernel
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 anybody give me some suggestion? thanks very much!
chasye
帖子: 333
注册时间: 2007-05-13 15:20

Re: Make error

#2

帖子 chasye » 2008-10-08 23:22

make mrproper了吗??
thomasan
帖子: 9
注册时间: 2008-08-14 16:18

Re: Make error

#3

帖子 thomasan » 2008-10-09 9:44

chasye 写了:make mrproper了吗??
是的,执行过此命令。我重新编译内核的命令顺序:
make mrproper
make menuconfig
make
-----------------------------------
我机子的信息:
thomasan@thomasan-lab:~/Desktop/usagi/kernel/linux26$ uname -a
Linux thomasan-lab 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
回复