【发布时间】:2015-01-22 18:05:53
【问题描述】:
在 vmware 工作站 11 上安装的 Fedora 20 上编译内核 3.15.6 时,反复出现错误
[root@localhost linux-3.15.6]# make
gcc: error: unrecognized argument in option ‘-mabi=64’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: 0: No such file or directory
gcc: error: unrecognized command line option ‘-G’
gcc: error: unrecognized command line option ‘-mno-abicalls’
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=64’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: 0: No such file or directory
gcc: error: unrecognized command line option ‘-G’
gcc: error: unrecognized command line option ‘-mno-abicalls’
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
【问题讨论】:
-
检查
uname -a为您返回的内容。强烈建议安装所有可用的更新。另外,你有没有试过编译内核? -
uname 返回以下 [root@localhost linux-3.15.6]# uname -a Linux localhost.localdomain 3.17.8-200.fc20.x86_64 #1 SMP Thu Jan 8 23:26:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux。我是第一次安装和编译,我已经执行了yum update
标签: linux gcc linux-kernel kernel