1 value of 'asprintf', declared with attribute warn_unused_result 2 mkfs.jffs2.c:601: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result 3 mkfs.jffs2.c: In function 'recursive_populate_directory': 4 mkfs.jffs2.c:1336: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t' 5 mkfs.jffs2.c:1345: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t' 6 mkfs.jffs2.c:1354: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t' 7 mkfs.jffs2.c:1384: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t' 8 mkfs.jffs2.c:1395: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t' 9 mkfs.jffs2.c: At top level: 10 mkfs.jffs2.c:1519: warning: initialization discards qualifiers from pointer target type 11 mkfs.jffs2.c:1521: warning: initialization discards qualifiers from pointer target type 12 mkfs.jffs2.c: In function 'main': 13 mkfs.jffs2.c:1881: warning: passing argument 2 of 'recursive_add_host_directory' discards qualifiers from pointer target type 14 mkfs.jffs2.c:403: note: expected 'char *' but argument is of type 'const char *' 15 gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/compr_rtime.o compr_rtime.c -g -Wp,-MD,/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/.compr_rtime.c.dep 16 compr_rtime.c: In function 'jffs2_rtime_compress': 17 compr_rtime.c:27: warning: unused parameter 'model' 18 compr_rtime.c: In function 'jffs2_rtime_decompress': 19 compr_rtime.c:67: warning: unused parameter 'srclen' 20 compr_rtime.c:67: warning: unused parameter 'model' 21 compr_rtime.c: At top level: 22 compr_rtime.c:104: warning: initialization discards qualifiers from pointer target type 23 gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/compr_zlib.o compr_zlib.c -g -Wp,-MD,/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/.compr_zlib.c.dep 24 compr_zlib.c: In function 'jffs2_zlib_compress': 25 compr_zlib.c:54: warning: unused parameter 'model' 26 compr_zlib.c: In function 'jffs2_zlib_decompress': 27 compr_zlib.c:102: warning: unused parameter 'model' 28 compr_zlib.c: At top level: 29 compr_zlib.c:130: warning: initialization discards qualifiers from pointer target type 30 gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/compr_lzo.o compr_lzo.c -g -Wp,-MD,/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/.compr_lzo.c.dep 31 compr_lzo.c:29:23: error: lzo/lzo1x.h: No such file or directory 32 compr_lzo.c: In function 'jffs2_lzo_cmpr': 33 compr_lzo.c:51: error: 'lzo_uint' undeclared (first use in this function) 34 compr_lzo.c:51: error: (Each undeclared identifier is reported only once 35 compr_lzo.c:51: error: for each function it appears in.) 36 compr_lzo.c:51: error: expected ';' before 'compress_size' 37 compr_lzo.c:54: warning: implicit declaration of function 'lzo1x_999_compress' 38 compr_lzo.c:54: error: 'compress_size' undeclared (first use in this function) 39 compr_lzo.c:56: error: 'LZO_E_OK' undeclared (first use in this function) 40 compr_lzo.c:49: warning: unused parameter 'model' 41 compr_lzo.c: In function 'jffs2_lzo_decompress': 42 compr_lzo.c:72: error: 'lzo_uint' undeclared (first use in this function) 43 compr_lzo.c:72: error: expected ';' before 'dl' 44 compr_lzo.c:74: warning: implicit declaration of function 'lzo1x_decompress_safe' 45 compr_lzo.c:74: error: 'dl' undeclared (first use in this function) 46 compr_lzo.c:76: error: 'LZO_E_OK' undeclared (first use in this function) 47 compr_lzo.c:69: warning: unused parameter 'model' 48 compr_lzo.c: At top level: 49 compr_lzo.c:84: warning: initialization discards qualifiers from pointer target type 50 compr_lzo.c: In function 'jffs2_lzo_init': 51 compr_lzo.c:95: error: 'LZO1X_999_MEM_COMPRESS' undeclared (first use in this function) 52 make: *** [/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/compr_lzo.o] Error 1 53 rm /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/doc_loadbios.o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/flash_erase.o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/ftl_format.o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/nanddump.o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/ftl_check.o 54 error: Bad exit status from /home/buaazy/Desktop/imx6-freescale/linux/L3.0.35_12.09.01_GA_source/yansong-ltib/ltib/tmp/rpm-tmp.69929 (%build) 55 56 57 RPM build errors: 58 Bad exit status from /home/buaazy/Desktop/imx6-freescale/linux/L3.0.35_12.09.01_GA_source/yansong-ltib/ltib/tmp/rpm-tmp.69929 (%build) 59 Build time for mtd-utils: 3 seconds 60 61 Failed building mtd-utils 62 Died at ./ltib line 1392. 63 traceback: 64 main::build_host_rpms:1392 65 main::host_checks:1447 66 main:554
其实最后原因就是因为ubuntu版本不合适,只有在9.04上编译通过了,10.4怎么弄也没有通过