Intel i40e driver link
Ubuntu 18.04.1 ISO link
Kernel: Linux ubuntu 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Make: GNU Make 4.1
GCC: Thread model: posix --------gcc version 7.3.0(Ubuntu 7.3.0-16ubuntu3)
When I ran “make” to install i40e driver,I get the error “cc1: error: code model kernel does not support PIC mode”
PIC mode error.JPG
Then I searched the solution on the Internet, I tried the way as follow that looks like useful for others,
"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
-fno-PIE.JPG
But at last, new errors happen, I don’t know how to solve it.
1.J
Please help me!!!
Bookmarks