LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1217|回复: 4

gcc怎么不能支持linux内核2.4.18里的内嵌汇编啊?

[复制链接]
发表于 2004-12-20 12:17:36 | 显示全部楼层 |阅读模式
昨天编译了一下linux2.4.18的内核,结果编译的时候有错误。
错误好像是gcc不认识2.4.18里的内嵌汇编。
我是在fedora core1上编译的,gcc的版本是3.3.2。
是不是gcc有什么开关来支持2.4.18里的内嵌汇编的?
发表于 2004-12-20 22:43:03 | 显示全部楼层
把你的错误信息贴出来!
 楼主| 发表于 2004-12-20 22:52:08 | 显示全部楼层
错误如下:
In file included from ksyms.c:50:
/root/storage/linux-2.4.18/include/asm/checksum.h:105:17: missing terminating " character
In file included from ksyms.c:50:
/root/storage/linux-2.4.18/include/asm/checksum.h: In function `csum_fold':
/root/storage/linux-2.4.18/include/asm/checksum.h:106: error: syntax error before "addl"
/root/storage/linux-2.4.18/include/asm/checksum.h:108:17: missing terminating " character
/root/storage/linux-2.4.18/include/asm/checksum.h:121:13: missing terminating " character
/root/storage/linux-2.4.18/include/asm/checksum.h: In function `csum_tcpudp_nofold':
/root/storage/linux-2.4.18/include/asm/checksum.h:122: error: syntax error before "addl"
/root/storage/linux-2.4.18/include/asm/checksum.h:126:9: missing terminating " character
/root/storage/linux-2.4.18/include/asm/checksum.h:128: error: `__x' undeclared (first use in this function)
/root/storage/linux-2.4.18/include/asm/checksum.h:128: error: (Each undeclared identifier is reported only once
/root/storage/linux-2.4.18/include/asm/checksum.h:128: error: for each function it appears in.)
/root/storage/linux-2.4.18/include/asm/checksum.h: At top level:
/root/storage/linux-2.4.18/include/asm/checksum.h:128: error: syntax error before ')' token
/root/storage/linux-2.4.18/include/asm/checksum.h:161:17: missing terminating " character
/root/storage/linux-2.4.18/include/asm/checksum.h: In function `csum_ipv6_magic':
/root/storage/linux-2.4.18/include/asm/checksum.h:162: error: syntax error before "addl"
/root/storage/linux-2.4.18/include/asm/checksum.h:173:17: missing terminating " character
/root/storage/linux-2.4.18/include/asm/checksum.h:176: error: `__x' undeclared (first use in this function)
/root/storage/linux-2.4.18/include/asm/checksum.h:176: warning: no return statement in function returning non-void
/root/storage/linux-2.4.18/include/asm/checksum.h: At top level:
/root/storage/linux-2.4.18/include/asm/checksum.h:176: error: syntax error before ')' token
/root/storage/linux-2.4.18/include/asm/checksum.h:176: error: syntax error before "__u32"
发表于 2004-12-22 20:06:23 | 显示全部楼层
呵呵,这种错误和内联汇编有什么关系!
估计是什么内核选项没有选对造成的。
 楼主| 发表于 2004-12-24 18:02:07 | 显示全部楼层
我看gcc不认识上面的符号,所以还以为是gcc版本的问题呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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