Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530200 - sys-apps/kmod-19 with FEATURES=ccache - x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-fdiagnostics-color=auto'
Summary: sys-apps/kmod-19 with FEATURES=ccache - x86_64-pc-linux-gnu-gcc: error: unrec...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
: 530456 531674 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-23 16:55 UTC by Marcin Kowalski
Modified: 2014-12-08 09:52 UTC (History)
4 users (show)

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


Attachments
kmod-19 build log (kmod.log,27.73 KB, text/plain)
2014-11-23 16:55 UTC, Marcin Kowalski
Details
cave --info output (info.txt,29.13 KB, text/plain)
2014-11-23 16:57 UTC, Marcin Kowalski
Details
kmod-19 build.log (build.log,38.54 KB, text/plain)
2014-11-23 19:12 UTC, Nikolaos Chatzidakis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Kowalski 2014-11-23 16:55:30 UTC
I cannot get kmod-19 to build, error log is attached.

Reproducible: Always
Comment 1 Marcin Kowalski 2014-11-23 16:55:50 UTC
Created attachment 390130 [details]
kmod-19 build log
Comment 2 Marcin Kowalski 2014-11-23 16:57:45 UTC
Created attachment 390132 [details]
cave --info output

information about system from package manager
Comment 3 Nikolaos Chatzidakis 2014-11-23 19:11:52 UTC
Same error here. (~amd64)
Comment 4 Nikolaos Chatzidakis 2014-11-23 19:12:50 UTC
Created attachment 390158 [details]
kmod-19 build.log
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-23 21:34:53 UTC
You have:

checking if x86_64-pc-linux-gnu-gcc -std=gnu99 supports flag -fdiagnostics-color=auto in envvar CFLAGS... yes

and then later:

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

With the same GCC version I get:

checking if x86_64-pc-linux-gnu-gcc -std=gnu99 supports flag -fdiagnostics-color=auto in envvar CFLAGS... no

and then it compiles fine.
Comment 6 Nikolaos Chatzidakis 2014-11-23 22:42:37 UTC
(In reply to Jeroen Roovers from comment #5)
> You have:
> 
> checking if x86_64-pc-linux-gnu-gcc -std=gnu99 supports flag
> -fdiagnostics-color=auto in envvar CFLAGS... yes
> 
> and then later:
> 
> x86_64-pc-linux-gnu-gcc: error: unrecognized command line option
> '-fdiagnostics-color=auto'
> 
> With the same GCC version I get:
> 
> checking if x86_64-pc-linux-gnu-gcc -std=gnu99 supports flag
> -fdiagnostics-color=auto in envvar CFLAGS... no
> 
> and then it compiles fine.

Is there any workaround for this? Or maybe what the cause for the problem is to solve it?
Comment 7 Nikolaos Chatzidakis 2014-11-23 22:45:02 UTC
> Is there any workaround for this? Or maybe what the cause for the problem is
> to solve it?

Omg.... Not ccache again...

efialtis nikhatzi # FEATURES="-ccache" emerge kmod
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-apps/kmod-19::gentoo
>>> Installing (1 of 1) sys-apps/kmod-19::gentoo

Without ccache, it compiles fine...
Comment 8 Chris Reffett (RETIRED) gentoo-dev Security 2014-11-24 04:42:45 UTC
Closing on behalf of ssuominen: "ccache in play, user needs to clear his cache for ccache"
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-25 08:32:47 UTC
*** Bug 530456 has been marked as a duplicate of this bug. ***
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-05 08:06:53 UTC
*** Bug 531674 has been marked as a duplicate of this bug. ***
Comment 11 Mike Dilger 2014-12-06 20:17:20 UTC
diff -rupN a/configure.ac b/configure.ac
--- a/configure.ac	2014-11-17 01:21:43.398853576 +1300
+++ b/configure.ac	2014-12-07 09:03:27.017007926 +1300
@@ -201,7 +201,6 @@ CC_CHECK_FLAGS_APPEND(with_cflags, [CFLA
 		       -Wuninitialized \
 		       -fno-common \
 		       -fdiagnostics-show-option \
-		       -fdiagnostics-color=auto \
 		       -fvisibility=hidden \
 		       -ffunction-sections \
 		       -fdata-sections])
diff -rupN a/Makefile.am b/Makefile.am
--- a/Makefile.am	2014-11-17 01:20:18.944122118 +1300
+++ b/Makefile.am	2014-12-07 09:03:47.640070285 +1300
@@ -11,6 +11,9 @@ BUILT_FILES =
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 AM_MAKEFLAGS = --no-print-directory
 
+GCC_COLORS ?= 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
+export GCC_COLORS
+
 AM_CPPFLAGS = \
 	-include $(top_builddir)/config.h \
 	-I$(top_srcdir)/libkmod \