[OE-core] compiling package with bitbake with CROSS_COMPILE flag
Paul Eggleton
paul.eggleton at linux.intel.com
Thu Sep 6 09:56:31 UTC 2012
On Monday 27 August 2012 18:10:12 Bodke, Kishore K wrote:
> I hope I am asking this question to the right mailing list, since it is
> related to meta modules classes.
>
> I have a package trying to compile using bitbake.
>
> When you inherit module, I think CROSS_COMPILE option is enabled by
> module-base.bbclass.
>
> I get below error because of this CROSS_COMPILE flag.
>
> error: inlining failed in call to always_inline 'icp_adf_pollQueue':
> function body not available
>
> I disabled the flag in my recipe by export CROSS_COMPILE="".
> Then it compiled fine.
>
> My question is
> what this CROSS_COMPILE flag does when bitbake runs? Does it set any extra
> compiler flags, which is not accepted by my package I am building using
> bitbake? How do you avoid this inlining issue when CROSS_COMPILE flag is
> enabled?
CROSS_COMPILE is set in order for the kernel module makefiles to be able to
determine the correct prefix for the compilation tools. If it isn't set I think
you would potentially be using the wrong compiler and tools for the target
platform.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the Openembedded-core
mailing list