QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4181|回复: 2

请教:make ARCH=arm CROSS_COMPILE=arm-linu- menuconfig出错

[复制链接]
发表于 2010-3-26 15:38:52 | 显示全部楼层 |阅读模式
机子上安装的RT 9的linux,然后下了个linux-2.4.34的内核在里面执行make ARCH=arm CROSS_COMPILE=arm-linux- menuconfig配置,但SHELL提示:
Menuconfig has encountered a possible error in one of the kernel’s configuration files and is unable to continue.
scripts/menuconfig line:832 MCmenu0: command not found.
请问那位大虾知道这是怎么回事吗?
 楼主| 发表于 2010-3-28 22:29:44 | 显示全部楼层

急盼那位大虾帮助解决问题

以下是取自终端的详细报错:
[root@huangxing linux-2.4.34]# make ARCH=arm CROSS_COMPILE=arm-linux- menuconfig
  No architecture defined.  You may want to use a pre-packaged config.  make a5k_config, ebsa110_config, footbridge_config, etc.
  No architecture defined.  You may want to use a pre-packaged config.  make a5k_config, ebsa110_config, footbridge_config, etc.
rm -f include/asm
( cd include ; ln -sf asm-arm asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/home/hx/armlinux/kernel/linux-2.4.34/scripts/lxdialog'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -c -o checklist.o checklist.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -c -o menubox.o menubox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -c -o textbox.o textbox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -c -o yesno.o yesno.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -c -o inputbox.o inputbox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -c -o util.o util.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -c -o lxdialog.o lxdialog.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -c -o msgbox.o msgbox.c
gcc -o lxdialog checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o -lncurses
make[1]: Leaving directory `/home/hx/armlinux/kernel/linux-2.4.34/scripts/lxdialog'
/bin/sh scripts/Menuconfig arch/arm/config.in
Using defaults found in arch/arm/defconfig
Preparing scripts: functions, parsing.scripts/Menuconfig: ./MCmenu0: line 66: syntax error near unexpected token `fi'
scripts/Menuconfig: ./MCmenu0: line 66: `fi'
................................................................................done.

                                                                                                                                               
Menuconfig has encountered a possible error in one of the kernel's
configuration files and is unable to continue.  Here is the error
report:
                                                                                                                                               
Q> scripts/Menuconfig: line 832: MCmenu0: command not found
                                                                                                                                               
Please report this to the maintainer <[email protected]>.  You may also
send a problem report to <[email protected]>.
                                                                                                                                               
Please indicate the kernel version you are trying to configure and
which menu you were trying to enter when this error occurred.
                                                                                                                                               
make: *** [menuconfig] Error 1
[root@huangxing linux-2.4.34]# make ARCH=arm CROSS_COMPILE=/home/hx/armlinux/tools menuconfig
  No architecture defined.  You may want to use a pre-packaged config.  make a5k_config, ebsa110_config, footbridge_config, etc.
  No architecture defined.  You may want to use a pre-packaged config.  make a5k_config, ebsa110_config, footbridge_config, etc.
rm -f include/asm
( cd include ; ln -sf asm-arm asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/home/hx/armlinux/kernel/linux-2.4.34/scripts/lxdialog'
make[1]: Leaving directory `/home/hx/armlinux/kernel/linux-2.4.34/scripts/lxdialog'
/bin/sh scripts/Menuconfig arch/arm/config.in
Using defaults found in arch/arm/defconfig
Preparing scripts: functions, parsing.scripts/Menuconfig: ./MCmenu0: line 66: syntax error near unexpected token `fi'
scripts/Menuconfig: ./MCmenu0: line 66: `fi'
................................................................................done.
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
                                                                                                                                               
Menuconfig has encountered a possible error in one of the kernel's
configuration files and is unable to continue.  Here is the error
report:
                                                                                                                                               
Q> scripts/Menuconfig: line 832: MCmenu0: command not found
                                                                                                                                               
Please report this to the maintainer <[email protected]>.  You may also
send a problem report to <[email protected]>.
                                                                                                                                               
Please indicate the kernel version you are trying to configure and
which menu you were trying to enter when this error occurred.
                                                                                                                                               
make: *** [menuconfig] Error 1
********************************************************************************************************************************************************************************************
小弟被这个问题困扰很久了,急切盼望那位大虾帮助解决,谢谢!
回复

使用道具 举报

发表于 2010-3-29 16:58:02 | 显示全部楼层
No architecture defined.  You may want to use a pre-packaged config.  make a5k_config, ebsa110_config, footbridge_config, etc.

按这句话来说,似乎你的内核源代码是特殊改写的,根本不能这么进行设置。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-19 21:45 , Processed in 0.101174 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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