天嵌 ARM开发社区

 找回密码
 注册
查看: 4082|回复: 1

求助,编译u-boot出错

[复制链接]
风之烈焰 发表于 2015-5-15 16:41:51 | 显示全部楼层 |阅读模式
root@ubuntu:/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu# ./build_sh
Configuring for mx6q_sabresd_android board...
Generating include/autoconf.mk
/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Generating include/autoconf.mk.dep
/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools'
make[1]: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/standalone'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/standalone'
make[1]: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/api'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/api'
make -C tools all
make -C examples/standalone all
make -C examples/api all
make[1]: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools'
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o mkimage.o /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools/mkimage.c
make -C cpu/arm_cortexa8 start.o
make[1]: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/standalone'
arm-linux-gcc  -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x27800000 -I/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/include -pipe  -DCONFIG_ARM -D__ARM__         -march=armv5   -Wall -Wstrict-prototypes    -o hello_world.o hello_world.c -c
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o image.o /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/common/image.c
make -C /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/board/freescale/mx6q_sabresd/ u-boot.lds
arm-linux-gcc  -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x27800000 -I/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/include -pipe  -DCONFIG_ARM -D__ARM__         -march=armv5   -Wall -Wstrict-prototypes    -o stubs.o stubs.c -c
/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/standalone'
make: *** [examples/standalone] Error 2
make: *** Waiting for unfinished jobs....
make[1]: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/api'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/api'
make[1]: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/cpu/arm_cortexa8'
arm-linux-gcc   -D__ASSEMBLY__ -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x27800000 -I/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/include -pipe  -DCONFIG_ARM -D__ARM__         -march=armv5     -o start.o start.S -c
/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/cpu/arm_cortexa8'
make: *** [cpu/arm_cortexa8/start.o] Error 2
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O  -o mkimage mkimage.o crc32.o image.o md5.o sha1.o fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o os_support.o
strip mkimage
make[1]: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools'
make: *** wait: No child processes.  Stop.
root@ubuntu:/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu#
TQ-ZQL 发表于 2015-5-19 08:59:49 | 显示全部楼层
应该是环境没有建好,试下重新一句句地运行一下ubuntu_env_install.sh
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-6 06:17 , Processed in 1.031250 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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