Re: [yocto] Illegal Instruction Generate for Intel Atom

2017-01-16 Thread Chris Trobridge
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 <christrobri...@hotmail.com<mailto:christrobri...@hotmail.com>> wrote: Managed to get the actual compiler lines and the init

Re: [yocto] Illegal Instruction Generate for Intel Atom

2017-01-16 Thread Leon Woestenberg
+Khem On Mon, Jan 16, 2017 at 4:40 PM, Burton, Ross wrote: > > On 16 January 2017 at 14:47, Chris Trobridge > wrote: > >> Managed to get the actual compiler lines and the initial args are "-m32 >> -march=i586" but there is "-march=native"

Re: [yocto] Illegal Instruction Generate for Intel Atom

2017-01-16 Thread Burton, Ross
On 16 January 2017 at 14:47, Chris Trobridge 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

Re: [yocto] Illegal Instruction Generate for Intel Atom

2017-01-16 Thread Leon Woestenberg
Hi Chris, there is a hint here how you can find out what gcc is actually using; you could try with and without the -march=native: http://en.chys.info/2010/04/what-exactly-marchnative-means/ On Mon, Jan 16, 2017 at 3:47 PM, Chris Trobridge wrote: > the initial args

Re: [yocto] Illegal Instruction Generate for Intel Atom

2017-01-16 Thread Chris Trobridge
Cc: Yocto List Subject: Re: [yocto] Illegal Instruction Generate for Intel Atom Hello Chris, Probably unrelated, but yesterday my krogoth build failed on an Atom *host/build* system. I was just about to debug this when I saw your email. The configure stage of gmp-native decided to choose -march

Re: [yocto] Illegal Instruction Generate for Intel Atom

2017-01-16 Thread Chris Trobridge
it may be more a case of the compiler using core2 instructions that are not valid for atom. Regards, Chris From: Leon Woestenberg <l...@sidebranch.com> Sent: 16 January 2017 09:57 To: Chris Trobridge Cc: Yocto List Subject: Re: [yocto] Illegal Instruction Ge

Re: [yocto] Illegal Instruction Generate for Intel Atom

2017-01-16 Thread Leon Woestenberg
Hello Chris, Probably unrelated, but yesterday my krogoth build failed on an Atom *host/build* system. I was just about to debug this when I saw your email. The configure stage of gmp-native decided to choose -march=k8 and -mtune=k8 -m64. I am debugging this currently. Maybe check if the

[yocto] Illegal Instruction Generate for Intel Atom

2017-01-16 Thread Chris Trobridge
This arose building asterisk switching from 13.7 to 13.11+. The executable core dumps immediately with an illegal instruction instruction, which gdb reported as 'andn'. This is part of BMI1, which was introduced with Haswell. I am targeting a (32-bit) Z5xx Atom processor, which predates this