kwin: build failure with gcc-4.9.0
Treeve Jelbert
treeve at scarlet.be
Mon Apr 28 19:41:16 UTC 2014
I recently installed gcc-4.9.0
kwin fails to compile with the following error:
FAILED: /var/lib/sorcery/build/c++ -DKCOREADDONS_LIB -DQT_CONCURRENT_LIB -
DQT_CORE_LIB -DQT_DBUS_LIB -DQ
T_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -
DQT_QML_LIB -DQT_QUICK_LIB -DQT
_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=500 -Dkwi
n4_effect_builtins_EXPORTS -march=native -mtune=native -m64 -pipe -ffast-math -
funroll-loops -O3 -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 -O3
-DNDEBUG -fPIC -fvisibility
=hidden -fvisibility-inlines-hidden -Ieffects -I/var/git/plasma-ws/kwin/effects
-I/var/git/plasma-ws/kwin/
tabbox -I/var/git/plasma-ws/kwin/libkdecorations -I/var/git/plasma-
ws/kwin/libkwineffects -I. -Ilibkwineff
ects -Ilibkdecorations -I/var/git/plasma-ws/kwin -isystem /opt/qt5/include -
isystem /opt/qt5/include/QtDBu
s -isystem /opt/qt5/include/QtCore -isystem /opt/qt5/mkspecs/linux-g++ -
isystem /opt/qt5/include/QtWidgets
-isystem /opt/qt5/include/QtGui -isystem /opt/qt5/include/QtX11Extras -
isystem /opt/qt5/include/KF5/KConf
igCore -isystem /opt/qt5/include/KF5 -isystem /opt/qt5/include/KF5/KService -
I/opt/qt5/include/KF5/KCoreAd
dons -isystem /opt/qt5/include/KF5/KWindowSystem -isystem
/opt/qt5/include/KF5/KConfigGui -isystem /opt/qt
5/include/QtXml -isystem /opt/qt5/include/KF5/KConfigWidgets -isystem
/opt/qt5/include/KF5/KCodecs -isyste
m /opt/qt5/include/KF5/KWidgetsAddons -isystem /opt/qt5/include/KF5/KAuth -
isystem /opt/qt5/include/KF5/KG
lobalAccel -isystem /opt/qt5/include/KF5/KI18n -isystem
/opt/qt5/include/KF5/KF5 -isystem /opt/qt5/include/KF5/KF5/Plasma -isystem
/opt/qt5/include/KF5/KIconThemes -isystem /opt/qt5/include/QtConcurrent -
isystem /opt/qt5/include/QtQuick -isystem /opt/qt5/include/QtQml -
I/opt/qt5/include/QtNetwork
-MMD -MT effects/CMakeFiles/kwin4_effect_builtins.dir/effect_builtins.cpp.o -MF
effects/CMakeFiles/kwin4_effect_builtins.dir/effect_builtins.cpp.o.d -o
effects/CMakeFiles/kwin4_effect_builtins.dir/effect_builtins.cpp.o -c
/var/git/plasma-ws/kwin/effects/effect_builtins.cpp
In file included from /var/git/plasma-ws/kwin/effects/effect_builtins.cpp:20:0:
/var/git/plasma-ws/kwin/effects/effect_builtins.h:89:10: error: 'function' in
namespace 'std' does not name a template type
std::function<Effect*()> createFunction;
^
/var/git/plasma-ws/kwin/effects/effect_builtins.h:90:10: error: 'function' in
namespace 'std' does not name a template type
std::function<bool()> supportedFunction;
^
/var/git/plasma-ws/kwin/effects/effect_builtins.h:91:10: error: 'function' in
namespace 'std' does not name a template type
std::function<bool()> enabledFunction;
^
I tried adding '#include <functional>' to toplevel.h.
This fixes this problem but there are then others.
A full compile log is attached
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kwin-5.x.bz2
Type: application/x-bzip
Size: 11413 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140428/f4adc772/attachment-0001.bz2>
More information about the Plasma-devel
mailing list