Bug#878677: nvidia-kernel-dkms:amd64: conftest fails with CONFIG_GCC_PLUGINS

Luca Boccassi bluca at debian.org
Sun Oct 15 21:19:39 UTC 2017


On Sun, 2017-10-15 at 19:34 +0200, Tomas Janousek wrote:
> Package: nvidia-kernel-dkms
> Version: 375.82-4
> Severity: normal
> Tags: patch
> 
> I have a vanilla kernel with CONFIG_GCC_PLUGINS,
> CONFIG_GCC_PLUGIN_STRUCTLEAK
> and CONFIG_GCC_PLUGIN_RANDSTRUCT and conftest fails because
> KBUILD_CFLAGS
> contains the following:
> 
>     -fplugin=./scripts/gcc-plugins/structleak_plugin.so
> -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so
> 
> but conftest runs with a different pwd than the module build itself.
> 
> I'm attaching a patch inspired by
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.g
> it/tree/scripts/Kbuild.include?h=v4.13.7#n118
> that fixes the build.

It seems a simple enough patch so I've committed it to SVN, it will be
included in the next upload. Thanks.

Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20171015/76cdf02f/attachment.sig>


More information about the pkg-nvidia-devel mailing list