Red Hat Bugzilla – Bug 164041
External module won't compile by earlier gcc versions
Last modified: 2015-01-04 17:21:00 EST
Description of problem:
During extended compilation with earlier gcc version like gcc-3.2 there's a
compilation error 'cc1: Invalid option tune=pentium4'.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Make sure you have an older compiler version and some module source with path
3.make M=`pwd` CC=gcc-older-version -C /lib/modules/`uname -r`/build/
cc1: Invalid option tune=pentium4
Created attachment 117098 [details]
File in question is arch/i386/Makefile
The patch looks reasonable, but please remember that it's completely wrong
to attempt to build an external module with a compiler different than one
used for the kernel. You must not override CC setting.
There could be many circumstances and it is not necessarily critical to
recompile the kernel every now and then. Some minor compiler update might
happen. Or Binutils. Some binaries used by module could be precompiled by
different compiler. So what. There's another posibility if one gets FC4 kernel
for a ride/component test. It should be clear that there are cases when using
different compiler in not completely wrong.
Whatever. It's irrelevant to the bug itself. I could restate the problem as one
wouldn't be able to compile FC4 kernel source by older compilers.
fixed in cvs