Summary: | KConfig 5.30 and 5.31 do not compile with Macports/XCode under MacOS | ||
---|---|---|---|
Product: | [Frameworks and Libraries] extra-cmake-modules | Reporter: | caulier.gilles |
Component: | general | Assignee: | Alex Merry <alex.merry> |
Status: | RESOLVED FIXED | ||
Severity: | grave | CC: | caulier.gilles, ecm-bugs-null, kdelibs-bugs-null, matthew |
Priority: | NOR | ||
Version First Reported In: | 5.30.0 | ||
Target Milestone: | --- | ||
Platform: | MacPorts | ||
OS: | macOS | ||
Latest Commit: | Version Fixed In: | 5.33.0 | |
Sentry Crash Report: |
Description
caulier.gilles
2017-01-21 23:19:13 UTC
I just rechecked and same code compile fine with KConfig 5.29. So, it's not a compiler problem. I suspect a change in ECM 5.30 which introduce some wrong compiler options under MacOS. Switch from Apple Clang to GCC 5.4 provided by Macports do not change anything. The compilation is broken at the same place... This is the compilation trace from 5.29 and 5.30 with Apple Clang compiler : ==> 5.29 Scanning dependencies of target KF5ConfigGui make[6]: Leaving directory `/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build' /Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/gui/CMakeFiles/KF5ConfigGui.dir/build.make src/gui/CMakeFiles/KF5ConfigGui.dir/build make[6]: Entering directory `/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build' [ 33%] Building CXX object src/gui/CMakeFiles/KF5ConfigGui.dir/kconfiggui.cpp.o cd /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/gui && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DKF5ConfigGui_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MAC_USE_COCOA -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_XML_LIB -D_DARWIN_C_SOURCE -D_LARGEFILE64_SOURCE -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/gui -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/core -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core -iframework /opt/digikam/libexec/qt5/lib -isystem /opt/digikam/libexec/qt5/lib/QtGui.framework/Headers -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Headers -isystem /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers -isystem /opt/digikam/libexec/qt5/./mkspecs/macx-clang -isystem /opt/digikam/libexec/qt5/lib/QtXml.framework/Headers -stdlib=libc++ -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -pedantic -Wno-gnu-zero-variadic-macro-arguments -g -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/KF5ConfigGui.dir/kconfiggui.cpp.o -c /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui/kconfiggui.cpp [ 33%] Building CXX object src/gui/CMakeFiles/KF5ConfigGui.dir/kconfiggroupgui.cpp.o cd /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/gui && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DKF5ConfigGui_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MAC_USE_COCOA -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_XML_LIB -D_DARWIN_C_SOURCE -D_LARGEFILE64_SOURCE -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/gui -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/core -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core -iframework /opt/digikam/libexec/qt5/lib -isystem /opt/digikam/libexec/qt5/lib/QtGui.framework/Headers -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Headers -isystem /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers -isystem /opt/digikam/libexec/qt5/./mkspecs/macx-clang -isystem /opt/digikam/libexec/qt5/lib/QtXml.framework/Headers -stdlib=libc++ -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -pedantic -Wno-gnu-zero-variadic-macro-arguments -g -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/KF5ConfigGui.dir/kconfiggroupgui.cpp.o -c /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui/kconfiggroupgui.cpp [ 34%] Building CXX object src/gui/CMakeFiles/KF5ConfigGui.dir/kconfigloader.cpp.o ==> 5.30 Scanning dependencies of target KF5ConfigGui make[6]: Leaving directory `/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build' /Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/gui/CMakeFiles/KF5ConfigGui.dir/build.make src/gui/CMakeFiles/KF5ConfigGui.dir/build make[6]: Entering directory `/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build' [ 32%] Building CXX object src/gui/CMakeFiles/KF5ConfigGui.dir/kconfiggui.cpp.o cd /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/gui && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DKF5ConfigGui_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MAC_USE_COCOA -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_XML_LIB -D_DARWIN_C_SOURCE -D_LARGEFILE64_SOURCE -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/gui -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/core -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core -iframework /opt/digikam/libexec/qt5/lib -isystem /opt/digikam/libexec/qt5/lib/QtGui.framework/Headers -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Headers -isystem /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers -isystem /opt/digikam/libexec/qt5/./mkspecs/macx-clang -isystem /opt/digikam/libexec/qt5/lib/QtXml.framework/Headers -stdlib=libc++ -g -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/KF5ConfigGui.dir/kconfiggui.cpp.o -c /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui/kconfiggui.cpp [ 32%] Building CXX object src/gui/CMakeFiles/KF5ConfigGui.dir/kconfiggroupgui.cpp.o cd /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/gui && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DKF5ConfigGui_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MAC_USE_COCOA -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_XML_LIB -D_DARWIN_C_SOURCE -D_LARGEFILE64_SOURCE -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/gui -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build/src/core -I/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core -iframework /opt/digikam/libexec/qt5/lib -isystem /opt/digikam/libexec/qt5/lib/QtGui.framework/Headers -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Headers -isystem /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers -isystem /opt/digikam/libexec/qt5/./mkspecs/macx-clang -isystem /opt/digikam/libexec/qt5/lib/QtXml.framework/Headers -stdlib=libc++ -g -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/KF5ConfigGui.dir/kconfiggroupgui.cpp.o -c /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui/kconfiggroupgui.cpp /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui/kconfiggroupgui.cpp:41:11: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] const auto errString = [&]() { ^ /Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui/kconfiggroupgui.cpp:41:28: error: expected expression const auto errString = [&]() { ^ 1 warning and 1 error generated. make[6]: *** [src/gui/CMakeFiles/KF5ConfigGui.dir/kconfiggroupgui.cpp.o] Error 1 make[6]: Leaving directory `/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build' make[5]: *** [src/gui/CMakeFiles/KF5ConfigGui.dir/all] Error 2 make[5]: Leaving directory `/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build' make[4]: *** [all] Error 2 make[4]: Leaving directory `/Users/gilles/Devel/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/build' ext_kf5/CMakeFiles/ext_kconfig.dir/build.make:112 : la recette pour la cible « ext_kf5/ext_kconfig-prefix/src/ext_kconfig-stamp/ext_kconfig-build » a échouée gmake[3]: *** [ext_kf5/ext_kconfig-prefix/src/ext_kconfig-stamp/ext_kconfig-build] Erreur 2 gmake[3] : on quitte le répertoire « /Users/gilles/Devel/5.x/project/bundles/macports/temp.build » CMakeFiles/Makefile2:1826 : la recette pour la cible « ext_kf5/CMakeFiles/ext_kconfig.dir/all » a échouée gmake[2]: *** [ext_kf5/CMakeFiles/ext_kconfig.dir/all] Erreur 2 gmake[2] : on quitte le répertoire « /Users/gilles/Devel/5.x/project/bundles/macports/temp.build » CMakeFiles/Makefile2:1838 : la recette pour la cible « ext_kf5/CMakeFiles/ext_kconfig.dir/rule » a échouée gmake[1]: *** [ext_kf5/CMakeFiles/ext_kconfig.dir/rule] Erreur 2 gmake[1] : on quitte le répertoire « /Users/gilles/Devel/5.x/project/bundles/macports/temp.build » Makefile:625 : la recette pour la cible « ext_kconfig » a échouée gmake: *** [ext_kconfig] Erreur 2 Comparing compiler option passed between 5.29 and 5.30, this options have been dropped : -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -pedantic -Wno-gnu-zero-variadic-macro-arguments Why ? The problem is exactly the same for MacOS Sierra last version 10.10.2. LAst XCode is installed and KConfig do not compile for same reasons: [ 32%] Built target KF5ConfigGui_automoc Scanning dependencies of target KF5ConfigGui [ 32%] Building CXX object src/gui/CMakeFiles/KF5ConfigGui.dir/kconfiggui.cpp.o [ 32%] Building CXX object src/gui/CMakeFiles/KF5ConfigGui.dir/kconfiggroupgui.cpp.o /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui/kconfiggroupgui.cpp:41:11: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] const auto errString = [&]() { ^ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/gui/kconfiggroupgui.cpp:41:28: error: expected expression const auto errString = [&]() { ^ 1 warning and 1 error generated. make[6]: *** [src/gui/CMakeFiles/KF5ConfigGui.dir/kconfiggroupgui.cpp.o] Error 1 make[5]: *** [src/gui/CMakeFiles/KF5ConfigGui.dir/all] Error 2 make[4]: *** [all] Error 2 ext_kf5/CMakeFiles/ext_kconfig.dir/build.make:112 : la recette pour la cible « ext_kf5/ext_kconfig-prefix/src/ext_kconfig-stamp/ext_kconfig-build » a échouée gmake[3]: *** [ext_kf5/ext_kconfig-prefix/src/ext_kconfig-stamp/ext_kconfig-build] Erreur 2 CMakeFiles/Makefile2:1826 : la recette pour la cible « ext_kf5/CMakeFiles/ext_kconfig.dir/all » a échouée gmake[2]: *** [ext_kf5/CMakeFiles/ext_kconfig.dir/all] Erreur 2 CMakeFiles/Makefile2:1838 : la recette pour la cible « ext_kf5/CMakeFiles/ext_kconfig.dir/rule » a échouée gmake[1]: *** [ext_kf5/CMakeFiles/ext_kconfig.dir/rule] Erreur 2 Makefile:625 : la recette pour la cible « ext_kconfig » a échouée gmake: *** [ext_kconfig] Erreur 2 bash-3.2$ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin16.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin bash-3.2$ Please fix compilation rules for whole KF5 under MacOS. This must be compilable as before with KF5 5.29. Gilles Caulier Re-assigning to ECM as it appears to be caused by a change there. I suspect https://phabricator.kde.org/D4363 may have caused it, but I'm not sure. Ok thanks for the feedback. I can test quickly a patch if necessary, or with ECM from git/master. Let's me hear... Gilles Caulier Same problem using current XCode compiler under MAcOS Sierra 10.12.3 and KF5 5.31. Scanning dependencies of target KF5ConfigCore [ 78%] Building CXX object src/core/CMakeFiles/KF5ConfigCore.dir/kconfig.cpp.o [ 78%] Building CXX object src/core/CMakeFiles/KF5ConfigCore.dir/kconfigbase.cpp.o [ 78%] Building CXX object src/core/CMakeFiles/KF5ConfigCore.dir/kconfigdata.cpp.o [ 81%] Building CXX object src/core/CMakeFiles/KF5ConfigCore.dir/kconfigini.cpp.o [ 81%] Building CXX object src/core/CMakeFiles/KF5ConfigCore.dir/kconfigbackend.cpp.o [ 81%] Building CXX object src/core/CMakeFiles/KF5ConfigCore.dir/kconfiggroup.cpp.o /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfigini.cpp:49:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto it = cache->constFind(fragment); ^ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfigini.cpp:169:34: error: no matching member function for call to 'getEntryOption' groupSkip = entryMap.getEntryOption(currentGroup, nullptr, nullptr, KEntryMap::EntryImmutable); ~~~~~~~~~^~~~~~~~~~~~~~ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfigdata.h:210:10: note: candidate function not viable: no known conversion from 'std::__1::nullptr_t' to 'const QByteArray' for 2nd argument bool getEntryOption(const QByteArray &group, const QByteArray &key, ^ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfigdata.h:209:10: note: candidate function not viable: requires 2 arguments, but 4 were provided bool getEntryOption(const ConstIterator &it, EntryOption option) const; ^ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfigini.cpp:202:37: error: no viable conversion from 'std::__1::nullptr_t' to 'KEntryMap::EntryOptions' (aka 'QFlags<KEntryMap::EntryOption>') KEntryMap::EntryOptions entryOptions = nullptr; ^ ~~~~~~~ /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers/qflags.h:86:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::__1::nullptr_t' to 'const QFlags<KEntryMap::EntryOption> &' for 1st argument class QFlags ^ /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers/qflags.h:111:29: note: candidate constructor not viable: no known conversion from 'std::__1::nullptr_t' to 'KEntryMap::EntryOption' for 1st argument Q_DECL_CONSTEXPR inline QFlags(Enum f) Q_DECL_NOTHROW : i(Int(f)) {} ^ /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers/qflags.h:112:29: note: candidate constructor not viable: no known conversion from 'std::__1::nullptr_t' to 'Zero' (aka 'int (QFlags<KEntryMap::EntryOption>::Private::*)') for 1st argument Q_DECL_CONSTEXPR inline QFlags(Zero = Q_NULLPTR) Q_DECL_NOTHROW : i(0) {} ^ /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers/qflags.h:113:29: note: candidate constructor not viable: no known conversion from 'std::__1::nullptr_t' to 'QFlag' for 1st argument Q_DECL_CONSTEXPR inline QFlags(QFlag f) Q_DECL_NOTHROW : i(f) {} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:71:9: note: candidate template ignored: could not match 'type-parameter-0-0 *' against 'QFlags<KEntryMap::EntryOption>' operator _Tp* () const {return 0;} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:75:9: note: candidate template ignored: could not match 'type-parameter-0-0 type-parameter-0-1::*' against 'QFlags<KEntryMap::EntryOption>' operator _Tp _Up::* () const {return 0;} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:67:45: note: candidate function _LIBCPP_ALWAYS_INLINE _LIBCPP_CONSTEXPR operator int __nat::*() const {return 0;} ^ [ 84%] Building CXX object src/core/CMakeFiles/KF5ConfigCore.dir/kdesktopfile.cpp.o /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfig.cpp:393:45: error: no matching member function for call to 'findEntry' KEntryMapConstIterator it = d->entryMap.findEntry(theGroup, nullptr, nullptr); ~~~~~~~~~~~~^~~~~~~~~ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfigdata.h:186:19: note: candidate function not viable: no known conversion from 'std::__1::nullptr_t' to 'const QByteArray' for 2nd argument ConstIterator findEntry(const QByteArray &group, const QByteArray &key = QByteArray(), ^ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfigdata.h:183:14: note: candidate function not viable: 'this' argument has type 'const KEntryMap', but method is not marked const Iterator findEntry(const QByteArray &group, const QByteArray &key = QByteArray(), ^ [ 84%] Building CXX object src/core/CMakeFiles/KF5ConfigCore.dir/ksharedconfig.cpp.o /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfig.cpp:763:9: warning: TODO: enable kiosk feature again (resource restrictions), but without KStandardDirs... Needs a class in the kconfig framework. [-W#pragma-messages] #pragma message("TODO: enable kiosk feature again (resource restrictions), but without KStandardDirs... Needs a class in the kconfig framework.") ^ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfig.cpp:836:41: error: no matching member function for call to 'getEntryOption' return isImmutable() || d->entryMap.getEntryOption(aGroup, nullptr, nullptr, KEntryMap::EntryImmutable); ~~~~~~~~~~~~^~~~~~~~~~~~~~ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfigdata.h:210:10: note: candidate function not viable: no known conversion from 'std::__1::nullptr_t' to 'const QByteArray' for 2nd argument bool getEntryOption(const QByteArray &group, const QByteArray &key, ^ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfigdata.h:209:10: note: candidate function not viable: requires 2 arguments, but 4 were provided bool getEntryOption(const ConstIterator &it, EntryOption option) const; ^ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/kconfig.cpp:867:29: error: no viable conversion from 'std::__1::nullptr_t' to 'KEntryMap::EntryOptions' (aka 'QFlags<KEntryMap::EntryOption>') KEntryMap::EntryOptions options = nullptr; ^ ~~~~~~~ /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers/qflags.h:86:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::__1::nullptr_t' to 'const QFlags<KEntryMap::EntryOption> &' for 1st argument class QFlags ^ /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers/qflags.h:111:29: note: candidate constructor not viable: no known conversion from 'std::__1::nullptr_t' to 'KEntryMap::EntryOption' for 1st argument Q_DECL_CONSTEXPR inline QFlags(Enum f) Q_DECL_NOTHROW : i(Int(f)) {} ^ /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers/qflags.h:112:29: note: candidate constructor not viable: no known conversion from 'std::__1::nullptr_t' to 'Zero' (aka 'int (QFlags<KEntryMap::EntryOption>::Private::*)') for 1st argument Q_DECL_CONSTEXPR inline QFlags(Zero = Q_NULLPTR) Q_DECL_NOTHROW : i(0) {} ^ /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers/qflags.h:113:29: note: candidate constructor not viable: no known conversion from 'std::__1::nullptr_t' to 'QFlag' for 1st argument Q_DECL_CONSTEXPR inline QFlags(QFlag f) Q_DECL_NOTHROW : i(f) {} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:71:9: note: candidate template ignored: could not match 'type-parameter-0-0 *' against 'QFlags<KEntryMap::EntryOption>' operator _Tp* () const {return 0;} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:75:9: note: candidate template ignored: could not match 'type-parameter-0-0 type-parameter-0-1::*' against 'QFlags<KEntryMap::EntryOption>' operator _Tp _Up::* () const {return 0;} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:67:45: note: candidate function _LIBCPP_ALWAYS_INLINE _LIBCPP_CONSTEXPR operator int __nat::*() const {return 0;} ^ 1 warning and 2 errors generated. [ 84%] Building CXX object src/core/CMakeFiles/KF5ConfigCore.dir/kcoreconfigskeleton.cpp.o gmake[6]: *** [src/core/CMakeFiles/KF5ConfigCore.dir/build.make:183: src/core/CMakeFiles/KF5ConfigCore.dir/kconfigini.cpp.o] Error 1 gmake[6]: *** Attente des tâches non terminées.... /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/kconfig_compiler/kconfig_compiler.cpp:2324:13: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto instance = [&cfg, &cpp] (const QString &type, const QString arg, bool wrap) { ^ /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/kconfig_compiler/kconfig_compiler.cpp:2324:29: error: expected expression auto instance = [&cfg, &cpp] (const QString &type, const QString arg, bool wrap) { ^ 1 warning and 3 errors generated. gmake[6]: *** [src/core/CMakeFiles/KF5ConfigCore.dir/build.make:63: src/core/CMakeFiles/KF5ConfigCore.dir/kconfig.cpp.o] Error 1 1 warning and 1 error generated. gmake[6]: *** [src/kconfig_compiler/CMakeFiles/kconfig_compiler.dir/build.make:63: src/kconfig_compiler/CMakeFiles/kconfig_compiler.dir/kconfig_compiler.cpp.o] Error 1 gmake[5]: *** [CMakeFiles/Makefile2:3815: src/kconfig_compiler/CMakeFiles/kconfig_compiler.dir/all] Error 2 gmake[5]: *** Attente des tâches non terminées.... /Users/gilles/Devel/GIT/5.x/project/bundles/macports/temp.build/ext_kf5/ext_kconfig-prefix/src/ext_kconfig/src/core/ksharedconfig.cpp:93:14: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] foreach (auto cfg, *static_cast<const GlobalSharedConfigList*>(list)) { ^ /opt/digikam/libexec/qt5/lib/QtCore.framework/Headers/qglobal.h:1006:21: note: expanded from macro 'foreach' # define foreach Q_FOREACH ^ 1 warning generated. gmake[5]: *** [CMakeFiles/Makefile2:3638: src/core/CMakeFiles/KF5ConfigCore.dir/all] Error 2 gmake[4]: *** [Makefile:128: all] Error 2 gmake[3]: *** [ext_kf5/CMakeFiles/ext_kconfig.dir/build.make:113: ext_kf5/ext_kconfig-prefix/src/ext_kconfig-stamp/ext_kconfig-build] Error 2 gmake[2]: *** [CMakeFiles/Makefile2:1827: ext_kf5/CMakeFiles/ext_kconfig.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:1839: ext_kf5/CMakeFiles/ext_kconfig.dir/rule] Error 2 gmake: *** [Makefile:625: ext_kconfig] Error 2 KF5 has officially lost MacOS support ? If yes, Why ? Gilles Caulier With KF5 5.33, now all is compilable under MAcOS through Macports. Gilles Caulier |