编译固件时候报错,下面是错误信息,有大神给讲解一下吗

make[1]: Entering directory '/home/hjg/openwrt/USR-LG220'
make[2]: Entering directory '/home/hjg/openwrt/USR-LG220'
make[3]: Entering directory '/home/hjg/openwrt/USR-LG220/target/linux'
make[4]: Entering directory '/home/hjg/openwrt/USR-LG220/target/linux/ramips'
/home/hjg/openwrt/USR-LG220/scripts/kconfig.pl + /home/hjg/openwrt/USR-LG220/target/linux/generic/config-3.10 /home/hjg/openwrt/USR-LG220/target/linux/ramips/mt7628/config-3.10 > /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.target
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /home/hjg/openwrt/USR-LG220/.config >> /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.target
echo "# CONFIG_KALLSYMS_UNCOMPRESSED is not set" >> /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.target
echo "# CONFIG_KPROBES is not set" >> /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.target
/home/hjg/openwrt/USR-LG220/scripts/metadata.pl kconfig /home/hjg/openwrt/USR-LG220/tmp/.packageinfo /home/hjg/openwrt/USR-LG220/.config > /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.override
/home/hjg/openwrt/USR-LG220/scripts/kconfig.pl 'm+' '+' /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.target /dev/null /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.override > /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config
mv /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.old
grep -v INITRAMFS /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config.old > /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config
rm -rf /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/modules
export MAKEFLAGS= ; [ -d /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/user_headers ] || make -C /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871 HOSTCFLAGS="-O2 -I/home/hjg/openwrt/USR-LG220/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-uclibc-" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V='' CC="mipsel-openwrt-linux-uclibc-gcc" INSTALL_HDR_PATH=/home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/user_headers headers_install
. /home/hjg/openwrt/USR-LG220/include/shell.sh; grep '=[ym]' /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.config | LC_ALL=C sort | md5s > /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.vermagic
touch /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.configured
rm -f /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/vmlinux /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/System.map
make -C /home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871 HOSTCFLAGS="-O2 -I/home/hjg/openwrt/USR-LG220/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-uclibc-" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V='' CC="mipsel-openwrt-linux-uclibc-gcc" modules
make[5]: Entering directory '/home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871'
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
make[5]: mipsel-openwrt-linux-uclibc-gcc: Command not found
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2503:0:
scripts/kconfig/menu.c: In function 'get_symbol_str':
scripts/kconfig/menu.c:567:18: warning: 'jump' may be used uninitialized in this function [-Wmaybe-uninitialized]
jump->offset = r->len - 1;
^
scripts/kconfig/menu.c:528:19: note: 'jump' was declared here
struct jump_key *jump;
^
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
ralink/Kconfig:206:warning: 'RT_FIRST_CARD': number is invalid
ralink/Kconfig:207:warning: 'RT_FIRST_CARD': number is invalid
ralink/Kconfig:208:warning: 'RT_FIRST_CARD': number is invalid
ralink/Kconfig:221:warning: 'RT_SECOND_CARD': number is invalid
ralink/Kconfig:222:warning: 'RT_SECOND_CARD': number is invalid
ralink/Kconfig:223:warning: 'RT_SECOND_CARD': number is invalid
ralink/Kconfig:224:warning: 'RT_SECOND_CARD': number is invalid
.config:824:warning: override: DEFAULT_NOOP changes choice state
#
# configuration written to .config
#
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
make[5]: mipsel-openwrt-linux-uclibc-gcc: Command not found
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
/bin/sh: 1: mipsel-openwrt-linux-uclibc-gcc: not found
/home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[6]: *** [kernel/bounds.s] Error 127
Makefile:835: recipe for target 'prepare0' failed
make[5]: *** [prepare0] Error 2
make[5]: Leaving directory '/home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871'
Makefile:26: recipe for target '/home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.modules' failed
make[4]: *** [/home/hjg/openwrt/USR-LG220/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.10.14-p112871/.modules] Error 2
make[4]: Leaving directory '/home/hjg/openwrt/USR-LG220/target/linux/ramips'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/hjg/openwrt/USR-LG220/target/linux'
target/Makefile:21: recipe for target 'target/linux/compile' failed
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory '/home/hjg/openwrt/USR-LG220'
target/Makefile:16: recipe for target '/home/hjg/openwrt/USR-LG220/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_compile' failed
make[1]: *** [/home/hjg/openwrt/USR-LG220/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/hjg/openwrt/USR-LG220'
/home/hjg/openwrt/USR-LG220/include/toplevel.mk:171: recipe for target 'world' failed
make: *** [world] Error 2
已邀请:

xzmu - 10w

赞同来自:

从日志看是你编译工具链的时候停掉了。make dirclean再重新编译即可。

要回复问题请先登录注册