KDevplatform suddently stopped to compile

Kevin Funk kfunk at kde.org
Sat Jul 8 22:56:30 UTC 2017


On Saturday, 8 July 2017 12:16:04 CEST Alexander Zhigalin wrote:
> Hello!
> A few days ago KDevplatform stopped to compile on my KDE Neon due to a
> linking error caused by: 
> K_PLUGIN_FACTORY_WITH_JSON(KDevWelcomePagePluginFactory,
> "kdevwelcomepage.json", registerPlugin<KDevWelcomePagePlugin>();) 
> using namespace KDevelop;
>  
> namespace {
> WelcomePageWidget* createWelcomePageWidget(QWidget* parent)
> {
>     // don't attempt to load any QML if CPU doesn't have SSE2 support (cf.
> bug 381999) #if defined(Q_OS_LINUX) && (defined(Q_CC_GNU) ||
> (defined(Q_CC_CLANG) && __clang_major__ >= 3 && __clang_minor__ >= 7)) if
> (!__builtin_cpu_supports("sse2")) {
>         qWarning() << "Welcome Page won't load any QML -- lacking SSE2
> support on this processor"; return nullptr;
>     }
> #endif
>  
>     return new WelcomePageWidget({}, parent);
> }
> }
>  
> Which results in:
>  
> CMakeFiles/kdevwelcomepage.dir/welcomepageplugin.cpp.o: In function
> `KDevWelcomePagePlugin::KDevWelcomePagePlugin(QObject*, QList<QVariant>
> const&)': welcomepageplugin.cpp:(.text+0x199): undefined reference to
> `__cpu_model' collect2: error: ld returned 1 exit status

See:
  https://bugs.kde.org/show_bug.cgi?id=382107

Cheers,
Kevin

> I have found this https://bugs.llvm.org/show_bug.cgi?id=25510
> 2 years old Mac OS bug fixed 1 year ago...
> Can it be?
> I am using cmake version 3.5.1 and GCC version 5.4.0
>  
>  
> -- 
> Alexander Zhigalin - DevOps
>  


-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org


More information about the KDevelop-devel mailing list