LinuxSir.cn,穿越时空的Linuxsir!

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

gcc4 内核编译错误:Error: suffix or operands invalid for `mov'

[复制链接]
发表于 2005-4-29 23:05:30 | 显示全部楼层 |阅读模式
用gcc4 emerge -e system,出了几个软件包没有通过以外,现在又出现新问题了。

只好再次请教,麻烦各位大虾了。
内核编译时出现下面的错误:
  CC      arch/i386/kernel/process.o
{standard input}: Assembler messages:
{standard input}:863: Error: suffix or operands invalid for `mov'
{standard input}:864: Error: suffix or operands invalid for `mov'
{standard input}:1072: Error: suffix or operands invalid for `mov'
{standard input}:1073: Error: suffix or operands invalid for `mov'
{standard input}:1152: Error: suffix or operands invalid for `mov'
{standard input}:1153: Error: suffix or operands invalid for `mov'
{standard input}:1223: Error: suffix or operands invalid for `mov'
{standard input}:1224: Error: suffix or operands invalid for `mov'
{standard input}:1337: Error: suffix or operands invalid for `mov'
{standard input}:1349: Error: suffix or operands invalid for `mov'

我的内核版本为:linux-2.6.11-gentoo-r6

另外我启动的时候,出现这样的错误信息,是怎么回事呢?
Failed to set user font.

谢谢了!
发表于 2005-4-30 12:53:13 | 显示全部楼层
fsck /dev/hda1 (/boot)分区
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-30 17:01:32 | 显示全部楼层
还是不行:(
回复 支持 反对

使用道具 举报

发表于 2005-4-30 17:39:25 | 显示全部楼层
你首先 make mrproper && make clean
然后你在 make

如果还是不可以的话请你去
http://filebase.b3cks.com/gentoo/nitro-sources/
下载 2.6.12 的应该没有问题了! :cool:
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-30 20:53:44 | 显示全部楼层
我make clean后还是出错,我就把源文件删掉了再重新emerge gentoo-sources,还是不行。

最后,我把binutils从 binutils-2.16.90.0.1降低成 binutils-2.15.94.0.2.2
终于通过了,谢谢大家的帮忙。

不过,问一下,binutils有什么用,怎么对编译也有影响呢?
回复 支持 反对

使用道具 举报

发表于 2005-5-25 22:50:40 | 显示全部楼层
呵呵,我也是,emerge evas可能也是这个问题,binutils是把汇编语言转化为obj的包,
如果有问题自然影响到内嵌汇编语言
回复 支持 反对

使用道具 举报

发表于 2005-5-25 23:57:40 | 显示全部楼层
2.16.90.0.3试过么
2.16.90.0.1好像是有问题
回复 支持 反对

使用道具 举报

发表于 2005-5-26 05:57:13 | 显示全部楼层
2.16.90.0.3也是通不过kernel编译的,用2.16就ok
回复 支持 反对

使用道具 举报

发表于 2005-5-26 09:18:40 | 显示全部楼层
binutils 2.16.90.0.x needs patch for kernel source.
so use binutils-2.16.0
回复 支持 反对

使用道具 举报

发表于 2005-5-26 12:24:33 | 显示全部楼层
我昨天晚上刚编译过
portage里面的2.16.90.0.3
并且emrege -e world时也没发现有什么问题
回复 支持 反对

使用道具 举报

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

本版积分规则

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