VAN 发表于 2015-12-3 18:58:39

E9编译问题

被这个编译问题困扰了许久,希望高人指点一二,报错代码在楼下。

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: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make: 没有什么可以做的为 `_depend'。
make:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make: 正在进入目录 `/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: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。
make:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/api'
make: 没有什么可以做的为 `_depend'。
make:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/api'
make -C tools all
make: 正在进入目录 `/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:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make -C examples/standalone all
make: 正在进入目录 `/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
make:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make: *** 错误 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: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make: 没有什么可以做的为 `_depend'。
make:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/tools'
make: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make: 没有什么可以做的为 `_depend'。
make:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/api'
make: 没有什么可以做的为 `_depend'。
make:正在离开目录 `/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: 正在进入目录 `/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: 正在进入目录 `/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: 正在进入目录 `/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
make:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/examples/standalone'
make: *** 错误 2
make: *** 正在等待未完成的任务....
make: 正在进入目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/cpu/arm_cortexa8'
make: 没有什么可以做的为 `all'。
make:正在离开目录 `/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
make:正在离开目录 `/opt/Embedsky/TQIMX6/E9/Ubuntu/uboot_E9_1.3.4_for_Ubuntu/cpu/arm_cortexa8'
make: *** 错误 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:正在离开目录 `/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也显示正常``````
页: [1]
查看完整版本: E9编译问题