Bug#908568: nvidia-driver: build error

Russ Allbery rra at debian.org
Wed Sep 12 03:15:25 BST 2018

Vincent Lefevre <vincent at vinc17.net> writes:
> On 2018-09-11 15:29:02 -0700, Russ Allbery wrote:
>> Vincent Lefevre <vincent at vinc17.net> writes:

>>> This would mean that a breakage is possible after any patch (in
>>> particular with those "Update to SVN..." in the changelog).  Thus this
>>> means that the kernel module build system must check that the GCC
>>> Debian package version number matches the one used to build the
>>> kernel. For sid, GCC is often not in sync with the one used to build
>>> the kernel. This is a really big problem.

>> I don't think it's an NVIDIA-specific problem, though, right?  Doesn't
>> this happen with any kernel module build?

> I assume that this depends on which features of the interface are
> used.

Sorry, I should have checked before replying.  This is indeed an
NVIDIA-specific check in conftest.sh, not a general Linux issue.  It's not
doing any complicated logic; it's just parsing the version string and
aborting the compilation if it doesn't match.

If you set IGNORE_CC_MISMATCH=1 in the environment before installing the
package, does everything build and work correctly?

Apparently fglrx had a similar check, and the package maintainers chose to
patch it out.

Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>

More information about the pkg-nvidia-devel mailing list