Intel i40e driver link
Ubuntu 18.04.1 ISO link
when I ran “make” to install i40e driver,I get the error “cc1: error: code model kernel does not support PIC mode”
Then I searched the solution on the Internet, I tried the way as follow that looks like useful,
vim /usr/src/linux-headers-4.15.0-29-generic/arch/x86/Makefile
// adding explicit -fno-PIE to KBUILD_CFLAGS in the kernel headers Makefile.
KBUILD_CFLAGS += -mno-mmx -mno-sse -mno-sse2 -mno-3dnow
KBUILD_CFLAGS += $(call cc-option,-mno-avs,) -fno-PIE // add in this line
But at last, new errors happen, I don’t know how to solve it.
Please help me!!!