[yocto] error: code model kernel does not support PIC mode
Sridhar Pitchai
sridhar.pitchai at outlook.com
Wed Feb 3 17:45:37 PST 2016
SDK looks fine. i was able to compile with it with direct make on my local system.
make -C /path/to/sdk/systems/linux/user/x86-generic_64-3_19
this works just fine. I am trying to make my image through yocto recipe and i am facing this issue.
infact doing a make @
build/tmp/work/............./system/linux/user/x86-generic_64-3_19
works as well.
but if i do bitbake -v sdk i am facing this failure.
What am i missing ?
Subject: Re: [yocto] error: code model kernel does not support PIC mode
From: raj.khem at gmail.com
Date: Wed, 3 Feb 2016 17:38:16 -0800
CC: yocto at yoctoproject.org
To: sridhar.pitchai at outlook.com
talk to folks whoever is providing you that SDK
On Feb 3, 2016, at 5:37 PM, Sridhar Pitchai <sridhar.pitchai at outlook.com> wrote:Sure, i will get rid of it. But i get the same error without it as well. I added it to see if this can help get the compile through. but it didn't.
What am i missing here. the MACHINE is "qemux84-64"
Subject: Re: [yocto] error: code model kernel does not support PIC mode
From: raj.khem at gmail.com
Date: Wed, 3 Feb 2016 17:30:38 -0800
CC: yocto at yoctoproject.org
To: sridhar.pitchai at outlook.com
On Feb 3, 2016, at 5:24 PM, Sridhar Pitchai <sridhar.pitchai at outlook.com> wrote: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 “
why do you need this ? get rid of it. Atleast for kernel module part.
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-- _______________________________________________yocto mailing listyocto at yoctoproject.orghttps://lists.yoctoproject.org/listinfo/yocto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160203/f8395333/attachment.html>
More information about the yocto
mailing list