Bug 1217243

Summary: libqt5-qtwebengine: [ 8991s] collect2: error: ld returned 1 exit status
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP6 Reporter: Lubos Kocman <lubos.kocman>
Component: BasesystemAssignee: Marcus Meissner <meissner>
Status: CONFIRMED --- QA Contact:
Severity: Major    
Priority: P3 - Medium CC: fvogt, meissner, rtsvetkov
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lubos Kocman 2023-11-16 15:55:52 UTC
Hello

libqt5-qtwebengine 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/libqt5-qtwebengine/standard/x86_64


 8991s] g++ -c -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -Wno-return-type -O2 -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_BUILD_WEBENGINE_LIB -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_WEBENGINE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I. -I. -Iapi -I../core -I../core/api -I../../include -I../../include/QtWebEngine -I../../include/QtWebEngine/5.15.14 -I../../include/QtWebEngine/5.15.14/QtWebEngine -I../../include/QtWebEngineCore -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtQmlModels -I/usr/include/qt5/QtWebChannel -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtPositioning -I/usr/include/qt5/QtCore -I../../include/QtWebEngineCore/5.15.14 -I../../include/QtWebEngineCore/5.15.14/QtWebEngineCore -I/usr/include/qt5/QtQuick/5.15.8 -I/usr/include/qt5/QtQuick/5.15.8/QtQuick -I/usr/include/qt5/QtGui/5.15.8 -I/usr/include/qt5/QtGui/5.15.8/QtGui -I/usr/include/qt5/QtQmlModels/5.15.8 -I/usr/include/qt5/QtQmlModels/5.15.8/QtQmlModels -I/usr/include/qt5/QtQml/5.15.8 -I/usr/include/qt5/QtQml/5.15.8/QtQml -I/usr/include/qt5/QtCore/5.15.8 -I/usr/include/qt5/QtCore/5.15.8/QtCore -I.moc -I/usr/include/pgsql/ -I/usr/include/pgsql/server -I/usr/include/mysql/ -I/usr/lib64/qt5/mkspecs/linux-g++ -o .obj/qquickwebenginecontextmenurequest.o api/qquickwebenginecontextmenurequest.cpp
[ 8991s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: warning: libicui18n.so.suse65.1, needed by /usr/lib64/libQt5Core.so, may conflict with libicui18n.so.73
[ 8991s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: warning: libicuuc.so.suse65.1, needed by /usr/lib64/libQt5Core.so, may conflict with libicuuc.so.73
[ 8991s] collect2: error: ld returned 1 exit status
[ 8991s] make[2]: *** [Makefile:308: ../../../bin/qwebengine_convert_dict] Error 1
[ 8991s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/qtwebengine-everywhere-src-5.15.14/src/tools/qwebengine_convert_dict'
[ 8991s] make[1]: *** [Makefile:130: sub-tools-qwebengine_convert_dict-make_first] Error 2
[ 8991s] make[1]: *** Waiting for unfinished jobs....
Comment 1 Christophe Marin 2023-11-22 14:09:47 UTC
From the log:

[    9s] [7/624] cumulate libicu65_1-ledata-65.1-150200.4.8.1
[    9s] [8/624] cumulate libicu73_2-ledata-73.2-150000.1.3.1

[    9s] [435/624] cumulate libicu-suse65_1-65.1-150200.4.8.1
[    9s] [436/624] cumulate libicu73_2-73.2-150000.1.3.1


I suspect you're mixing packages with different origins. 15.5 is fine:
https://build.opensuse.org/package/show/home:krop:qtwebengine-lts/libqt5-qtwebengine
Comment 2 Christophe Marin 2023-11-22 14:13:21 UTC
with osc buildinfo:

<bdep name="libicu73_2" version="73.2" release="150000.1.3.1" arch="x86_64" hdrmd5="31c2afd67f099c5b1494f12297a31277" project="SUSE:SLE-15:Update" repository="pool-leap-15.6"/>

<bdep name="libicu-suse65_1" version="65.1" release="150200.4.8.1" arch="x86_64" hdrmd5="4988556e9e299520b55e3c3d81eacee4" project="SUSE:SLE-15-SP2:Update" repository="pool-leap-15.6"/>

added libicu73_2@SUSE:SLE-15:Update/pool-leap-15.6 because of nodejs20:libicui18n.so.73()(64bit)
added libicu73_2@SUSE:SLE-15:Update/pool-leap-15.6 because of nodejs20:libicuuc.so.73()(64bit)

added libicu-suse65_1@SUSE:SLE-15-SP2:Update/pool-leap-15.6 because of libQt5Core5:libicuuc.so.suse65.1()(64bit)
added libicu-suse65_1@SUSE:SLE-15-SP2:Update/pool-leap-15.6 because of libQt5Core5:libicui18n.so.suse65.1()(64bit)
Comment 3 Fabian Vogt 2023-12-01 13:32:41 UTC
The default libicu version was switched from 64 to 73 and everything needs to be rebuilt. Until that is done, issues like this happen.

Not a KDE or even openSUSE issue, moving to SLE basesystem.
Comment 4 Maintenance Automation 2024-01-26 16:30:32 UTC
SUSE-RU-2024:0245-1: An update that has one fix can now be installed.

Category: recommended (moderate)
Bug References: 1217243
Sources used:
openSUSE Leap 15.5 (src): libqt5-qtlocation-5.15.8+kde4-150500.2.4.1
Desktop Applications Module 15-SP5 (src): libqt5-qtlocation-5.15.8+kde4-150500.2.4.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.