Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 511570 - [kde overlay] KDE Frameworks requires gcc 4.5, not 4.8
Summary: [kde overlay] KDE Frameworks requires gcc 4.5, not 4.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-26 23:10 UTC by Matthew Dawson
Modified: 2016-04-15 19:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Dawson 2014-05-26 23:10:11 UTC
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
Comment 1 Michael Palimaka (kensington) gentoo-dev 2014-05-27 11:26:40 UTC
Just out of interest, is this because it's posing some issue or because it's not strictly correct?
Comment 2 Matthew Dawson 2014-05-27 14:03:14 UTC
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.
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2014-08-10 20:28:51 UTC
We decided in the kde herd meeting that we only support >=gcc-4.8 in kde5*.eclass.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2016-04-15 19:03:56 UTC
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