Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530456 - sys-apps/kmod-19 fails to compile with gcc-4.8.3 because of unrecognized command line option '-fdiagnostics-color=auto'
Summary: sys-apps/kmod-19 fails to compile with gcc-4.8.3 because of unrecognized comm...
Status: RESOLVED DUPLICATE of bug 530200
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-24 20:03 UTC by drhopfen
Modified: 2014-11-25 08:33 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,19.17 KB, text/plain)
2014-11-24 20:04 UTC, drhopfen
Details
build.log (build.log,51.01 KB, text/plain)
2014-11-24 20:05 UTC, drhopfen
Details
config.log (config.log,69.59 KB, text/plain)
2014-11-24 21:14 UTC, drhopfen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description drhopfen 2014-11-24 20:03:53 UTC
When trying to emerge sys-apps/kmod-19 it fails in the configuration phase with the message:

x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-fdiagnostics-color=auto'

This seems to be an option introduced by gcc-4.9 which is masked.

Reproducible: Always

Steps to Reproduce:
1. emerge sys-apps/kmod:19

Actual Results:  
Build fails while running ./configure

Expected Results:  
compilation and installation of kmod
Comment 1 drhopfen 2014-11-24 20:04:52 UTC
Created attachment 390218 [details]
emerge --info
Comment 2 drhopfen 2014-11-24 20:05:51 UTC
Created attachment 390220 [details]
build.log
Comment 3 Ben Kohler gentoo-dev 2014-11-24 20:17:13 UTC
checking if x86_64-pc-linux-gnu-gcc -std=gnu99 supports flag -fdiagnostics-color=auto in envvar CFLAGS... yes


Can you also attach config.log so we can see what's going on with this test?  On my gcc-4.8.3 setup, I get "... no", I wonder why you get "... yes"
Comment 4 drhopfen 2014-11-24 21:14:03 UTC
Created attachment 390226 [details]
config.log
Comment 5 Ben Kohler gentoo-dev 2014-11-24 21:39:31 UTC
This is a ccache problem, when ccache is enabled that test gives a bogus result.
Comment 6 drhopfen 2014-11-24 21:46:34 UTC
Thank you, emerging without ccache solved the problem. Should I file this as a ccache bug?
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-25 08:32:47 UTC

*** This bug has been marked as a duplicate of bug 530200 ***