QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 920|回复: 3

谁在fedora core1下成功编译过2.4.18的内核

[复制链接]
发表于 2004-12-20 17:01:25 | 显示全部楼层 |阅读模式
谁在fedora core1下成功编译过2.4.18的内核?
我编译的时候有错误,好像是gcc不认识内核里的内嵌汇编
发表于 2004-12-20 17:07:07 | 显示全部楼层
具体的是什么提示?
回复

使用道具 举报

 楼主| 发表于 2004-12-20 22:31:40 | 显示全部楼层
在2.4.18里面的内嵌汇编会写成下面这个样子
"
movl %0,%1
addl %2,%1
"
它这里的汇编指令所有的汇编指令都是写到一个""里面的,而且汇编指令之间有没有什么分隔符,然后gcc就说"后面没有一个"结束,而且不认识里面的汇编指令
回复

使用道具 举报

 楼主| 发表于 2004-12-20 22:59:12 | 显示全部楼层
错误如下:
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"
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-19 19:33 , Processed in 0.076722 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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