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 : > On Fri, Oct 10, 2014 at 05:51:08PM -0700, Wy kevin

Re: [yocto] Cannot run simple binary executable file

2014-10-10 Thread Denys Dmytriyenko
On Fri, Oct 10, 2014 at 05:51:08PM -0700, Wy kevinthesun wrote: > These errors occur when I add "-mfloat-abi=hardfp" to the toolchain > setting. If I don't add it, no error occurs. Now I think the problem is > that 1.5.1 or 1.6.2 toolchain doesn't support hard float, which is required > by my yocto

Re: [yocto] Cannot run simple binary executable file

2014-10-10 Thread Wy kevinthesun
These errors occur when I add "-mfloat-abi=hardfp" to the toolchain setting. If I don't add it, no error occurs. Now I think the problem is that 1.5.1 or 1.6.2 toolchain doesn't support hard float, which is required by my yocto 1.5.1 system. Thank you. 2014-10-10 16:27 GMT-07:00 Denys Dmytriyenko

Re: [yocto] Cannot run simple binary executable file

2014-10-10 Thread Denys Dmytriyenko
On Fri, Oct 10, 2014 at 04:15:42PM -0700, Wy kevinthesun wrote: > 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:

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 20

Re: [yocto] Cannot run simple binary executable file

2014-10-09 Thread Nicolas Dechesne
On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun wrote: > 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 toolch

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? T

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 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 options you are using. a gi

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 |grep FP' this should give a hint on the setting of -mflo

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 : > On Tue, Oct 07, 2014 at 07:05:42PM -0700, Wy kevinthesun wrote: > > However, a new problem

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

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, i

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 th

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 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 > > poky-eglibc-i686-core-image-sato-armv7a-vfp-neo

Re: [yocto] Cannot run simple binary executable file

2014-10-07 Thread Khem Raj
On Tue, Oct 7, 2014 at 4:07 AM, Wy kevinthesun 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 > > poky-eglibc-i686-core-image-sato-armv7a-vfp-neo

[yocto] Cannot run simple binary executable file

2014-10-07 Thread Wy kevinthesun
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 poky-eglibc-i686-core-image-sato-armv7a-vfp-neon-toolchain-1.6.1.sh. I can compile the simple HelloWorld progr