主题 : mini2440烧写u_boot ,make出现问题,求救 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 126792
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
贡献值: 0 点
综合积分: 20 分
注册时间: 2016-07-21
最后登录: 2016-09-08
楼主  发表于: 2016-07-28 10:36

 mini2440烧写u_boot ,make出现问题,求救

zyg@ubuntu:~/uboot_1$ make mini2440_config
Configuring for mini2440 board...
zyg@ubuntu:~/uboot_1$ make
Generating include/autoconf.mk
In file included from /home/zyg/uboot_1/include/linux/bitops.h:110,
                 from include/common.h:38:
/home/zyg/uboot_1/include/asm/bitops.h:20:29: error: asm/proc/system.h: No such file or directory
In file included from include/common.h:41:
/home/zyg/uboot_1/include/asm/ptrace.h:14:29: error: asm/proc/ptrace.h: No such file or directory
Generating include/autoconf.mk.dep
In file included from /home/zyg/uboot_1/include/linux/bitops.h:110,
                 from include/common.h:38:
/home/zyg/uboot_1/include/asm/bitops.h:20:29: error: asm/proc/system.h: No such file or directory
In file included from include/common.h:41:
/home/zyg/uboot_1/include/asm/ptrace.h:14:29: error: asm/proc/ptrace.h: No such file or directory
for dir in tools examples/standalone examples/api cpu/arm920t /home/zyg/uboot_1/cpu/arm920t/ ; do \
        make -C $dir _depend ; done
make[1]: Entering directory '/home/zyg/uboot_1/tools'
make[1]: gcc: Command not found
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/zyg/uboot_1/tools'
make[1]: Entering directory '/home/zyg/uboot_1/examples/standalone'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/zyg/uboot_1/examples/standalone'
make[1]: Entering directory '/home/zyg/uboot_1/examples/api'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/zyg/uboot_1/examples/api'
make[1]: Entering directory '/home/zyg/uboot_1/cpu/arm920t'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/zyg/uboot_1/cpu/arm920t'
make[1]: Entering directory '/home/zyg/uboot_1/cpu/arm920t'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/zyg/uboot_1/cpu/arm920t'
make -C tools all
make[1]: Entering directory '/home/zyg/uboot_1/tools'
make[1]: gcc: Command not found
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/zyg/uboot_1/include -idirafter /home/zyg/uboot_1/include2 -idirafter /home/zyg/uboot_1/include -I /home/zyg/uboot_1/libfdt -I /home/zyg/uboot_1/tools -DTEXT_BASE= -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic   -o bmp_logo.o bmp_logo.c -c
make[1]: gcc: Command not found
/home/zyg/uboot_1/rules.mk:40: recipe for target 'bmp_logo.o' failed
make[1]: *** [bmp_logo.o] Error 127
make[1]: Leaving directory '/home/zyg/uboot_1/tools'
Makefile:371: recipe for target 'tools' failed



显示arm-linux-gcc command not found
但是查询出现
arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2008q3-72' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)


环境
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/arm/4.3.2/bin:/usr/local/arm/4.3.2/bin