日期:2014-05-16  浏览次数:20609 次

编译内核出现的错误
下面是错误的提示:

include/asm/module.h:55:7: warning: "CONFIG_MGEODEGX1" is not defined
fs/binfmt_aout.c: Assembler messages:
fs/binfmt_aout.c:156: Error: suffix or operands invalid for `cmp'
make[1]: *** [fs/binfmt_aout.o] 错误 1
make: *** [fs] 错误 2


  今天本人第一次编译内核,这个问题卡了好久阿,google搜到的英文看的不太懂。个人认为好像是menuconfig 对a.out的不支持,但是进入menuconfig对这那个蓝色界面又不知道怎么修改,望各位指点以下。谢谢!!!!

------解决方案--------------------
探讨
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

配置文件 . config 我还真的不怎么懂呢 ???呵呵....

------解决方案--------------------
应该是defconfig
你看看文件是否和下面的类似(片段)
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.22-git14
# Fri Jul 20 09:53:15 2007
#
CONFIG_X86_32=y
CONFIG_GENERIC_TIME=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
CONFIG_QUICKLIST=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set