Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903574 - kde-apps/kdepim-runtime-22.12.3: Fails to build with Clang 16
Summary: kde-apps/kdepim-runtime-22.12.3: Fails to build with Clang 16
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL: https://bugreports.qt.io/browse/QTBUG...
Whiteboard: fixed with 23.08.5
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-30 12:17 UTC by Manuel Nickschas
Modified: 2024-10-31 12:52 UTC (History)
2 users (show)

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


Attachments
build.log (build.log.gz,56.20 KB, application/gzip)
2023-03-30 12:18 UTC, Manuel Nickschas
Details
emerge --info (emerge.info.gz,7.21 KB, application/gzip)
2023-03-30 12:18 UTC, Manuel Nickschas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Nickschas 2023-03-30 12:17:47 UTC
Package fails to build with Clang 16, due to -Wenum-constexpr-conversion (this seems to affect quite some packages...).

For example:

FAILED: resources/ews/ewsclient/CMakeFiles/ewsclient.dir/ewssyncfolderhierarchyrequest.cpp.o 
/usr/lib/ccache/bin/clang++ -DKCOREADDONS_LIB -DKCalCore=KCalendarCore -DKF_DEPRECATED_WARNINGS_SINCE=0x60000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x56300 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_WEBCHANNEL_LIB -DQT_WEBENGINECORE_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3_build/resources/ews/ewsclient -I/var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3/resources/ews/ewsclient -I/var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3_build/resources/ews/ewsclient/ewsclient_autogen/include -I/var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3/resources/shared/singlefileresource -I/var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3_build/resources/shared/singlefileresource -I/var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3/resources/folderarchivesettings -I/var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3_build/resources/ews/ewsclient/.. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-clang -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KIO -isystem /usr/include/KF5 -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KConfig -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KIOFileWidgets -isystem /usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KIOGui -isystem /usr/include/qt5/QtGui -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KJobWidgets -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/KF5/Solid -isystem /usr/include/KF5/KCompletion -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KBookmarks -isystem /usr/include/qt5/QtXml -isystem /usr/include/KF5/KItemViews -isystem /usr/include/KF5/KXmlGui -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KConfigGui -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KAuthWidgets -isystem /usr/include/KF5/KAuthCore -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5/KMime -isystem /usr/include/KF5/KCalendarCore -isystem /usr/include/qt5/QtNetworkAuth -isystem /usr/include/qt5/QtWebEngineWidgets -isystem /usr/include/qt5/QtWebEngineCore -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtWebChannel -isystem /usr/include/qt5/QtPositioning -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/Qca-qt5/QtCrypto  -DQT_NO_DEBUG -O3 -march=native -mtune=native -pipe -fomit-frame-pointer -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -pedantic -Wzero-as-null-pointer-constant -fdiagnostics-color=always -std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -MD -MT resources/ews/ewsclient/CMakeFiles/ewsclient.dir/ewssyncfolderhierarchyrequest.cpp.o -MF resources/ews/ewsclient/CMakeFiles/ewsclient.dir/ewssyncfolderhierarchyrequest.cpp.o.d -o resources/ews/ewsclient/CMakeFiles/ewsclient.dir/ewssyncfolderhierarchyrequest.cpp.o -c /var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3/resources/ews/ewsclient/ewssyncfolderhierarchyrequest.cpp
In file included from /var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3/resources/ews/ewsclient/ewssyncfolderhierarchyrequest.cpp:14:
/var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3/resources/ews/ewsclient/ewsxml.h:26:33: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]
    static constexpr T Ignore = static_cast<T>(-1);
                                ^
/var/tmp/portage/kde-apps/kdepim-runtime-22.12.3/work/kdepim-runtime-22.12.3/resources/ews/ewsclient/ewsxml.h:26:33: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]
2 errors generated.

Reproducible: Always

Steps to Reproduce:
1. Try to build package with Clang 16.
2.
3.
Actual Results:  
Fails with -Wenum-constexpr-conversion

Expected Results:  
Package should build with Clang 16
Comment 1 Manuel Nickschas 2023-03-30 12:18:03 UTC
Created attachment 859263 [details]
build.log
Comment 2 Manuel Nickschas 2023-03-30 12:18:17 UTC
Created attachment 859264 [details]
emerge --info
Comment 3 Paul Gover 2023-07-09 09:06:59 UTC
Just seen this with kde=apps/kdepim-runtime-23.04.02
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-09 09:08:33 UTC
Could one of you report this upstream please & link it here? Thanks.
Comment 5 Andreas Sturmlechner gentoo-dev 2024-02-17 19:44:56 UTC
https://invent.kde.org/pim/kdepim-runtime/-/commit/be465b7480555e7ae6a26c1c8acb71aafa991927

Please test 23.08.5.
Comment 6 Roman Zimmermann 2024-02-20 06:13:38 UTC
I can confirm that kde-apps/kdepim-runtime-23.08.5 builds with clang, while earlier versions failed.