Re: [yocto] Cannot run simple binary executable file

2014-10-10 Thread Wy kevinthesun
I tried both hard and hardfp. They both returned 3 errors: C compiler cannot create executablesHello-1Configure Problem in `/home/kevinthefire/workspace/Hello':Hello-1Configure Problem make: *** No rule to make target `all'.Hello C/C++ Problem

Re: [yocto] Cannot run simple binary executable file

2014-10-10 Thread Wy kevinthesun
I bought a Sam5d3 Xplained board and the os on it is 1.5.1 yocto project. I can see that under /lib folder there is only ld.linux.armhf.so, not ld linux.so, which is used by cross compile toolchain. 2014-10-11 9:16 GMT+08:00 Denys Dmytriyenko de...@denix.org: On Fri, Oct 10, 2014 at 05:51:08PM

Re: [yocto] Cannot run simple binary executable file

2014-10-09 Thread Nicolas Dechesne
On Wed, Oct 8, 2014 at 11:34 PM, Wy kevinthesun kevinthesu...@gmail.com wrote: Hi Denys, I have tried 1.5.1 and 1.3. All of them use ld-linux.so.3. Actually in the /lib directory of these toolchains I only find ld-linux.so.3. it's not really about the toolchain version, but the compiler

Re: [yocto] Cannot run simple binary executable file

2014-10-09 Thread Wy kevinthesun
It seems that Yocto 1.5.1 is built with hard float. However, the 1.51, 1.6 and 1.62 toolchains are soft float. When I tried to set -mfloat-abi=hardfp in the compile option, the compiling process ran into error. It seems these toolchains don't support hard float? How can I solve this problem?

Re: [yocto] Cannot run simple binary executable file

2014-10-08 Thread Wy kevinthesun
Problem solved! It turns out it is the mismatch of ld-linux.so. I referred to this post http://stackoverflow.com/questions/24543474/cross-compiled-gnu-arm-beagleboneblack-from-windows-runtime-error-on-elf, and found my problem was exactly the same: the binary needs /lib/ld-linux.so.3 to run, but

Re: [yocto] Cannot run simple binary executable file

2014-10-08 Thread Wy kevinthesun
However, a new problem occurs. Now when I tries run HelloWorld binary, after Hello World is printed, the terminal also prints Segmentation fault. It seems that some memory problems occurs. I guess it comes from that the 1.5.1 yocto system on boards hopes ld-linux-armhf.so.3 as dynamic linker,

Re: [yocto] Cannot run simple binary executable file

2014-10-08 Thread Denys Dmytriyenko
On Tue, Oct 07, 2014 at 07:05:42PM -0700, Wy kevinthesun wrote: However, a new problem occurs. Now when I tries run HelloWorld binary, after Hello World is printed, the terminal also prints Segmentation fault. It seems that some memory problems occurs. I guess it comes from that the 1.5.1

Re: [yocto] Cannot run simple binary executable file

2014-10-08 Thread Wy kevinthesun
Hi Denys, I have tried 1.5.1 and 1.3. All of them use ld-linux.so.3. Actually in the /lib directory of these toolchains I only find ld-linux.so.3. Thank you. 2014-10-09 4:43 GMT+08:00 Denys Dmytriyenko de...@denix.org: On Tue, Oct 07, 2014 at 07:05:42PM -0700, Wy kevinthesun wrote: However,

Re: [yocto] Cannot run simple binary executable file

2014-10-08 Thread Maciej Borzecki
On Thursday 09 of October 2014 05:34:29 Wy kevinthesun wrote: Hi Denys, I have tried 1.5.1 and 1.3. All of them use ld-linux.so.3. Actually in the /lib directory of these toolchains I only find ld-linux.so.3. Try running 'readelf -a yourbinary |grep FP' this should give a hint on the setting

Re: [yocto] Cannot run simple binary executable file

2014-10-07 Thread Nicolas Dechesne
On Tue, Oct 7, 2014 at 1:07 PM, Wy kevinthesun kevinthesu...@gmail.com wrote: Hi, I am new to Yocto Project and learning to develop software on Atmel SAMA5D3 Xplained board, on which Yocto 1.5.1 is pre-built. I followed the instructions and got the 1.6.1 toolchain