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

Bug 588228

Summary: x11-drivers/xf86-video-virtualbox - GCC version check fails with clang
Product: Gentoo Linux Reporter: Michael Palimaka (kensington) <kensington>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED FIXED    
Severity: normal CC: masterzorag, wizardedit
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 588226    
Attachments: only check gcc when cc is gcc

Description Michael Palimaka (kensington) gentoo-dev 2016-07-07 13:18:21 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 17:06:56 UTC
Created attachment 440372 [details, diff]
only check gcc when cc is gcc

This fixes the issue. After this, there are later clang issues that deserves its own bug.
Comment 2 Austin English (RETIRED) gentoo-dev 2016-07-26 00:11:08 UTC
@masterzorag, could you please ack the attached patch? It's already sat for two weeks, but I just noticed you weren't CC'ed, so I'll hold off for a while longer :)
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-20 18:48:26 UTC
Should be fixed as we sed away the gcc version check.