Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 588234

Summary: games-board/openyahtzee - GCC version check fails with clang
Product: Gentoo Linux Reporter: Michael Palimaka (kensington) <kensington>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: wizardedit
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 588226    
Attachments: patch

Description Michael Palimaka (kensington) gentoo-dev 2016-07-07 13:25:56 UTC
Due to a change in toolchain-funcs.eclass, gcc-version now queries the active compiler instead of the active GCC. This causes a failure with CC="clang" as clang reports itself as GCC 4.2.

Please see the tracker bug for more information.
Comment 1 Austin English (RETIRED) gentoo-dev 2016-07-11 18:39:11 UTC
Created attachment 440382 [details, diff]
patch

Here's a patch for this. Changelog:

* version bump to 1.9.3
* drop no longer needed patch
* add tc-is-gcc check, warn for other compilers
* fix clang build, needs -std=c++11 in cxxflags
Comment 2 Austin English (RETIRED) gentoo-dev 2016-07-26 00:09:21 UTC
(In reply to Austin English from comment #1)
> Created attachment 440382 [details, diff] [details, diff]
> patch
> 
> Here's a patch for this. Changelog:
> 
> * version bump to 1.9.3
> * drop no longer needed patch
> * add tc-is-gcc check, warn for other compilers
> * fix clang build, needs -std=c++11 in cxxflags

https://github.com/gentoo/gentoo/commit/28de8a84a7cee0d27503e403d1dd3cd3e7129adb