Ubuntu: error: code model kernel does not support PIC mode in Ubuntu 17.10


I am a new user on ubuntu platform. I am trying to install an openvswitch on ubuntu 17.10 using kernel 4.3.4-040304; and during configuration i have observed below error. Can anyone please help me in troubleshooting this error, as i am stuck on this step since last 3 days.

root@syed-Latitude-E5410:/home/syed# cd /usr/src/openvswitch  root@syed-Latitude-E5410:/usr/src/openvswitch# make && make install  make  all-recursive  make[1]: Entering directory '/usr/src/openvswitch'  Making all in datapath  make[2]: Entering directory '/usr/src/openvswitch/datapath'  Making all in linux  make[3]: Entering directory '/usr/src/openvswitch/datapath/linux'  make -C /lib/modules/4.3.4-040304-generic/build M=/usr/src/openvswitch/datapath/linux modules  make[4]: Entering directory '/usr/src/linux-headers-4.3.4-040304-generic'  arch/x86/Makefile:133: stack-protector enabled but compiler support broken  Makefile:659: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler    CC [M]  /usr/src/openvswitch/datapath/linux/actions.o  cc1: error: code model kernel does not support PIC mode  scripts/Makefile.build:258: recipe for target '/usr/src/openvswitch/datapath/linux/actions.o' failed  make[5]: *** [/usr/src/openvswitch/datapath/linux/actions.o] Error 1  Makefile:1378: recipe for target '_module_/usr/src/openvswitch/datapath/linux' failed  make[4]: *** [_module_/usr/src/openvswitch/datapath/linux] Error 2  make[4]: Leaving directory '/usr/src/linux-headers-4.3.4-040304-generic'  Makefile.main:71: recipe for target 'default' failed  make[3]: *** [default] Error 2  make[3]: Leaving directory '/usr/src/openvswitch/datapath/linux'  Makefile:557: recipe for target 'all-recursive' failed  make[2]: *** [all-recursive] Error 1  make[2]: Leaving directory '/usr/src/openvswitch/datapath'  Makefile:5408: recipe for target 'all-recursive' failed  make[1]: *** [all-recursive] Error 1  make[1]: Leaving directory '/usr/src/openvswitch'  Makefile:3153: recipe for target 'all' failed  make: *** [all] Error 2  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »