* compiling package with bitbake with CROSS_COMPILE flag
@ 2012-08-27 18:10 Bodke, Kishore K
2012-09-06 9:56 ` Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Bodke, Kishore K @ 2012-08-27 18:10 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
Hi
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?
Thanks
Kishore.
[-- Attachment #2: Type: text/html, Size: 3196 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compiling package with bitbake with CROSS_COMPILE flag
2012-08-27 18:10 compiling package with bitbake with CROSS_COMPILE flag Bodke, Kishore K
@ 2012-09-06 9:56 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2012-09-06 9:56 UTC (permalink / raw)
To: Bodke, Kishore K; +Cc: openembedded-core
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-06 10:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-27 18:10 compiling package with bitbake with CROSS_COMPILE flag Bodke, Kishore K
2012-09-06 9:56 ` Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox