QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 957|回复: 12

编译2.6.0-test1内核失败

[复制链接]
发表于 2003-7-20 10:21:47 | 显示全部楼层 |阅读模式
到了make modules那步失败了,一下是提示信息:
  CC [M]  drivers/char/riscom8.o
In file included from drivers/char/riscom8.c:51:
drivers/char/riscom8.h:84: field `tqueue' has incomplete type
drivers/char/riscom8.h:85: field `tqueue_hangup' has incomplete type
drivers/char/riscom8.c:84: warning: type defaults to `int' in declaration of `DECLARE_TASK_QUEUE'
drivers/char/riscom8.c:84: warning: parameter names (without types) in function declaration
drivers/char/riscom8.c:135: confused by earlier errors, bailing out
make[2]: *** [drivers/char/riscom8.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
这个好像是说代码写的不对,但是我怎么能看得懂呢,更不会改。我现在的系统是magic linux 1.1 final,其中kernel,libc,gcc都是原版的,没有换过。
发表于 2003-7-20 12:10:07 | 显示全部楼层

Re: 编译2.6.0-test1内核失败

[quote:a0dad1cf68="myleader"]到了make modules那步失败了,一下是提示信息:
  CC [M]  drivers/char/riscom8.o
In file included from drivers/char/riscom8.c:51:
drivers/char/riscom8.h:84: field `tqueue' has incomplete type
drivers/char/riscom8.h:85: field `tqueue_hangup' has incomplete type
drivers/char/riscom8.c:84: warning: type defaults to `int' in declaration of `DECLARE_TASK_QUEUE'
drivers/char/riscom8.c:84: warning: parameter names (without types) in function declaration
drivers/char/riscom8.c:135: confused by earlier errors, bailing out
make[2]: *** [drivers/char/riscom8.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
这个好像是说代码写的不对,但是我怎么能看得懂呢,更不会改。我现在的系统是magic linux 1.1 final,其中kernel,libc,gcc都是原版的,没有换过。[/quote]

我刚刚打完2.6.0-t1的i686 rpm包,呵呵,还好,没有失败。
回复

使用道具 举报

发表于 2003-7-20 15:59:16 | 显示全部楼层
我也是这个错误!!!!!
RedHat9.0    gcc-3.2
回复

使用道具 举报

发表于 2003-7-21 16:18:59 | 显示全部楼层
有人帮忙解决吗?我也是这个错误,而且打了ar2的补丁的。
回复

使用道具 举报

发表于 2003-7-21 22:55:12 | 显示全部楼层
do not choose thsi module. see old post here.
回复

使用道具 举报

 楼主| 发表于 2003-7-22 13:50:56 | 显示全部楼层
这个模块是干什么用的,怎么选。make xconfig是那么多,到底那个是。
昨天晚上我在别人的一台机器上编译又成功了,我也生成了bzImage、System.map和initrd.img,但是该怎么在grub里添加呢,我看了以前的贴子,大都是说在lilo里,没见到grub的,grub的man page里也没有。
回复

使用道具 举报

发表于 2003-7-22 14:30:29 | 显示全部楼层
Do the following,

#cd /usr/src/linux-2.6....
#make menuconfig

Choose "Character Devices".
Deselect "SDL RISCom/8 card support"

That should disable support for the particular multiport serial controller.
回复

使用道具 举报

发表于 2003-7-22 16:00:27 | 显示全部楼层
先打开/boot/grub.conf,按里面的格式把新内核加进去,然后打/sbin/grub-install /dev/hda
回复

使用道具 举报

发表于 2003-7-28 20:54:16 | 显示全部楼层
是啊
我也出现了这个错误
前面有人提出来的方法好像不行啊
有没有人解决的?
回复

使用道具 举报

发表于 2003-7-28 21:16:32 | 显示全部楼层
[quote:404af97eb6="lvtao_vision"]先打开/boot/grub.conf,按里面的格式把新内核加进去,然后打/sbin/grub-install /dev/hda[/quote]

最后一步好象是没必要的吧?
回复

使用道具 举报

发表于 2003-7-29 10:59:59 | 显示全部楼层
是的
最后一步是没有必要的
我的就算失败了
grub里面还是有了新的内核了
回复

使用道具 举报

发表于 2003-7-29 13:04:48 | 显示全部楼层
I think you also need to upgrade the following packages

initscripts
mkinitrd
modutils
modutils-devel
nfs-utils
oprofile
oprofile-devel

and some other packages...

Here's where you can find RH9 2.6.0 test kernel rpms
http://people.redhat.com/arjanv/2.5/RPMS.kernel/
回复

使用道具 举报

发表于 2003-7-30 22:14:40 | 显示全部楼层
that riscom has descrpition in configure.help. it is unmaintained. so it is broken.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-19 18:42 , Processed in 0.046677 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表