maybol 发表于 2010-3-26 15:38:52

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

机子上安装的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.
请问那位大虾知道这是怎么回事吗?

maybol 发表于 2010-3-28 22:29:44

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

以下是取自终端的详细报错:
# 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: 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: 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: *** Error 1
# 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: Entering directory `/home/hx/armlinux/kernel/linux-2.4.34/scripts/lxdialog'
make: 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: *** Error 1
********************************************************************************************************************************************************************************************
小弟被这个问题困扰很久了,急切盼望那位大虾帮助解决,谢谢!

jiangtao9999 发表于 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.

按这句话来说,似乎你的内核源代码是特殊改写的,根本不能这么进行设置。
页: [1]
查看完整版本: 请教:make ARCH=arm CROSS_COMPILE=arm-linu- menuconfig出错