[yocto] Illegal Instruction Generate for Intel Atom

Chris Trobridge christrobridge at hotmail.com
Mon Jan 16 11:47:54 PST 2017


Thanks Ross,


I came to that conclusion too, and changes to the asterisk build system was really always the most likely source of the problem.  On the plus side, I have learned a lot more about machine/processor configuration in the bsp layers pursuing that dead end.


I went back through the asterisk change notes and at some point in the past they decided to use -march=native as a means to produce the best optimised code, while still retaining the option to disable this.


There are some more notes from last summer about changing how this is configured, and it certainly defaults to enabled since then.  BUILD_NATIVE is an option in their 'menuselect' so I need to configure that, as the clean solution, rather than just patching their makeopts.


Regards,

Chris

________________________________
From: Burton, Ross <ross.burton at intel.com>
Sent: 16 January 2017 15:40
To: Chris Trobridge
Cc: Leon Woestenberg; Yocto List
Subject: Re: [yocto] Illegal Instruction Generate for Intel Atom


On 16 January 2017 at 14:47, Chris Trobridge <christrobridge at hotmail.com<mailto:christrobridge at hotmail.com>> wrote:

Managed to get the actual compiler lines and the initial args are "-m32 -march=i586" but there is "-march=native" appended to the end of the line.

Looks like asterisk itself is adding -march=native, so you'll need to dig through it's makefiles and work out how to disable it (or just delete them).

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170116/a8a54366/attachment.html>


More information about the yocto mailing list