rk3588 编译固件时出现 libxml2 的报错信息,请指教。
编译:./build.sh recovery......
2023-05-16T11:28:30 >>> host-pkgconf 0.9.12 Extracting
2023-05-16T11:28:30 >>> host-pkgconf 0.9.12 Patching
2023-05-16T11:28:30 >>> host-pkgconf 0.9.12 Updating config.sub and config.guess
2023-05-16T11:28:30 >>> host-pkgconf 0.9.12 Patching libtool
2023-05-16T11:28:30 >>> host-pkgconf 0.9.12 Configuring
2023-05-16T11:28:32 >>> host-pkgconf 0.9.12 Building
2023-05-16T11:28:32 >>> host-pkgconf 0.9.12 Installing to host directory
2023-05-16T11:28:33 >>> host-libxml2 2.9.7 Extracting
2023-05-16T11:28:37 >>> host-libxml2 2.9.7 Patching
2023-05-16T11:28:37 >>> host-libxml2 2.9.7 Updating config.sub and config.guess
2023-05-16T11:28:37 >>> host-libxml2 2.9.7 Patching libtool
2023-05-16T11:28:37 >>> host-libxml2 2.9.7 Configuring
2023-05-16T11:28:48 >>> host-libxml2 2.9.7 Building
Done in 9min 01s(error code: 2)
log saved on /data/swc/songjundong/rk3588_firefly/rk3588/br.log
====Build rockchip_rk3588_recovery failed!====
2023-05-16T11:28:48 CC error.lo
2023-05-16T11:28:48 CC encoding.lo
2023-05-16T11:28:48 CC parserInternals.lo
2023-05-16T11:28:48 CC parser.lo
2023-05-16T11:28:48 CC tree.lo
2023-05-16T11:28:48 CC hash.lo
2023-05-16T11:28:48 CC xmlmemory.lo
2023-05-16T11:28:48 CC xmlIO.lo
2023-05-16T11:28:48 CC list.lo
2023-05-16T11:28:48 CC uri.lo
2023-05-16T11:28:48 CC valid.lo
2023-05-16T11:28:48 CC xlink.lo
2023-05-16T11:28:48 CC HTMLparser.lo
2023-05-16T11:28:48 CC HTMLtree.lo
2023-05-16T11:28:48 CC debugXML.lo
2023-05-16T11:28:48 CC xpointer.lo
2023-05-16T11:28:48 CC xpath.lo
2023-05-16T11:28:48 CC nanohttp.lo
2023-05-16T11:28:48 CC xinclude.lo
2023-05-16T11:28:48 CC nanoftp.lo
2023-05-16T11:28:48 CC globals.lo
2023-05-16T11:28:48 CC catalog.lo
2023-05-16T11:28:48 CC threads.lo
2023-05-16T11:28:48 CC c14n.lo
2023-05-16T11:28:48 CC xmlstring.lo
2023-05-16T11:28:48 CC buf.lo
2023-05-16T11:28:48 CC xmlregexp.lo
2023-05-16T11:28:48 CC xmlschemas.lo
2023-05-16T11:28:48 CC xmlschemastypes.lo
2023-05-16T11:28:48 CC xmlunicode.lo
2023-05-16T11:28:48 CC xmlreader.lo
2023-05-16T11:28:48 In file included from ./include/libxml/parser.h:18:0,
2023-05-16T11:28:48 from ./include/libxml/globals.h:18,
2023-05-16T11:28:48 from ./include/libxml/threads.h:35,
2023-05-16T11:28:48 from ./include/libxml/xmlmemory.h:218,
2023-05-16T11:28:48 from ./include/libxml/tree.h:1307,
2023-05-16T11:28:48 from ./include/libxml/c14n.h:27,
2023-05-16T11:28:48 from elfgcchack.h:17,
2023-05-16T11:28:48 from libxml.h:106,
2023-05-16T11:28:48 from xpath.c:23:
2023-05-16T11:28:48 xpath.c: In function 'xmlXPathRegisterFuncNS__internal_alias':
2023-05-16T11:28:48 xpath.c:4897:73: warning: ISO C forbids passing argument 4 of 'xmlHashAddEntry2__internal_alias' between function pointer and 'void *' [-Wpedantic]
2023-05-16T11:28:48 return(xmlHashAddEntry2(ctxt->funcHash, name, ns_uri, XML_CAST_FPTR(f)));
2023-05-16T11:28:48 ^
2023-05-16T11:28:48 ./include/libxml/hash.h:56:29: note: in definition of macro 'XML_CAST_FPTR'
2023-05-16T11:28:48 #define XML_CAST_FPTR(fptr) fptr
2023-05-16T11:28:48 ^~~~
2023-05-16T11:28:48 In file included from libxml.h:106:0,
2023-05-16T11:28:48 from xpath.c:23:
2023-05-16T11:28:48 elfgcchack.h:4269:36: note: expected 'void *' but argument is of type 'xmlXPathFunction {aka void (*)(struct _xmlXPathParserContext *, int)}'
2023-05-16T11:28:48 extern __typeof (xmlHashAddEntry2) xmlHashAddEntry2__internal_alias __attribute((visibility("hidden")));
2023-05-16T11:28:48 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-05-16T11:28:48 xpath.c: In function 'xmlXPathFunctionLookupNS__internal_alias':
2023-05-16T11:28:48 xpath.c:4978:24: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic]
2023-05-16T11:28:48 XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri);
2023-05-16T11:28:48 ^
2023-05-16T11:28:48 CC dict.lo
2023-05-16T11:28:48 CC relaxng.lo
2023-05-16T11:28:48 CC SAX2.lo
2023-05-16T11:28:48 CC xmlwriter.lo
2023-05-16T11:28:48 CC legacy.lo
2023-05-16T11:28:48 CC chvalid.lo
2023-05-16T11:28:48 In file included from xpath.c:483:0:
2023-05-16T11:28:48 At top level:
2023-05-16T11:28:48 trionan.c:218:1: warning: 'trio_is_negative' defined but not used [-Wunused-function]
2023-05-16T11:28:48 trio_is_negative
2023-05-16T11:28:48 ^~~~~~~~~~~~~~~~
2023-05-16T11:28:48 trionan.c:194:1: warning: 'trio_is_special_quantity' defined but not used [-Wunused-function]
2023-05-16T11:28:48 trio_is_special_quantity
2023-05-16T11:28:48 ^~~~~~~~~~~~~~~~~~~~~~~~
2023-05-16T11:28:48 CC pattern.lo
2023-05-16T11:28:48 CC xmlsave.lo
2023-05-16T11:28:48 CC xmlmodule.lo
2023-05-16T11:28:48 CC schematron.lo
2023-05-16T11:28:48 CC xzlib.lo
2023-05-16T11:28:48 CC testdso.lo
2023-05-16T11:28:48 CC xmllint.o
2023-05-16T11:28:48 CC xmlcatalog.o
2023-05-16T11:28:48 sed -e 's?@XML_LIBDIR@?-L/data/swc/songjundong/rk3588_firefly/rk3588/buildroot/output/rockchip_rk3588_recovery/host/lib?g' -e 's?@XML_INCLUDEDIR@?-I/data/swc/songjundong/rk3588_firefly/rk3588/buildroot/output/rockchip_rk3588_recovery/host/include/libxml2?g' -e 's?@VERSION@?2.9.7?g' -e 's?@XML_LIBS@?-lxml2 -lm ?g' < ./xml2Conf.sh.in > xml2Conf.tmp && mv xml2Conf.tmp xml2Conf.sh
2023-05-16T11:28:48 CCLD testdso.la
2023-05-16T11:28:51 CCLD libxml2.la
2023-05-16T11:28:52 CCLD xmllint
2023-05-16T11:28:52 CCLD xmlcatalog
2023-05-16T11:28:52 ./.libs/libxml2.so: undefined reference to `fcntl64'
2023-05-16T11:28:52 ./.libs/libxml2.so: undefined reference to `fcntl64'
2023-05-16T11:28:52 collect2: error: ld returned 1 exit status
2023-05-16T11:28:52 Makefile:1118: recipe for target 'xmllint' failed
2023-05-16T11:28:52 make: *** Error 1
2023-05-16T11:28:52 make: *** Waiting for unfinished jobs....
2023-05-16T11:28:52 collect2: error: ld returned 1 exit status
2023-05-16T11:28:52 Makefile:1114: recipe for target 'xmlcatalog' failed
2023-05-16T11:28:52 make: *** Error 1
2023-05-16T11:28:52 Makefile:1441: recipe for target 'all-recursive' failed
2023-05-16T11:28:52 make: *** Error 1
2023-05-16T11:28:52 Makefile:860: recipe for target 'all' failed
2023-05-16T11:28:52 make: *** Error 2
2023-05-16T11:28:52 package/pkg-generic.mk:228: recipe for target '/data/swc/songjundong/rk3588_firefly/rk3588/buildroot/output/rockchip_rk3588_recovery/build/host-libxml2-2.9.7/.stamp_built' failed
2023-05-16T11:28:52 make: *** Error 2
2023-05-16T11:28:52 /data/swc/songjundong/rk3588_firefly/rk3588/buildroot/output/rockchip_rk3588_recovery/Makefile:16: recipe for target '_all' failed
2023-05-16T11:28:52 make: *** Error 2
Command exited with non-zero status 1
you take 9:03.46 to build recovery
ERROR: Running build_recovery failed!
ERROR: exit code 1 from line 939:
暂未找到解决方法,PC环境:gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
还请有经验的大佬指教一二。
页:
[1]