[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Update to Sid, and cannot compile Nvidia module; PIC mode?



Hey Dirk.  Thank you!  That worked, it compiles!  And I don't have to get my hands dirty with a patch. :)

On Fri, Oct 28, 2016 at 9:11 PM, Dirk Laebisch <dirk@laebisch.de> wrote:
> Anyone else run into this on Sid very recently?  Any hints or pointers?

Yup.
Providing some compile flags in:
/usr/src/linux/Makefile
around line 614 fixed it for me.

 614 # force no-pie for distro compilers that enable pie by default
 615 KBUILD_CFLAGS += $(call cc-option, -fno-pie)
 616 KBUILD_CFLAGS += $(call cc-option, -no-pie)
 617 KBUILD_AFLAGS += $(call cc-option, -fno-pie)
 618 KBUILD_CPPFLAGS += $(call cc-option, -fno-pie)

After that, dkms succeeded and no further problems ... so far.

Regards
Dirk



Reply to: