* [Buildroot] Problem running program compiled with the toolchain
@ 2010-09-16 20:07 Marc Leclerc
2010-09-17 17:29 ` Marcus Osdoba
0 siblings, 1 reply; 3+ messages in thread
From: Marc Leclerc @ 2010-09-16 20:07 UTC (permalink / raw)
To: buildroot
Hi,
I have built an x86 embedded system using buildroot 2010.08. I have been
trying a few lib& compiler version trying to find the problem without
success then I added gdb to the target to see if I could get more info
First I tried my application which was developped in the past year
compiled with the buildroot toolchain and it wont start (either illegal
instruction or segfault (seems to change if I use static linking). weird
thing is that the library examples do run and I am using those same
libraries and makefile based on theirs.
I then tried a simple app
int main (int argc, char **argv)
{
return 0;
}
and I get a segfault at 1 ip 00000001 ...
adding a printf I get Illegal instruction
running under gdb amazingly tells me that the file is not in executable
format: File format not recognized
This app starts on my host and is recognized
The demos do start as well
Oviously I am missing something here, could anyone ring my bell
Regards
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] Problem running program compiled with the toolchain
2010-09-16 20:07 [Buildroot] Problem running program compiled with the toolchain Marc Leclerc
@ 2010-09-17 17:29 ` Marcus Osdoba
2010-09-17 17:44 ` Marc Leclerc
0 siblings, 1 reply; 3+ messages in thread
From: Marcus Osdoba @ 2010-09-17 17:29 UTC (permalink / raw)
To: buildroot
Am 16.09.2010 22:07, schrieb Marc Leclerc:
>
> I have built an x86 embedded system using buildroot 2010.08. I have been
> trying a few lib& compiler version trying to find the problem without
> success then I added gdb to the target to see if I could get more info
>
> This app starts on my host and is recognized
> The demos do start as well
>
Hi Marc,
How did you install the application for your target? By a user defined
package in parallel to all others in package/*?
It sound like you have build your application on and for your host -
which might be a differtent architecture than that of your target (i386
<> x64). Integrating your application like all other packages in the
user land directory and booting the generated rootfs, should run your
application - at least the simple example you gave ;-)
Regards,
Marcus
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Problem running program compiled with the toolchain
2010-09-17 17:29 ` Marcus Osdoba
@ 2010-09-17 17:44 ` Marc Leclerc
0 siblings, 0 replies; 3+ messages in thread
From: Marc Leclerc @ 2010-09-17 17:44 UTC (permalink / raw)
To: buildroot
Marcus,
Turns out, after scratching my head to gray hair, that there were no
problem in compiling for the proper target...
I used Filezilla to transfer my file and for some reason it would
transfer the examples program correctly but not my application, likely
using ASCII and messing things up. Setting transfer to use explicit
binary format and then all those hours of search came to an end.
Still leaves me to wonder what use is there for ftp ASCII transfer if
binary transfer should do it all
Thanks anyway for your time, I was waiting to see my post to add I found
the problem. Sometime it's just too ovious... or not
Marc
On 2010-09-17 13:29, Marcus Osdoba wrote:
> Am 16.09.2010 22:07, schrieb Marc Leclerc:
>>
>> I have built an x86 embedded system using buildroot 2010.08. I have been
>> trying a few lib& compiler version trying to find the problem without
>> success then I added gdb to the target to see if I could get more info
>>
>> This app starts on my host and is recognized
>> The demos do start as well
>>
> Hi Marc,
> How did you install the application for your target? By a user defined
> package in parallel to all others in package/*?
> It sound like you have build your application on and for your host -
> which might be a differtent architecture than that of your target
> (i386 <> x64). Integrating your application like all other packages in
> the user land directory and booting the generated rootfs, should run
> your application - at least the simple example you gave ;-)
>
> Regards,
> Marcus
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-17 17:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16 20:07 [Buildroot] Problem running program compiled with the toolchain Marc Leclerc
2010-09-17 17:29 ` Marcus Osdoba
2010-09-17 17:44 ` Marc Leclerc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox