As documented[1], KDE Frameworks only requires gcc 4.5 to compile. While the rest of KDE may require a newer version, it should be possible to install the frameworks libraries with just 4.5 (or it would be a bug with the library). Would it be possible to adjust the eclasses to allow compiling with older versions of gcc? The error I got was: >>> Emerging (1 of 2) kde-frameworks/kconfig-9999 from kde * ERROR: kde-frameworks/kconfig-9999::kde failed (setup phase): * Sorry, but gcc-4.8 or later is required for KDE 5. * * Call stack: * ebuild.sh, line 93: Called pkg_setup * ebuild.sh, line 317: Called kde5_pkg_setup * kde5.eclass, line 250: Called die * The specific snippet of code: * [[ $(gcc-major-version) -lt 4 ]] || \ * ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]] ) \ * && die "Sorry, but gcc-4.8 or later is required for KDE 5." * * If you need support, post the output of `emerge --info '=kde-frameworks/kconfig-9999::kde'`, * the complete build log and the output of `emerge -pqv '=kde-frameworks/kconfig-9999::kde'`. * The complete build log is located at '/var/tmp/portage/kde-frameworks/kconfig-9999/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/kde-frameworks/kconfig-9999/temp/die.env'. * Working directory: '/usr/lib64/portage/pym' * S: '/var/tmp/portage/kde-frameworks/kconfig-9999/work/kconfig-9999' [1] https://community.kde.org/Frameworks/Policies#Frameworks_compiler_requirements_and_C.2B.2B11
Just out of interest, is this because it's posing some issue or because it's not strictly correct?
I was more thinking that if someone wanted to develop against Frameworks, they would currently have to update their compiler when they wouldn't have too. Since 4.8 isn't stable yet, I figured it may happen. Especially if a user wants to run just a single application that has been ported. If the KDE team in Gentoo prefer to keep it all consistent and require 4.8 across the board, that is fine too.
We decided in the kde herd meeting that we only support >=gcc-4.8 in kde5*.eclass.
Further considering wider feedback after the original resolution of this bug, I've decided to go ahead with the change as it will be useful for a future enhancement reducing the number of gcc version checks performed. https://gitweb.gentoo.org/proj/kde.git/commit/?id=53fadb5b122aa19cadcacf613838aed4b2236d53