Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Plasma-Desktop 5.4.3 - 'emake failed'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
void_effect
n00b
n00b


Joined: 16 Nov 2015
Posts: 3

PostPosted: Mon Nov 16, 2015 4:11 pm    Post subject: [solved] Plasma-Desktop 5.4.3 - 'emake failed' Reply with quote

Hello!

The last time I did an "emerge --sync" followed by an "emerge -uND --with-bdeps=y @world" I was told to upgrade plasma-desktop-5.4.2 to plasma-desktop-5.4.3. The former one worked quite well - at least from my point of view, for I merely want to try out the plasma-environment. The latter one - well, I ran into an issue I couldn't resolve until now, so a litte bit of help would be nice :)


Code:
FEATURES="-fail-clean" MAKEOPTS='-j1' emerge -uND --with-bdeps=y @world


[ 29%] Building CXX object kcms/keyboard/CMakeFiles/kcm_keyboard.dir/preview/geometry_parser.cpp.o
cd /var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3_build/kcms/keyboard && /usr/bin/x86_64-pc-linux-gnu-g++  -DHAVE_XCB_XINPUT=1 -DHAVE_XINPUT_AND_DEVICE_NOTIFY=1 -DKCOREADDONS_LIB -DKGUIADDONS_LIB -DNEW_GEOMETRY=1 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -DTRANSLATION_DOMAIN=\"kcmkeyboard\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkcm_keyboard_EXPORTS   -DQT_NO_DEBUG -DNDEBUG -march=core2 -O3 -pipe -fomit-frame-pointer  -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 -I/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3_build/kcms/keyboard -I/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3/kcms/keyboard -I/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3_build -I/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3/kcms/keyboard/preview -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtXml -isystem /usr/include/KF5/KCMUtils -isystem /usr/include/KF5 -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KConfigGui -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KJobWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/KF5/KCompletion -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/Plasma -isystem /usr/include/KF5/KPackage -isystem /usr/include/KF5/KXmlGui -isystem /usr/include/KF5/KDELibs4Support -isystem /usr/include/KF5/KDELibs4Support/KDE -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/KF5/KCrash -isystem /usr/include/KF5/KIOFileWidgets -isystem /usr/include/KF5/KBookmarks -isystem /usr/include/KF5/KItemViews -isystem /usr/include/KF5/Solid -isystem /usr/include/KF5/KNotifications -isystem /usr/include/KF5/KIconThemes -isystem /usr/include/KF5/KGuiAddons -isystem /usr/include/KF5/KUnitConversion -isystem /usr/include/KF5/KTextWidgets -isystem /usr/include/KF5/SonnetUi -isystem /usr/include/KF5/KParts    -fPIC -fexceptions -o CMakeFiles/kcm_keyboard.dir/preview/geometry_parser.cpp.o -c /var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3/kcms/keyboard/preview/geometry_parser.cpp
x86_64-pc-linux-gnu-g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
kcms/keyboard/CMakeFiles/kcm_keyboard.dir/build.make:386: recipe for target 'kcms/keyboard/CMakeFiles/kcm_keyboard.dir/preview/geometry_parser.cpp.o' failed
make[2]: *** [kcms/keyboard/CMakeFiles/kcm_keyboard.dir/preview/geometry_parser.cpp.o] Error 4
make[2]: *** Deleting file 'kcms/keyboard/CMakeFiles/kcm_keyboard.dir/preview/geometry_parser.cpp.o'
make[2]: Leaving directory '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3_build'
CMakeFiles/Makefile2:1311: recipe for target 'kcms/keyboard/CMakeFiles/kcm_keyboard.dir/all' failed
make[1]: *** [kcms/keyboard/CMakeFiles/kcm_keyboard.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3_build'
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: kde-plasma/plasma-desktop-5.4.3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=kde-plasma/plasma-desktop-5.4.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-plasma/plasma-desktop-5.4.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3_build'
 * S: '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3'

>>> Failed to emerge kde-plasma/plasma-desktop-5.4.3, Log file:

>>>  '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/temp/build.log'

 * Messages for package kde-plasma/plasma-desktop-5.4.3:

 * ERROR: kde-plasma/plasma-desktop-5.4.3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=kde-plasma/plasma-desktop-5.4.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-plasma/plasma-desktop-5.4.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3_build'
 * S: '/var/tmp/portage/kde-plasma/plasma-desktop-5.4.3/work/plasma-desktop-5.4.3'



Can someone give me an advise on how to resolve this issue? Things I've tried so far:
- re-emerge kcmutils (it's the only "kcm"-related item which is installed)
- re-emerge plasma-desktop 5.4.3, obviously without success
- masking anything above plasma-desktop 5.4.2 --> can't emerge plasma-meta (which will be my final goal)
- checked gcc-config (4.9.3 is the only installed and active version)
- emerge --sync; eix-sync
- emaint --fix cleanresume
- emerge --oneshot --update portage
- emerge -uND --with-bdeps=y --backtrack=50 @world
- emerge @module-rebuild
- emerge @preserved-rebuild
- perl-cleaner and python-updater
- emerge --depclean
- revdep-rebuild
- emerge @preserved-rebuild
- eclean --deep distfiles
- env-update


--> Don't know (or didn't knew? ;) ) what to do anymore :)


Last edited by void_effect on Sat Nov 21, 2015 11:15 am; edited 1 time in total
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3577
Location: Germany

PostPosted: Tue Nov 17, 2015 6:54 pm    Post subject: Reply with quote

Hello void_effect :)

void_effect wrote:
Code:
x86_64-pc-linux-gnu-g++: internal compiler error: Killed (program cc1plus)

This means mostly, is not enough memory available.
(the kernel kills your compiler).

(Please excuse my bad english)
Back to top
View user's profile Send private message
void_effect
n00b
n00b


Joined: 16 Nov 2015
Posts: 3

PostPosted: Wed Nov 18, 2015 8:30 pm    Post subject: Reply with quote

Josef.95 wrote:
(Please excuse my bad english)


Hehe, English isn't my native language, too :)

In any case, thanks a lot for your hint. But this leads me to another problem: My system is limited to only 2 gb RAM and a small SSD with a limited capacity of 16gb, so a large amount of swap space isn't an option. Is it possible to somehow tweak gcc's settings, so it doesn't allocate huge amounts of RAM?
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3577
Location: Germany

PostPosted: Thu Nov 19, 2015 4:03 pm    Post subject: Reply with quote

Hm, try without "-pipe" in your CFLAGS
Code:
MAKEOPTS="-j1" CFLAGS="-march=native -O2" emerge -av1 kde-plasma/plasma-desktop
Back to top
View user's profile Send private message
void_effect
n00b
n00b


Joined: 16 Nov 2015
Posts: 3

PostPosted: Sat Nov 21, 2015 11:14 am    Post subject: Reply with quote

After unmerging everything except the base system, bootstrapping/recompiling the whole system and a complete overhaul of the kernel-config (4.3.0) I was able to finish the compiling process of plasma-meta (5.4.3). The whole process took about 4 days of compile time (1,4GHz Penryn Single Core). I don't know what went wrong the first time, because I've already bootstrapped the system - maybe the kernel was misconfigured, because I've observed very high kworker-loads (100% while the rest of the system was idle).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum