* Package: net-libs/libdom-0.4.2:0/0.4.2  * Repository: gentoo  * Maintainer: mjo@gentoo.org  * USE: abi_x86_64 amd64 elibc_musl kernel_linux xml  * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking libdom-0.4.2-src.tar.gz to /var/tmp/portage/net-libs/libdom-0.4.2/work >>> Source unpacked in /var/tmp/portage/net-libs/libdom-0.4.2/work >>> Preparing source in /var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2 ... make -j7 -l6 PREFIX=/usr NSSHARED=/usr/share/netsurf-buildsystem LIBDIR=lib Q= CC=clang LD=ld.lld HOST_CC=$(CC) BUILD_CC=clang CXX=clang++ BUILD_CXX=clang++ CCOPT= CCNOOPT= CCDBG= LDDBG= AR=llvm-ar WARNFLAGS= COMPONENT_TYPE=lib-shared WITH_EXPAT_BINDING=no WITH_LIBXML_BINDING=yes mkdir -p build-x86_64-gentoo-linux-musl-x86_64-gentoo-linux-musl-release-lib-shared mkdir -p build-x86_64-gentoo-linux-musl-x86_64-gentoo-linux-musl-release-lib-shared/coverage touch build-x86_64-gentoo-linux-musl-x86_64-gentoo-linux-musl-release-lib-shared/stamp COMPILE: bindings/xml/libxml_xmlparser.c clang -MMD -MP -std=c99 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/include/ -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/src -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/binding -Os -march=bdver2 -pipe -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -DNDEBUG -I/usr/include/libxml2 -D_POSIX_C_SOURCE -fPIC -DPIC -o build-x86_64-gentoo-linux-musl-x86_64-gentoo-linux-musl-release-lib-shared/bindings_xml_libxml_xmlparser.o -c bindings/xml/libxml_xmlparser.c COMPILE: bindings/hubbub/parser.c clang -MMD -MP -std=c99 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/include/ -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/src -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/binding -Os -march=bdver2 -pipe -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -DNDEBUG -I/usr/include/libxml2 -D_POSIX_C_SOURCE -fPIC -DPIC -o build-x86_64-gentoo-linux-musl-x86_64-gentoo-linux-musl-release-lib-shared/bindings_hubbub_parser.o -c bindings/hubbub/parser.c COMPILE: src/core/string.c clang -MMD -MP -std=c99 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/include/ -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/src -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/binding -Os -march=bdver2 -pipe -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -DNDEBUG -I/usr/include/libxml2 -D_POSIX_C_SOURCE -fPIC -DPIC -o build-x86_64-gentoo-linux-musl-x86_64-gentoo-linux-musl-release-lib-shared/src_core_string.o -c src/core/string.c COMPILE: src/core/node.c clang -MMD -MP -std=c99 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/include/ -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/src -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/binding -Os -march=bdver2 -pipe -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -DNDEBUG -I/usr/include/libxml2 -D_POSIX_C_SOURCE -fPIC -DPIC -o build-x86_64-gentoo-linux-musl-x86_64-gentoo-linux-musl-release-lib-shared/src_core_node.o -c src/core/node.c COMPILE: src/core/element.c clang -MMD -MP -std=c99 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/include/ -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/src -I/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2/binding -Os -march=bdver2 -pipe -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -DNDEBUG -I/usr/include/libxml2 -D_POSIX_C_SOURCE -fPIC -DPIC -o build-x86_64-gentoo-linux-musl-x86_64-gentoo-linux-musl-release-lib-shared/src_core_element.o -c src/core/element.c bindings/xml/libxml_xmlparser.c:146:20: error: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 146 | return len > 0 ? malloc(len) : NULL; |  ^ bindings/xml/libxml_xmlparser.c:146:20: note: include the header or explicitly provide a declaration for 'malloc' bindings/xml/libxml_xmlparser.c:149:3: error: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 149 | free(ptr); |  ^ bindings/xml/libxml_xmlparser.c:149:3: note: include the header or explicitly provide a declaration for 'free' bindings/xml/libxml_xmlparser.c:153:9: error: call to undeclared library function 'realloc' with type 'void *(void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 153 | return realloc(ptr, len); |  ^ bindings/xml/libxml_xmlparser.c:153:9: note: include the header or explicitly provide a declaration for 'realloc' bindings/xml/libxml_xmlparser.c:326:9: warning: assigning to 'xmlErrorPtr' (aka 'struct _xmlError *') from 'const xmlError *' (aka 'const struct _xmlError *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 326 | xmlerr = xmlCtxtGetLastError(parser->xml_ctx); |  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bindings/xml/libxml_xmlparser.c:358:9: warning: assigning to 'xmlErrorPtr' (aka 'struct _xmlError *') from 'const xmlError *' (aka 'const struct _xmlError *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 358 | xmlerr = xmlCtxtGetLastError(parser->xml_ctx); |  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bindings/xml/libxml_xmlparser.c:442:9: warning: assigning to 'xmlErrorPtr' (aka 'struct _xmlError *') from 'const xmlError *' (aka 'const struct _xmlError *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 442 | xmlerr = xmlCtxtGetLastError(parser->xml_ctx); |  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bindings/xml/libxml_xmlparser.c:519:9: warning: assigning to 'xmlErrorPtr' (aka 'struct _xmlError *') from 'const xmlError *' (aka 'const struct _xmlError *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 519 | xmlerr = xmlCtxtGetLastError(parser->xml_ctx); |  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings and 3 errors generated. make: *** [/usr/share/netsurf-buildsystem/makefiles/Makefile.top:595: build-x86_64-gentoo-linux-musl-x86_64-gentoo-linux-musl-release-lib-shared/bindings_xml_libxml_xmlparser.o] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: net-libs/libdom-0.4.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-libs/libdom-0.4.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-libs/libdom-0.4.2::gentoo'`. * The complete build log is located at '/var/log/portage/build/net-libs/libdom-0.4.2:20240202-220114.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-libs/libdom-0.4.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-libs/libdom-0.4.2/temp/environment'. * Working directory: '/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2' * S: '/var/tmp/portage/net-libs/libdom-0.4.2/work/libdom-0.4.2'