Bugzilla – Bug 1217257
qt6-webengine error: 'using StringPiece = class absl::string_view' {aka 'class absl::string_view'} has no member named 'set'
Last modified: 2024-01-04 19:06:21 UTC
Hello qt6-webengine does not build on Leap 15.6. This should be fixed before Beta (Feb 2023). https://en.opensuse.org/openSUSE:Roadmap#Schedule_for_openSUSE_Leap_15.6 Build log from Leap 15.6 https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/qt6-webengine/standard/x86_64 StringPiece = class absl::string_view' {aka 'class absl::string_view'} has no member named 'set' [ 7245s] 429 | source_.set(source.data(), source.size()); [ 7245s] | ^~~ [ 7245s] ./../../../../../src/3rdparty/chromium/extensions/browser/api/web_request/form_data_parser.cc: In member function 'virtual bool extensions::FormDataParserMultipart::SetSource(base::StringPiece)': [ 7245s] ./../../../../../src/3rdparty/chromium/extensions/browser/api/web_request/form_data_parser.cc:573:11: error: 'using StringPiece = class absl::string_view' {aka 'class absl::string_view'} has no member named 'set' [ 7245s] 573 | source_.set(source.data(), source.size()); [ 7245s] | ^~~ [ 7245s] At global scope: [ 7245s] cc1plus: note: unrecognized command-line option '-Wno-stringop-overread' may have been intended to silence earlier diagnostics [ 7248s] [24766/27742] CXX obj/extensions/browser/browser_sources/browser_sources_jumbo_10.o [ 7250s] [24767/27742] CXX obj/extensions/browser/browser_sources/browser_sources_jumbo_18.o [ 7254s] [24768/27742] CXX obj/extensions/browser/browser_sources/browser_sources_jumbo_9.o [ 7254s] ninja: build stopped: subcommand failed. [ 7254s] FAILED: src/core/RelWithDebInfo/x86_64/QtWebEngineCore.stamp src/core/RelWithDebInfo/x86_64/QtWebEngineCore [ 7254s] cd /home/abuild/rpmbuild/BUILD/qtwebengine-everywhere-src-6.4.2/build/src/core && /usr/bin/ninja -j4 -C /home/abuild/rpmbuild/BUILD/qtwebengine-everywhere-src-6.4.2/build/src/core/RelWithDebInfo/x86_64 QtWebEngineCore [ 7254s] ninja: build stopped: subcommand failed. [ 7254s] error: Bad exit status from /var/tmp/rpm-tmp.KR5dFa (%build) [ 7254s]
If you build chromium against system re2-11 you need to also unbundle abseil. Look at the nodejs-electron package to see how it's done. On Leap you likely cannot unbundle abseil due to the system version being to old. you need to use re2-10 in that case.
Somehow it works on 15.5, and in Factory, only 15.6 is broken.
(In reply to Michal Suchanek from comment #2) > Somehow it works on 15.5, and in Factory, only 15.6 is broken. Did you update the Qt packages to 6.6.1?
Leap 15.6 still has Qt 6.4.2 (or had a couple of days ago).
I see, the build started failing when re2-11 was added to 15.6
(In reply to Michal Suchanek from comment #5) > I see, the build started failing when re2-11 was added to 15.6 if re2-10 is still available and updating Qt isn't an option, you can change the BR to 'BuildRequires: pkgconfig(re2) <= 10.0.0'
It fails differently with 6.6.1 but fails nonetheless. Can't really say if updating Qt is desirable.
This is an autogenerated message for OBS integration: This bug (1217257) was mentioned in https://build.opensuse.org/request/show/1134655 Backports:SLE-15-SP6 / qt6-webengine https://build.opensuse.org/request/show/1134656 Backports:SLE-15-SP5 / qt6-webengine
This is the error with 6.6.1: [ 7295s] [31007/31165] LINK ./v8_context_snapshot_generator [ 7295s] FAILED: v8_context_snapshot_generator [ 7295s] /usr/bin/python3 "../../../../../src/3rdparty/chromium/build/toolchain/gcc_link_wrapper.py" --output="./v8_context_snapshot_generator" -- /usr/bin/g++-12 -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -m64 -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-z,defs -Wl,--as-needed -pie -Wl,--disable-new-dtags -o "./v8_context_snapshot_generator" -Wl,--start-group @"./v8_context_snapshot_generator.rsp" -Wl,--end-group -ldl -lpthread -lrt -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -levent -lz -lresolv -ljpeg -lpng16 -lwebp -lwebpmux -lwebpdemux -lfreetype -lexpat -lfontconfig -lopus -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lgbm -lEGL -ldrm -lasound -lavcodec -lavformat -lavutil -lxkbcommon -lxcb -lXi -lpci -lre2 -lsnappy [ 7295s] /usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: obj/components/shared_highlighting/core/common/common/disabled_sites.o: in function `bool re2::RE2::Apply<bool (*)(std::basic_string_view<char, std::char_traits<char> >, re2::RE2 const&, re2::RE2::Arg const* const*, int), std::basic_string_view<char, std::char_traits<char> > >(bool (*)(std::basic_string_view<char, std::char_traits<char> >, re2::RE2 const&, re2::RE2::Arg const* const*, int), std::basic_string_view<char, std::char_traits<char> >, re2::RE2 const&)': [ 7295s] /usr/include/re2/re2.h:358:(.text._ZN19shared_highlighting21ShouldOfferLinkToTextERK4GURL+0x576): undefined reference to `re2::RE2::FullMatchN(std::basic_string_view<char, std::char_traits<char> >, re2::RE2 const&, re2::RE2::Arg const* const*, int)' [ 7295s] /usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: /usr/include/re2/re2.h:358:(.text._ZN19shared_highlighting21ShouldOfferLinkToTextERK4GURL+0x660): undefined reference to `re2::RE2::PartialMatchN(std::basic_string_view<char, std::char_traits<char> >, re2::RE2 const&, re2::RE2::Arg const* const*, int)' [ 7295s] collect2: error: ld returned 1 exit status
openSUSE-RU-2023:0422-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 1217257 CVE References: JIRA References: Sources used: openSUSE Backports SLE-15-SP5 (src): qt6-webengine-6.4.2-bp155.2.3.1, qt6-webengine-docs-6.4.2-bp155.2.3.1
Looks like the update to Qt 6.6.1 is coming to 15.6 and then the workaround will be needed in that version as well.