Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917601 - dev-qt/qtwebengine: fails to build with libxml2-2.12.0
Summary: dev-qt/qtwebengine: fails to build with libxml2-2.12.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libxml2-2.12
  Show dependency tree
 
Reported: 2023-11-19 21:26 UTC by Eli Schwartz
Modified: 2023-11-22 12:46 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build-log.xz (qtwebengine-6.5.3:20231119-170754.log.xz,589.55 KB, application/x-xz)
2023-11-19 21:26 UTC, Eli Schwartz
Details
emerge info (emerge-info.log,6.89 KB, text/x-log)
2023-11-19 21:28 UTC, Eli Schwartz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eli Schwartz 2023-11-19 21:26:42 UTC
Created attachment 875222 [details]
build-log.xz

FAILED: obj/third_party/blink/renderer/core/core/core_jumbo_287.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/blink/renderer/core/core/core_jumbo_287.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_
MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBLINK_CORE_IMPLEMENTATION=1 -DLIBYUV_DISABLE_NEON -DGL_GLEXT_PROT
OTYPES -DUSE_GLX -DUSE_EGL -DVK_USE_PLATFORM_XCB_KHR -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_I
NITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE
_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DWEBRTC_USE_X11 -DLOGGING_INSIDE_WEBRTC -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_ENABLE_SKSL -DSK_UNTIL_CRBUG_11
87654_IS_FIXED -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_HAS_WUFFS_LIBRARY -DSK_VULKAN=1 -DSK_SUPPORT_GPU=
1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WA
RNINGS -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DLEVELDB_PLATFORM_CHROMIUM=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_SYSTEM_LIBJPEG -DUSE_SYSTEM_ZLIB=1 -I. -Igen -I../../../../../qtweben
gine-everywhere-src-6.5.3/src/3rdparty/chromium -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perf
etto -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/jsoncpp/source/include 
-I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/khronos -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/gpu -I../../../../../qtwebengine-everywhere-src
-6.5.3/src/3rdparty/chromium/third_party/vulkan-deps/vulkan-headers/src/include -Igen/third_party/dawn/include -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/dawn/include -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/ced/src -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/net/third_party/quiche/overrides -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/net/third_party/quiche/src/quiche/common/platform/default -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/net/third_party/quiche/src -Igen/net/third_party/quiche/src -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/skia -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/wuffs/src/release/c -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/vulkan/include -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/libwebm/source -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/mesa_headers -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/leveldatabase -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/leveldatabase/src/include -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/libaom/source/libaom -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/iccjpeg -I../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/ots/src/include -march=native -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-unknown-pragmas -Wno-address -Wno-parentheses -Wno-sign-compare -Wno-stringop-overflow -Wno-stringop-overread -Wno-psabi -Wno-multichar -Wno-format-zero-length -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -msse3 -fno-omit-frame-pointer -fvisibility=hidden -Wno-unused-variable -I/usr/include/nss -I/usr/include/nspr -I/usr/include/libpng16 -I/usr/include/webp -I/usr/include/libxml2 -I/usr/include/libxml2 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -Wno-deprecated-copy -std=gnu++2a -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-deprecated-declarations -c gen/third_party/blink/renderer/core/core_jumbo_287.cc -o obj/third_party/blink/renderer/core/core/core_jumbo_287.o
In file included from gen/third_party/blink/renderer/core/core_jumbo_287.cc:5:
./../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xsl_style_sheet_libxslt.cc: In member function ‘bool blink::XSLStyleSheet::ParseString(const WTF::String&)’:
./../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xsl_style_sheet_libxslt.cc:126:70: error: invalid conversion from ‘void (*)(void*, xmlError*)’ {aka ‘void (*)(void*, _xmlError*)’} to ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void*, const _xmlError*)’} [-fpermissive]
  126 |                                XSLTProcessor::ParseErrorFunc, console);
      |                                                                      ^
      |                                                                      |
      |                                                                      void (*)(void*, xmlError*) {aka void (*)(void*, _xmlError*)}
In file included from ./../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xsl_style_sheet_libxslt.cc:33:
../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/blink/renderer/core/xml/parser/xml_document_parser_scope.h:43:26: note:   initializing argument 3 of ‘blink::XMLDocumentParserScope::XMLDocumentParserScope(blink::Document*, xmlGenericErrorFunc, xmlStructuredErrorFunc, void*)’
   43 |                          xmlStructuredErrorFunc = nullptr,
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from gen/third_party/blink/renderer/core/core_jumbo_287.cc:8:
./../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc: In function ‘xmlDoc* blink::DocLoaderFunc(const xmlChar*, xmlDictPtr, int, void*, xsltLoadType)’:
./../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc:137:32: error: invalid conversion from ‘void (*)(void*, xmlError*)’ {aka ‘void (*)(void*, _xmlError*)’} to ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void*, const _xmlError*)’} [-fpermissive]
  137 |       xmlSetStructuredErrorFunc(console, XSLTProcessor::ParseErrorFunc);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                |
      |                                void (*)(void*, xmlError*) {aka void (*)(void*, _xmlError*)}
In file included from /usr/include/libxml2/libxml/valid.h:15,
                 from /usr/include/libxml2/libxml/parser.h:17,
                 from /usr/include/libxslt/transform.h:15,
                 from ../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xsl_style_sheet.h:27,
                 from ./../../../../../qtwebengine-everywhere-src-6.5.3/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xsl_style_sheet_libxslt.cc:23:
/usr/include/libxml2/libxml/xmlerror.h:898:57: note:   initializing argument 2 of ‘void xmlSetStructuredErrorFunc(void*, xmlStructuredErrorFunc)’
  898 |                                  xmlStructuredErrorFunc handler);
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Comment 1 Eli Schwartz 2023-11-19 21:28:11 UTC
Created attachment 875223 [details]
emerge info
Comment 2 Eli Schwartz 2023-11-19 21:29:01 UTC
After downgrading libxml2 and running `ebuild ... compile` it passed with the existing build directory.
Comment 3 Ionen Wolkens gentoo-dev 2023-11-20 00:35:48 UTC
Hadn't tried but was pretty sure this would indeed fail given chromium already does wrt bug #917529

fwiw I'm waiting to see if anything happens with chromium first, then I'll have something to backport
Comment 4 Eli Schwartz 2023-11-20 00:57:33 UTC
Yeah it does feel a bit inevitable, but since I discovered this the hard way by mixing build chroots I figured I'd document it and save you the trouble of testing. :D
Comment 5 Larry the Git Cow gentoo-dev 2023-11-21 22:36:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5aa51046dca2c2b91565933eb81a2ba11d2012fb

commit 5aa51046dca2c2b91565933eb81a2ba11d2012fb
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-11-21 19:02:54 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-11-21 22:19:54 +0000

    dev-qt/qtwebengine: add 5.15.11_p20231120, fix build w/ libxml2-2.12
    
    Bug: https://bugs.gentoo.org/917645
    Closes: https://bugs.gentoo.org/917601
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qtwebengine/Manifest                        |   1 +
 ...twebengine-5.15.11_p20231120-libxml2-2.12.patch |  43 +++
 .../qtwebengine-5.15.11_p20231120.ebuild           | 287 +++++++++++++++++++++
 3 files changed, 331 insertions(+)
Comment 6 Ionen Wolkens gentoo-dev 2023-11-22 09:57:36 UTC
Re-opening given still broken for Qt6.

I was thinking handle this in 6.6.1 which was due to release tomorrow, but last Qt meeting said it'll probably release at beginning of next week now. So maybe I'll look at fixing 6.6.0.
Comment 7 Larry the Git Cow gentoo-dev 2023-11-22 12:46:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25616a65acf3a98a21c155c7a5ae11d8d83b63f6

commit 25616a65acf3a98a21c155c7a5ae11d8d83b63f6
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-11-22 12:02:21 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-11-22 12:44:42 +0000

    dev-qt/qtwebengine: fix build with >=libxml2-2.12 (qt6)
    
    For convenience, use LIBXML_VERSION rather than has_version
    so that can include in patchset tarball later if still needed.
    
    Formerly meant to fix only in upcoming 6.6.1 (soon) but is a
    simple and safe fix so let's fix the others too.
    
    Closes: https://bugs.gentoo.org/917601
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../files/qtwebengine-6.5.3-libxml2-2.12.patch     | 39 ++++++++++++++++++++++
 dev-qt/qtwebengine/qtwebengine-6.5.3.ebuild        |  1 +
 dev-qt/qtwebengine/qtwebengine-6.6.0.ebuild        |  1 +
 dev-qt/qtwebengine/qtwebengine-6.6.9999.ebuild     |  1 +
 4 files changed, 42 insertions(+)