天嵌 ARM开发社区

 找回密码
 注册
查看: 4854|回复: 6

E9编译问题

[复制链接]
VAN 发表于 2015-12-3 18:58:39 | 显示全部楼层 |阅读模式
被这个编译问题困扰了许久,希望高人指点一二,报错代码在楼下。

 楼主| VAN 发表于 2015-12-3 18:59:32 | 显示全部楼层
root@vincent-K55VD:/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu# make mx6q_sabresd_android_config
Configuring for mx6q_sabresd_android board...
root@vincent-K55VD:/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu# make
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]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make[1]: 没有什么可以做的为 `_depend'。
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
/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/../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
make[1]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/api'
make[1]: 没有什么可以做的为 `_depend'。
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/api'
make -C tools all
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o mkimage.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools/mkimage.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o crc32.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/lib_generic/crc32.c
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o image.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/common/image.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o md5.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/lib_generic/md5.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o sha1.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/lib_generic/sha1.c
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt/fdt.c
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_ro.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt/fdt_ro.c
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_rw.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt/fdt_rw.c

 楼主| VAN 发表于 2015-12-3 19:00:02 | 显示全部楼层
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_strerror.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt/fdt_strerror.c
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_wip.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt/fdt_wip.c
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o os_support.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools/os_support.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_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]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make -C examples/standalone all
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_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/E9/Ubuntu/uboot_E9_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
/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] 错误 1
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make: *** [examples/standalone] 错误 2
 楼主| VAN 发表于 2015-12-3 19:02:57 | 显示全部楼层
网上看到很多例子,也尝试了很多,可是都不行哦。比如说直接跑脚本文件,出错如下:
root@vincent-K55VD:/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_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]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make[1]: 没有什么可以做的为 `_depend'。
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make[1]: 没有什么可以做的为 `_depend'。
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/api'
make[1]: 没有什么可以做的为 `_depend'。
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/api'
make -C tools all
make -C examples/standalone all
make -C examples/api all
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o mkimage.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools/mkimage.c
make -C cpu/arm_cortexa8 start.o
gcc -g -Wall -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o image.o /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/common/image.c
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc  -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x27800000 -I/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_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
make -C /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/board/freescale/mx6q_sabresd/ u-boot.lds
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/api'
/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc  -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x27800000 -I/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_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] 错误 1
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make: *** [examples/standalone] 错误 2
make: *** 正在等待未完成的任务....
make[1]: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/cpu/arm_cortexa8'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/api'
/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/../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/arm-none-linux-gnueabi-gcc   -D__ASSEMBLY__ -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x27800000 -I/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_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] 错误 1
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/cpu/arm_cortexa8'
make: *** [cpu/arm_cortexa8/start.o] 错误 2
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include2 -idirafter /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/include -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/libfdt -I /opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_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]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make: *** wait: 没有子进程。 停止。
 楼主| VAN 发表于 2015-12-3 19:04:12 | 显示全部楼层
其中build.sh内容如下:
export ARCH=arm
export CROSS_COMPILE=/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/arm-none-linux-gnueabi-
make mx6q_sabresd_android_config
make -j$CPU_JOB_NUM
 楼主| VAN 发表于 2015-12-3 19:05:46 | 显示全部楼层
环境变量如下:
root@vincent-K55VD:/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin:/usr/lib/jvm/jdk1.6.0_30/bin:/usr/lib/jvm/jdk1.6.0_30/jre/bin
 楼主| VAN 发表于 2015-12-3 19:11:10 | 显示全部楼层
在重复安装中,我发现要是安装光盘里的minicom,也是不能make的``````然后我就逐句的跑ubuntu_env_install.sh这里面的东西来尝试重新安装编译器,有些步骤说找不到安装包之类的,不知道这会不会有影响,但是用gcc -v 检查显示正常,检查arm-none-linux-gnueabi-gcc -v也显示正常``````
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-6 09:29 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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