Results 1 to 2 of 2

Thread: There are errors when I run “make” to install driver of i40e on the Ubuntu 18.04.1(Se

  1. #1
    Join Date
    Nov 2018
    Beans
    2

    There are errors when I run “make” to install driver of i40e on the Ubuntu 18.04.1(Se

    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!!!
    Last edited by yu1yu1yu1; November 19th, 2018 at 10:05 AM.

  2. #2
    Join Date
    Nov 2018
    Beans
    2

    Re: There are errors when I run “make” to install driver of i40e on the Ubuntu 18.04.

    Is there anyone hit this similarproblem?

    My dear friends, could you please give me some tips on that? I would be really benefited if you could give me some suggestions… Thanks for your kind help in advance, guys!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •