View previous topic :: View next topic |
Author |
Message |
msst Apprentice
Joined: 07 Jun 2011 Posts: 259
|
Posted: Thu Jan 05, 2017 8:20 pm Post subject: knotes-16.12.0-r1 fails to build |
|
|
Currently installed:
knotes-16.12.0
some kde-apps have 16.12.0-r1 versions that upgraded correctly, some only have 16.12.0 version currently available
kde-plasma 5.8.5
kde-frameworks 5.29.0 some -r1
Failing to build knotes-16.12.0-r1:
Code: | [ 19%] Building CXX object noteshared/src/CMakeFiles/notesharedprivate.dir/noteutils.cpp.o
cd /var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0_build/noteshared/src && /usr/bin/x86_64-pc-linux-gnu-g++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -DTRANSLATION_DOMAIN=\"libnoteshared\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dnotesharedprivate_EXPORTS -I/var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0_build/noteshared/src -I/var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0/noteshared/src -I/var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0 -I/var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0_build -isystem /usr/include/KF5/AkonadiCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KItemModels -isystem /usr/include/qt5/QtGui -isystem /usr/include/KF5/KDNSSD -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/KF5/PimCommon -isystem /usr/include/KF5/pimcommon -isystem /usr/include/KF5/KIMAP -isystem /usr/include/KF5/KMime -isystem /usr/include/KF5/AkonadiWidgets -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/KF5/KContacts -isystem /usr/include/KF5/Akonadi/Contact -isystem /usr/include/KF5/akonadi/contact -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KConfigGui -isystem /usr/include/qt5/QtXml -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/Akonadi/Notes -isystem /usr/include/KF5/akonadi/notes -isystem /usr/include/KF5/KPIMTextEdit -isystem /usr/include/KF5/KCompletion -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KI18n -DQT_NO_DEBUG -DNDEBUG -O2 -march=native -fomit-frame-pointer -pipe -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 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -fPIC -std=gnu++11 -o CMakeFiles/notesharedprivate.dir/noteutils.cpp.o -c /var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0/noteshared/src/noteutils.cpp
In file included from /usr/include/KF5/AkonadiCore/exception.h:28:0,
from /usr/include/KF5/AkonadiCore/item.h:26,
from /usr/include/KF5/AkonadiCore/Item:1,
from /var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0/noteshared/src/noteutils.h:23,
from /var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0/noteshared/src/noteutils.cpp:19:
/usr/include/KF5/AkonadiCore/std_exception.h:1:75: fatal error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/exception: No such file or directory
#include "/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/exception"
^
compilation terminated.
noteshared/src/CMakeFiles/notesharedprivate.dir/build.make:230: recipe for target 'noteshared/src/CMakeFiles/notesharedprivate.dir/noteutils.cpp.o' failed
make[2]: *** [noteshared/src/CMakeFiles/notesharedprivate.dir/noteutils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0_build'
CMakeFiles/Makefile2:561: recipe for target 'src/kontactplugin/CMakeFiles/kcm_knotessummary.dir/all' failed
make[1]: *** [src/kontactplugin/CMakeFiles/kcm_knotessummary.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0_build'
CMakeFiles/Makefile2:170: recipe for target 'noteshared/src/CMakeFiles/notesharedprivate.dir/all' failed
make[1]: *** [noteshared/src/CMakeFiles/notesharedprivate.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0_build'
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
* ERROR: kde-apps/knotes-16.12.0-r1::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=kde-apps/knotes-16.12.0-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=kde-apps/knotes-16.12.0-r1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/kde-apps/knotes-16.12.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/kde-apps/knotes-16.12.0-r1/temp/environment'.
* Working directory: '/var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0_build'
* S: '/var/tmp/portage/kde-apps/knotes-16.12.0-r1/work/knotes-16.12.0'
|
Does anyone else have this? Any idea what is going wrong? I am in the moment looking at this strange mix of 16.12.0 and 16.12.0-r1 packages and am wondering if that is the cause. Aktually this is a kf5 package (akonadi) that is only available in 16.12.0 version, is that the problem? If so this is the rollout of an incomplete update?
What is also weird is the missing file
"#include "/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/exception"
This system is on gcc-4.9.4 and gcc-config correctly reports this. Somehow this include links to the wrong version... |
|
Back to top |
|
|
msst Apprentice
Joined: 07 Jun 2011 Posts: 259
|
Posted: Thu Jan 05, 2017 8:31 pm Post subject: |
|
|
Ok, I good lucky and found the work-around:
emerge -1av akonadi*
recompiling all akonadi packages fixed the problem. Somehow something hardcoded the old gcc version path into it? And portage did not recognize it has to rebuild akonadi on its own. Weird. But if someone has the same problem - recompile all akonadi packages after any gcc update and it should be fixed. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8935
|
Posted: Fri Jan 06, 2017 1:23 am Post subject: |
|
|
Thanks for bringing this to my attention. That's a rather unfortunate upstream workaround... |
|
Back to top |
|
|
|