[yocto] error: code model kernel does not support PIC mode

Sridhar Pitchai sridhar.pitchai at outlook.com
Wed Feb 3 17:24:59 PST 2016


Hi,I trying to write a simple recipe which will be building some static libraries. the makefile has the "-fPIC" enabled. when i try to compile it using simple yocto recipe, i am getting this error.
"| /home/sridhar/workspace/exp/yoc/build/tmp/work/corei7-64-poky-linux/sdk/1.0-r0/sdk-all-6.4.8/systems/linux/kernel/modules/shared/uk-rtrans.c:1:0: error: code model kernel does not support PIC mode|  /***********************************************************************|  ^
"
recipe:
"SUMMARY = "TEST"
LICENSE = "CLOSED"PR = "r0"PROVIDES = "pi-swos-bcm-sdk"
# BCM SDK inconsistant with parallel makePARALLEL_MAKE = ""
FILESEXTRAPATHS_prepend = "${THISDIR}:"SRC_URI = "file://6.4.8/sdk.tar.gz \    "
MAKEFLAGS_append = " -fPIC "do_compile() {    oe_runmake -C ${WORKDIR}/sdk-all-6.4.8/systems/linux/user/x86-generic_64-3_19}"
Can someone help me on this.
thanks,Sridhar Pitchai 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160203/bcab562d/attachment.html>


More information about the yocto mailing list