Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587582 - dev-qt/qt*:5 fails with "GCC 4.5 or later required" when building with clang
Summary: dev-qt/qt*:5 fails with "GCC 4.5 or later required" when building with clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-30 13:20 UTC by Malte E.
Modified: 2016-07-07 21:41 UTC (History)
1 user (show)

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 Malte E. 2016-06-30 13:20:37 UTC
When I try to emerge qtscript 5.6.1, it fails as follows:

>>> Emerging (1 of 1) dev-qt/qtscript-5.6.1::gentoo
 * qtscript-opensource-src-5.6.1-1.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                      [ ok ]
>>> Unpacking source...
 * GCC version 4.5 or later is required to build this package
 * ERROR: dev-qt/qtscript-5.6.1::gentoo failed (unpack phase):
 *   GCC 4.5 or later required
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_unpack
 *   environment, line 2777:  Called qt5-build_src_unpack
 *   environment, line 2446:  Called die
 * The specific snippet of code:
 *               die "GCC 4.${min_gcc4_minor_version} or later required";
 * 
 * If you need support, post the output of `emerge --info '=dev-qt/qtscript-5.6.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-qt/qtscript-5.6.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-qt/qtscript-5.6.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtscript-5.6.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-qt/qtscript-5.6.1/work'
 * S: '/var/tmp/portage/dev-qt/qtscript-5.6.1/work/qtscript-opensource-src-5.6.1'

gcc 4.9.3 is installed, so this must be a faulty check. Also, this seems to be in the ebuild, so I am filing the bug with Gentoo.

Reproducible: Always
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-06-30 14:31:07 UTC
4.9.3 may be installed, but what is the active compiler?
Comment 2 Malte E. 2016-06-30 23:06:53 UTC
GCC 4.9.3 and clang 3.7.1-r100 are the only two compilers installed. I'm not using clang for anything other than llvm itself.
Comment 3 Malte E. 2016-06-30 23:15:59 UTC
it appears I was wrong. I was indeed using clang to compile, for whatever reason. Sorry about that.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2016-06-30 23:34:56 UTC
Reopening, we shouldn't reject clang.

I already knew about this limitation, but was waiting for something like https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/toolchain-funcs.eclass?id=2fea606eba41d9246f510814ce833879368bd835 to be implemented.