[Buildroot] segfault when running a simple c program on env build with buildroot

Eial Czerwacki eial at scalemp.com
Sun Feb 12 08:25:57 UTC 2012


On 02/12/2012 09:14 AM, Eial Czerwacki wrote:

> On 02/09/2012 05:54 PM, Thomas Petazzoni wrote:
> 
>> Le Thu, 09 Feb 2012 17:16:51 +0200,
>> Eial Czerwacki <eial at scalemp.com> a écrit :
>>
>>>> What is your hardware platform?
>>>>
>>>> Thomas
>>>
>>> any generic Intel/AMD cpu
>>
>> Sorry this does not exist. Your configuration states i686. If your
>> processor is only i486 or i586 compatible, then those segfaults are
>> expected since the generated code might use instructions that do not
>> exist on your processor.
>>
> 
> correction, the cpus are any cpus from the last 4-5 years, my cpu is
> e6600 for the matter.
> all of them are i686
> 
>>> I've compiled iasl, dmidecode and biosdecode with same image, you say
>>> that I cannot do that?
>>> I need the bin linked to uclibc and my desktop doesn't support uclibc
>>
>> Buildroot generates for you an uClibc cross-compilation toolchain in
>> output/host/usr/bin that you can use to cross-compile applications for
>> the target platform.
>>
>> Best regards,
>>
>> Thomas
> 
> 
> that is what I need.
> 
> Eial.
> 


ok, I've found my issue, for some reason, although I was inside the
busybox (using chroot to compile it), configure used the host's compiler
and not the uclibc based compiler, passing the
--host=i686-unknown-linux-uclibc solved this issue.

Thanks for the help.


More information about the buildroot mailing list