[meta-freescale] Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now!

ad me adolphs at gmail.com
Tue Mar 31 08:26:14 PDT 2015


On Tue, Mar 31, 2015 at 8:02 AM, ad me <adolphs at gmail.com> wrote:

> Matt,
>
> Thanks!
> I overlooked the fact that the compiler is also part of the $CC variable.
>
> Correct usage:
>
> ---------------------------------------------------
>
> aseema at en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
> ./a.out
> bash: ./a.out: cannot execute binary file: Exec format error
> aseema at en4078926linux
> :~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
>
> -----------------------------------------------------
> Obviously not an x86 executable :)
>
> Thanks a million for pointer!
> Ad.
> .......................
>

I also updated the community discussion I created:

https://community.freescale.com/message/500065#500065



>
> On Tue, Mar 31, 2015 at 7:46 AM, Matt Madison <matt at madison.systems>
> wrote:
>
>> On Tue, Mar 31, 2015 at 7:26 AM, ad me <adolphs at gmail.com> wrote:
>> >
>> > On Mar 31, 2015 5:19 AM, "Matt Madison" <matt at madison.systems> wrote:
>> [...]
>> >> You probably aren't invoking the compiler with the set of command-line
>> >> options you need to get the desired output.  See the definition of the
>> >> CC environment variable in the environment-setup script in the SDK, and
>> >> make sure you use the same set of flags to invoke gcc.
>> >>
>> >> -Matt
>> >
>> > Please see the step by step in the document attached/linked.
>> > The same one you highlighted on.
>> >
>> > I source this script just before invoking the compiler. Which means the
>> CC
>> > parameters are passed in as shown.
>> >
>> > Unless if you are suggesting that doing a "source" of the environment
>> script
>> > is not enough?
>> >
>> > If so, then I would not be able to invoke the correct compiler as the
>> PATH
>> > to it is setup by the same environment script I source.
>>
>>
>> Sourcing the environment script is not enough; as I said, you have to
>> run the compiler with the right set of options.
>>
>> So instead of:
>>
>> arm-poky-linux-gnueabi-gcc hello_arm_world.c
>>
>> You could do:
>>
>> $CC hello_arm_world.c
>>
>> to use the CC environment variable directly to invoke the compiler
>> with the options you need.
>>
>> -Matt
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150331/39bcfa0d/attachment.html>


More information about the meta-freescale mailing list