|
【Android】
ROC-RK3328-PC编译出错,求解,急急急!!!
发表于 2020-11-4 14:55:45
浏览:5746
|
回复:1
打印
只看该作者
[复制链接]
楼主
在Ubuntu18.08上编译,uboot编译不过#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
GEN include/autoconf.mk.dep
GEN include/autoconf.mk
CHK include/config/uboot.release
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
CHK include/generated/version_autogenerated.h
HOSTCC tools/checksum.o
HOSTCC tools/common/bootm.o
HOSTCC tools/common/hash.o
HOSTCC tools/common/image-fit.o
HOSTCC tools/common/image.o
HOSTCC tools/gpimage-common.o
HOSTCC tools/dumpimage.o
HOSTCC tools/gpimage.o
tools/checksum.c: In function ‘main’:
tools/checksum.c:56:24: error: ‘RK_BLK_SIZE’ undeclared (first use in this function); did you mean ‘S_BLKSIZE’?
blocks = sb.st_size / RK_BLK_SIZE;
^~~~~~~~~~~
S_BLKSIZE
tools/checksum.c:56:24: note: each undeclared identifier is reported only once for each function it appears in
tools/checksum.c:91:51: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint32_t {aka unsigned int}’ [-Wformat=]
printf("offset:0x%08x, blocks:0x%08x, crc:0x%08lx\n",
~~~~^
%08x
offset, read_blocks, crc_array[crc_counts]);
~~~~~~~~~~~~~~~~~~~~~
tools/checksum.c:108:31: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t {aka unsigned int}’ [-Wformat=]
printf("whole checksum:0x%08lx\n", checksum);
~~~~^
%08x
scripts/Makefile.host:134: recipe for target 'tools/checksum.o' failed
make[1]: *** [tools/checksum.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1184: recipe for target 'tools' failed
make: *** [tools] Error 2
|
|