天嵌 ARM开发社区

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

编译uboot不通过

[复制链接]
sunrise 发表于 2014-10-30 21:12:16 | 显示全部楼层 |阅读模式
请问编译错误信息如下:要怎么解决呢?刚执行完./ubuntu_env_install.sh 后gcc -v显示是gcc 4.4.7
 楼主| sunrise 发表于 2014-10-30 21:14:50 | 显示全部楼层
root@EmbedSky:/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4# make TQ210_config
Configuring for TQ210 board...
root@EmbedSky:/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4# make
Generating include/autoconf.mk.dep
for dir in tools examples api_examples ; do make -C $dir _depend ; done
make[1]: 正在进入目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/tools'
ln -s ../lib_generic/crc32.c crc32.c
make[1]: 没有什么可以做的为 `_depend'。
make[1]:正在离开目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/tools'
make[1]: 正在进入目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/examples'
make[1]: 没有什么可以做的为 `_depend'。
make[1]:正在离开目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/examples'
make[1]: 正在进入目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/api_examples'
make[1]: 没有什么可以做的为 `_depend'。
make[1]:正在离开目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/api_examples'
Generating include/autoconf.mk
make -C tools all
make[1]: 正在进入目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/tools'
ln -s ../lib_generic/crc32.c crc32.c
gcc -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O  -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
gcc -g -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o crc32.o crc32.c
gcc -g -Wall -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o image.o image.c
gcc -g -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o md5.o md5.c
gcc -g -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o sha1.o sha1.c
gcc -g -Wall -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o fdt.o fdt.c
gcc -g -Wall -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o fdt_ro.o fdt_ro.c
gcc -g -Wall -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o fdt_rw.o fdt_rw.c
gcc -g -Wall -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o fdt_strerror.o fdt_strerror.c
gcc -g -Wall -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o fdt_wip.o fdt_wip.c
gcc -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -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
strip mkimage
gcc -g -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c
gcc -g  -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -c -o environment.o environment.c
gcc -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o sha1.o
gcc -g -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o ubsha1.o ubsha1.c
gcc -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -o ubsha1 ubsha1.o sha1.o
gcc -g -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c
gcc -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O  -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
bmp_logo.c: 在函数‘main’中:
bmp_logo.c:71: 警告: 忽略声明有 warn_unused_result 属性的‘fread’的返回值
bmp_logo.c:73: 警告: 忽略声明有 warn_unused_result 属性的‘fread’的返回值
bmp_logo.c:75: 警告: 忽略声明有 warn_unused_result 属性的‘fread’的返回值
bmp_logo.c:77: 警告: 忽略声明有 warn_unused_result 属性的‘fread’的返回值
gcc -Wall -pedantic -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include2 -idirafter /opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O  -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include/bmp_logo.h
make[1]:正在离开目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/tools'
make -C examples all
make[1]: 正在进入目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/examples'
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0xc3e00000 -I/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/EmbedSky/4.4.6/lib/gcc/arm-embedsky-linux-gnueabi/4.4.6/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv5te -mabi=apcs-gnu -mno-thumb-interwork -Wall -Wstrict-prototypes -fno-stack-protector -c -o hello_world.o hello_world.c
/opt/EmbedSky/4.4.6/lib/gcc/arm-embedsky-linux-gnueabi/4.4.6/../../../../arm-embedsky-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] 错误 2
make[1]:正在离开目录 `/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4/examples'
make: *** [examples] 错误 2
root@EmbedSky:/opt/EmbedSky/TQ210/uboot_TQ210_1.3.4#
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-4-30 05:00 , Processed in 1.046882 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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