风之烈焰 发表于 2015-5-15 16:41:51

求助,编译u-boot出错

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: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools'
make: Nothing to be done for `_depend'.
make: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/tools'
make: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/standalone'
make: Nothing to be done for `_depend'.
make: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/standalone'
make: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/api'
make: Nothing to be done for `_depend'.
make: 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: 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: 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: *** Error 1
make: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/standalone'
make: *** Error 2
make: *** Waiting for unfinished jobs....
make: Entering directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/api'
make: Nothing to be done for `all'.
make: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/examples/api'
make: 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: *** Error 1
make: Leaving directory `/opt/Embedsky/TQIMX6/TQ_COREC/uboot_IMX6_CoreC_1.3.4_for_Ubuntu/cpu/arm_cortexa8'
make: *** 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: 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
页: [1]
查看完整版本: 求助,编译u-boot出错