All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot run simple binary executable file
@ 2014-10-07 11:07 Wy kevinthesun
  2014-10-07 15:17 ` Khem Raj
  2014-10-07 15:21 ` Nicolas Dechesne
  0 siblings, 2 replies; 16+ messages in thread
From: Wy kevinthesun @ 2014-10-07 11:07 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

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 program and binary file is made.
Then I copied the binary file

into board and tried to run it. However, when I changed to the file
located directory and type

"./Hello", it returned "sh: ./Hello: No such file or directory". Then
I tried "sh Hello", it gave

me  "Hello: Hello: cannot execute binary file ". If I type "file
Hello", it gives "Hello: ELF 32-bit
 LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked
(uses shared libs), for GNU/Linux 2.6.16,
BuildID[sha1]=9933a2d2ce212099c5f9902a8e612c1423e136da, not stripped".
I googled and someone

said the problem may be the toolchain. Then I tried 1.3, 1.5.1
toolchain for arm, but still same

error. Could you please help me about this problem?

Thank you!

Kevin.

[-- Attachment #2: Type: text/html, Size: 2316 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-07 11:07 Cannot run simple binary executable file Wy kevinthesun
@ 2014-10-07 15:17 ` Khem Raj
  2014-10-07 15:21 ` Nicolas Dechesne
  1 sibling, 0 replies; 16+ messages in thread
From: Khem Raj @ 2014-10-07 15:17 UTC (permalink / raw)
  To: Wy kevinthesun; +Cc: yocto@yoctoproject.org

On Tue, Oct 7, 2014 at 4:07 AM, Wy kevinthesun <kevinthesunwy@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
>
> poky-eglibc-i686-core-image-sato-armv7a-vfp-neon-toolchain-1.6.1.sh.
>
> I can compile the simple HelloWorld program and binary file is made. Then I
> copied the binary file
>
> into board and tried to run it. However, when I changed to the file located
> directory and type
>
> "./Hello", it returned "sh: ./Hello: No such file or directory". Then I
> tried "sh Hello", it gave
>
> me  "Hello: Hello: cannot execute binary file ". If I type "file Hello", it
> gives "Hello: ELF 32-bit
>  LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses
> shared libs), for GNU/Linux 2.6.16,
> BuildID[sha1]=9933a2d2ce212099c5f9902a8e612c1423e136da, not stripped". I
> googled and someone
>
> said the problem may be the toolchain. Then I tried 1.3, 1.5.1 toolchain for
> arm, but still same
>
> error. Could you please help me about this problem?

whats running on board ? make sure that it has ldso in same directory
and name as encoded
in binary. it seems there is a mismatch. Try

/lib/ld-linux.so.XXX ./a.out

does that run ?

>
> Thank you!
>
> Kevin.
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-07 11:07 Cannot run simple binary executable file Wy kevinthesun
  2014-10-07 15:17 ` Khem Raj
@ 2014-10-07 15:21 ` Nicolas Dechesne
  2014-10-08  1:17   ` Wy kevinthesun
  1 sibling, 1 reply; 16+ messages in thread
From: Nicolas Dechesne @ 2014-10-07 15:21 UTC (permalink / raw)
  To: Wy kevinthesun; +Cc: Yocto list discussion

On Tue, Oct 7, 2014 at 1:07 PM, Wy kevinthesun <kevinthesunwy@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
>
> poky-eglibc-i686-core-image-sato-armv7a-vfp-neon-toolchain-1.6.1.sh.
>
> I can compile the simple HelloWorld program and binary file is made. Then I
> copied the binary file
>
> into board and tried to run it. However, when I changed to the file located
> directory and type
>
> "./Hello", it returned "sh: ./Hello: No such file or directory". Then I
> tried "sh Hello", it gave
>
> me  "Hello: Hello: cannot execute binary file ". If I type "file Hello", it
> gives "Hello: ELF 32-bit
>  LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses
> shared libs), for GNU/Linux 2.6.16,
> BuildID[sha1]=9933a2d2ce212099c5f9902a8e612c1423e136da, not stripped". I
> googled and someone
>
> said the problem may be the toolchain. Then I tried 1.3, 1.5.1 toolchain for
> arm, but still same
>
> error. Could you please help me about this problem?


i suspect this is an armv7 soft-float vs hard-float mismatch. Either
your prebuilt OE system is configured with soft-float and the
toolchain you use compiled for hard-float by default, or the other way
around. can you check how you've compile HelloWolrd and check the
other ABI?


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-07 15:21 ` Nicolas Dechesne
@ 2014-10-08  1:17   ` Wy kevinthesun
  2014-10-08  2:05     ` Wy kevinthesun
  0 siblings, 1 reply; 16+ messages in thread
From: Wy kevinthesun @ 2014-10-08  1:17 UTC (permalink / raw)
  To: Nicolas Dechesne; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 2063 bytes --]

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 that file is missing in the 1.5.1 yocto
system on board. Then I copied ld-linux.so.3 file from Yocto toolchain on
my pc. Then it works!

Thank you!

2014-10-07 8:21 GMT-07:00 Nicolas Dechesne <nicolas.dechesne@linaro.org>:

> On Tue, Oct 7, 2014 at 1:07 PM, Wy kevinthesun <kevinthesunwy@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
> >
> > poky-eglibc-i686-core-image-sato-armv7a-vfp-neon-toolchain-1.6.1.sh.
> >
> > I can compile the simple HelloWorld program and binary file is made.
> Then I
> > copied the binary file
> >
> > into board and tried to run it. However, when I changed to the file
> located
> > directory and type
> >
> > "./Hello", it returned "sh: ./Hello: No such file or directory". Then I
> > tried "sh Hello", it gave
> >
> > me  "Hello: Hello: cannot execute binary file ". If I type "file Hello",
> it
> > gives "Hello: ELF 32-bit
> >  LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses
> > shared libs), for GNU/Linux 2.6.16,
> > BuildID[sha1]=9933a2d2ce212099c5f9902a8e612c1423e136da, not stripped". I
> > googled and someone
> >
> > said the problem may be the toolchain. Then I tried 1.3, 1.5.1 toolchain
> for
> > arm, but still same
> >
> > error. Could you please help me about this problem?
>
>
> i suspect this is an armv7 soft-float vs hard-float mismatch. Either
> your prebuilt OE system is configured with soft-float and the
> toolchain you use compiled for hard-float by default, or the other way
> around. can you check how you've compile HelloWolrd and check the
> other ABI?
>

[-- Attachment #2: Type: text/html, Size: 2906 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-08  1:17   ` Wy kevinthesun
@ 2014-10-08  2:05     ` Wy kevinthesun
  2014-10-08 20:43       ` Denys Dmytriyenko
  0 siblings, 1 reply; 16+ messages in thread
From: Wy kevinthesun @ 2014-10-08  2:05 UTC (permalink / raw)
  To: Nicolas Dechesne; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 2654 bytes --]

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, instead of ld-linux.so.3, which is used by toolchain. There may be
some memory address problem between them. How can I solve it?

Thank you!

2014-10-07 18:17 GMT-07:00 Wy kevinthesun <kevinthesunwy@gmail.com>:

> 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 that file is missing in the 1.5.1 yocto
> system on board. Then I copied ld-linux.so.3 file from Yocto toolchain on
> my pc. Then it works!
>
> Thank you!
>
> 2014-10-07 8:21 GMT-07:00 Nicolas Dechesne <nicolas.dechesne@linaro.org>:
>
> On Tue, Oct 7, 2014 at 1:07 PM, Wy kevinthesun <kevinthesunwy@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
>> >
>> > poky-eglibc-i686-core-image-sato-armv7a-vfp-neon-toolchain-1.6.1.sh.
>> >
>> > I can compile the simple HelloWorld program and binary file is made.
>> Then I
>> > copied the binary file
>> >
>> > into board and tried to run it. However, when I changed to the file
>> located
>> > directory and type
>> >
>> > "./Hello", it returned "sh: ./Hello: No such file or directory". Then I
>> > tried "sh Hello", it gave
>> >
>> > me  "Hello: Hello: cannot execute binary file ". If I type "file
>> Hello", it
>> > gives "Hello: ELF 32-bit
>> >  LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses
>> > shared libs), for GNU/Linux 2.6.16,
>> > BuildID[sha1]=9933a2d2ce212099c5f9902a8e612c1423e136da, not stripped". I
>> > googled and someone
>> >
>> > said the problem may be the toolchain. Then I tried 1.3, 1.5.1
>> toolchain for
>> > arm, but still same
>> >
>> > error. Could you please help me about this problem?
>>
>>
>> i suspect this is an armv7 soft-float vs hard-float mismatch. Either
>> your prebuilt OE system is configured with soft-float and the
>> toolchain you use compiled for hard-float by default, or the other way
>> around. can you check how you've compile HelloWolrd and check the
>> other ABI?
>>
>
>

[-- Attachment #2: Type: text/html, Size: 3794 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-08  2:05     ` Wy kevinthesun
@ 2014-10-08 20:43       ` Denys Dmytriyenko
  2014-10-08 21:34         ` Wy kevinthesun
  0 siblings, 1 reply; 16+ messages in thread
From: Denys Dmytriyenko @ 2014-10-08 20:43 UTC (permalink / raw)
  To: Wy kevinthesun; +Cc: Yocto list discussion

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 yocto system on boards hopes ld-linux-armhf.so.3 as dynamic
> linker, instead of ld-linux.so.3, which is used by toolchain. There may be
> some memory address problem between them. How can I solve it?

As Nicolas suggested earlier, it seems you are trying to mix ABIs here. 
Because ld-linux-armhf.so.3 indicates the system uses hardfp ABI, but the 
example app you built with your toolchain wants ld-linux.so.3, which is 
usually the old softfp ABI. You'd need to match ABIs and the easiest solution 
is to use the same toolchain that was used to build the system (1.5.1?)

-- 
Denys


> 2014-10-07 18:17 GMT-07:00 Wy kevinthesun <kevinthesunwy@gmail.com>:
> 
> > 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 that file is missing in the 1.5.1 yocto
> > system on board. Then I copied ld-linux.so.3 file from Yocto toolchain on
> > my pc. Then it works!
> >
> > Thank you!
> >
> > 2014-10-07 8:21 GMT-07:00 Nicolas Dechesne <nicolas.dechesne@linaro.org>:
> >
> > On Tue, Oct 7, 2014 at 1:07 PM, Wy kevinthesun <kevinthesunwy@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
> >> >
> >> > poky-eglibc-i686-core-image-sato-armv7a-vfp-neon-toolchain-1.6.1.sh.
> >> >
> >> > I can compile the simple HelloWorld program and binary file is made.
> >> Then I
> >> > copied the binary file
> >> >
> >> > into board and tried to run it. However, when I changed to the file
> >> located
> >> > directory and type
> >> >
> >> > "./Hello", it returned "sh: ./Hello: No such file or directory". Then I
> >> > tried "sh Hello", it gave
> >> >
> >> > me  "Hello: Hello: cannot execute binary file ". If I type "file
> >> Hello", it
> >> > gives "Hello: ELF 32-bit
> >> >  LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses
> >> > shared libs), for GNU/Linux 2.6.16,
> >> > BuildID[sha1]=9933a2d2ce212099c5f9902a8e612c1423e136da, not stripped". I
> >> > googled and someone
> >> >
> >> > said the problem may be the toolchain. Then I tried 1.3, 1.5.1
> >> toolchain for
> >> > arm, but still same
> >> >
> >> > error. Could you please help me about this problem?
> >>
> >>
> >> i suspect this is an armv7 soft-float vs hard-float mismatch. Either
> >> your prebuilt OE system is configured with soft-float and the
> >> toolchain you use compiled for hard-float by default, or the other way
> >> around. can you check how you've compile HelloWolrd and check the
> >> other ABI?
> >>
> >
> >

> -- 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-08 20:43       ` Denys Dmytriyenko
@ 2014-10-08 21:34         ` Wy kevinthesun
  2014-10-08 22:04           ` Maciej Borzecki
  2014-10-09  7:10           ` Nicolas Dechesne
  0 siblings, 2 replies; 16+ messages in thread
From: Wy kevinthesun @ 2014-10-08 21:34 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 3820 bytes --]

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 <denis@denix.org>:

> 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 yocto system on boards hopes ld-linux-armhf.so.3 as
> dynamic
> > linker, instead of ld-linux.so.3, which is used by toolchain. There may
> be
> > some memory address problem between them. How can I solve it?
>
> As Nicolas suggested earlier, it seems you are trying to mix ABIs here.
> Because ld-linux-armhf.so.3 indicates the system uses hardfp ABI, but the
> example app you built with your toolchain wants ld-linux.so.3, which is
> usually the old softfp ABI. You'd need to match ABIs and the easiest
> solution
> is to use the same toolchain that was used to build the system (1.5.1?)
>
> --
> Denys
>
>
> > 2014-10-07 18:17 GMT-07:00 Wy kevinthesun <kevinthesunwy@gmail.com>:
> >
> > > 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 that file is missing in the 1.5.1 yocto
> > > system on board. Then I copied ld-linux.so.3 file from Yocto toolchain
> on
> > > my pc. Then it works!
> > >
> > > Thank you!
> > >
> > > 2014-10-07 8:21 GMT-07:00 Nicolas Dechesne <
> nicolas.dechesne@linaro.org>:
> > >
> > > On Tue, Oct 7, 2014 at 1:07 PM, Wy kevinthesun <
> kevinthesunwy@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
> > >> >
> > >> > poky-eglibc-i686-core-image-sato-armv7a-vfp-neon-toolchain-1.6.1.sh
> .
> > >> >
> > >> > I can compile the simple HelloWorld program and binary file is made.
> > >> Then I
> > >> > copied the binary file
> > >> >
> > >> > into board and tried to run it. However, when I changed to the file
> > >> located
> > >> > directory and type
> > >> >
> > >> > "./Hello", it returned "sh: ./Hello: No such file or directory".
> Then I
> > >> > tried "sh Hello", it gave
> > >> >
> > >> > me  "Hello: Hello: cannot execute binary file ". If I type "file
> > >> Hello", it
> > >> > gives "Hello: ELF 32-bit
> > >> >  LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked
> (uses
> > >> > shared libs), for GNU/Linux 2.6.16,
> > >> > BuildID[sha1]=9933a2d2ce212099c5f9902a8e612c1423e136da, not
> stripped". I
> > >> > googled and someone
> > >> >
> > >> > said the problem may be the toolchain. Then I tried 1.3, 1.5.1
> > >> toolchain for
> > >> > arm, but still same
> > >> >
> > >> > error. Could you please help me about this problem?
> > >>
> > >>
> > >> i suspect this is an armv7 soft-float vs hard-float mismatch. Either
> > >> your prebuilt OE system is configured with soft-float and the
> > >> toolchain you use compiled for hard-float by default, or the other way
> > >> around. can you check how you've compile HelloWolrd and check the
> > >> other ABI?
> > >>
> > >
> > >
>
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>
>

[-- Attachment #2: Type: text/html, Size: 5604 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-08 21:34         ` Wy kevinthesun
@ 2014-10-08 22:04           ` Maciej Borzecki
  2014-10-09  7:10           ` Nicolas Dechesne
  1 sibling, 0 replies; 16+ messages in thread
From: Maciej Borzecki @ 2014-10-08 22:04 UTC (permalink / raw)
  To: Wy kevinthesun; +Cc: yocto

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 of -mfloat-abi that was used during compilation. This post might 
explain more: https://gcc.gnu.org/ml/gcc-help/2012-02/msg00082.html

readelf will also give you the interpreter name that the binary wants to be 
run with (in your case it should be ld-linux.so.3). However, I've also seen 
ld-linux.so.3 being symlinked to proper armhf.so (and program binaries would 
use ld-linux.so as interpreter) or the other way round, so whatever readelf 
prints as the requested interpreter might not necessarily be conclusive.

Long shot, but have you tried grabbing ld-linux.so* from 1.5 and calling it on 
1.6 like this?
	./ld-linux.so.3 ./yourbinary


> 
> Thank you.
> 
> 2014-10-09 4:43 GMT+08:00 Denys Dmytriyenko <denis@denix.org>:
> > 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 yocto system on boards hopes ld-linux-armhf.so.3 as
> > 
> > dynamic
> > 
> > > linker, instead of ld-linux.so.3, which is used by toolchain. There may
> > 
> > be
> > 
> > > some memory address problem between them. How can I solve it?
> > 
> > As Nicolas suggested earlier, it seems you are trying to mix ABIs here.
> > Because ld-linux-armhf.so.3 indicates the system uses hardfp ABI, but the
> > example app you built with your toolchain wants ld-linux.so.3, which is
> > usually the old softfp ABI. You'd need to match ABIs and the easiest
> > solution
> > is to use the same toolchain that was used to build the system (1.5.1?)
> > 
> > --
> > Denys
> > 
> > > 2014-10-07 18:17 GMT-07:00 Wy kevinthesun <kevinthesunwy@gmail.com>:
> > > > 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-beagleb
> > oneblack-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 that file is missing in the 1.5.1 yocto
> > > > system on board. Then I copied ld-linux.so.3 file from Yocto toolchain
> > 
> > on
> > 
> > > > my pc. Then it works!
> > > > 
> > > > Thank you!
> > > > 
> > > > 2014-10-07 8:21 GMT-07:00 Nicolas Dechesne <
> > 
> > nicolas.dechesne@linaro.org>:
> > > > On Tue, Oct 7, 2014 at 1:07 PM, Wy kevinthesun <
> > 
> > kevinthesunwy@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
> > > >> > 
> > > >> > poky-eglibc-i686-core-image-sato-armv7a-vfp-neon-toolchain-1.6.1.sh
> > 
> > .
> > 
> > > >> > I can compile the simple HelloWorld program and binary file is
> > > >> > made.
> > > >> 
> > > >> Then I
> > > >> 
> > > >> > copied the binary file
> > > >> > 
> > > >> > into board and tried to run it. However, when I changed to the file
> > > >> 
> > > >> located
> > > >> 
> > > >> > directory and type
> > > >> > 
> > > >> > "./Hello", it returned "sh: ./Hello: No such file or directory".
> > 
> > Then I
> > 
> > > >> > tried "sh Hello", it gave
> > > >> > 
> > > >> > me  "Hello: Hello: cannot execute binary file ". If I type "file
> > > >> 
> > > >> Hello", it
> > > >> 
> > > >> > gives "Hello: ELF 32-bit
> > > >> > 
> > > >> >  LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked
> > 
> > (uses
> > 
> > > >> > shared libs), for GNU/Linux 2.6.16,
> > > >> > BuildID[sha1]=9933a2d2ce212099c5f9902a8e612c1423e136da, not
> > 
> > stripped". I
> > 
> > > >> > googled and someone
> > > >> > 
> > > >> > said the problem may be the toolchain. Then I tried 1.3, 1.5.1
> > > >> 
> > > >> toolchain for
> > > >> 
> > > >> > arm, but still same
> > > >> > 
> > > >> > error. Could you please help me about this problem?
> > > >> 
> > > >> i suspect this is an armv7 soft-float vs hard-float mismatch. Either
> > > >> your prebuilt OE system is configured with soft-float and the
> > > >> toolchain you use compiled for hard-float by default, or the other
> > > >> way
> > > >> around. can you check how you've compile HelloWolrd and check the
> > > >> other ABI?
> > > 
> > > --
> > > _______________________________________________
> > > yocto mailing list
> > > yocto@yoctoproject.org
> > > https://lists.yoctoproject.org/listinfo/yocto

-- 

Maciej Borzęcki 
Senior Software Engineer Open-RnD Sp. z o.o. 
www.open-rnd.pl, Facebook, Twitter 
mobile: +48 telefon, fax: +48 42 657 9079 

Niniejsza wiadomość wraz z załącznikami może zawierać chronione prawem lub 
poufne informacje i została wysłana wyłącznie do wiadomości i użytku osób, do 
których została zaadresowana. Jeśli wiadomość została otrzymana przypadkowo 
zabrania się jej kopiowania lub rozsyłania do osób trzecich. W takim przypadku 
uprasza się o natychmiastowe zniszczenie wiadomości oraz poinformowanie 
nadawcy o zaistniałej sytuacji za pomocą wiadomości zwrotnej. Dziękujemy. 

This message, including any attachments hereto, may contain privileged or 
confidential information and is sent solely for the attention and use of the 
intended addressee(s). If you are not an intended addressee, you may neither 
use this message nor copy or deliver it to anyone. In such case, you should 
immediately destroy this message and kindly notify the sender by reply email. 
Thank you.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-08 21:34         ` Wy kevinthesun
  2014-10-08 22:04           ` Maciej Borzecki
@ 2014-10-09  7:10           ` Nicolas Dechesne
  2014-10-09 20:27             ` Wy kevinthesun
  1 sibling, 1 reply; 16+ messages in thread
From: Nicolas Dechesne @ 2014-10-09  7:10 UTC (permalink / raw)
  To: Wy kevinthesun; +Cc: Yocto list discussion

On Wed, Oct 8, 2014 at 11:34 PM, Wy kevinthesun <kevinthesunwy@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 options
you are using. a given toolchain will by default use wither soft-flat
or hard-float, but you can specify different ABI on the gcc command
line.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-09  7:10           ` Nicolas Dechesne
@ 2014-10-09 20:27             ` Wy kevinthesun
  2014-10-10  6:12               ` Nicolas Dechesne
  0 siblings, 1 reply; 16+ messages in thread
From: Wy kevinthesun @ 2014-10-09 20:27 UTC (permalink / raw)
  To: Nicolas Dechesne; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]

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?

These are my set in the environment file of 1.5.1 toolchain:
export CC="arm-poky-linux-gnueabi-gcc  -march=armv5te -marm
-mthumb-interwork -mfloat-abi=hardfp
--sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
export CXX="arm-poky-linux-gnueabi-g++  -march=armv5te -marm
-mthumb-interwork -mfloat-abi=hardfp
--sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
export CPP="arm-poky-linux-gnueabi-gcc -E  -march=armv5te -marm
-mthumb-interwork -mfloat-abi=hardfp
--sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"

It ran into error.

Thank you!

2014-10-09 0:10 GMT-07:00 Nicolas Dechesne <nicolas.dechesne@linaro.org>:

> On Wed, Oct 8, 2014 at 11:34 PM, Wy kevinthesun <kevinthesunwy@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 options
> you are using. a given toolchain will by default use wither soft-flat
> or hard-float, but you can specify different ABI on the gcc command
> line.
>

[-- Attachment #2: Type: text/html, Size: 1958 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-09 20:27             ` Wy kevinthesun
@ 2014-10-10  6:12               ` Nicolas Dechesne
  2014-10-10 23:15                 ` Wy kevinthesun
  0 siblings, 1 reply; 16+ messages in thread
From: Nicolas Dechesne @ 2014-10-10  6:12 UTC (permalink / raw)
  To: Wy kevinthesun; +Cc: Yocto list discussion

On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun <kevinthesunwy@gmail.com> 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 toolchains don't  support hard float? How can I solve
> this problem?
>
> These are my set in the environment file of 1.5.1 toolchain:
> export CC="arm-poky-linux-gnueabi-gcc  -march=armv5te -marm
> -mthumb-interwork -mfloat-abi=hardfp
> --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> export CXX="arm-poky-linux-gnueabi-g++  -march=armv5te -marm
> -mthumb-interwork -mfloat-abi=hardfp
> --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> export CPP="arm-poky-linux-gnueabi-gcc -E  -march=armv5te -marm
> -mthumb-interwork -mfloat-abi=hardfp
> --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
>
> It ran into error.


maybe because the gcc documentation says -mfloat-abi=hard, not =hardfp ?

in general, showing us the error you have is much preferred, otherwise
it's difficult to help if we don't really know what went wrong.

cheers.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-10  6:12               ` Nicolas Dechesne
@ 2014-10-10 23:15                 ` Wy kevinthesun
  2014-10-10 23:27                   ` Denys Dmytriyenko
  0 siblings, 1 reply; 16+ messages in thread
From: Wy kevinthesun @ 2014-10-10 23:15 UTC (permalink / raw)
  To: Nicolas Dechesne; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]

I tried both hard and hardfp. They both returned 3 errors:

C compiler cannot create executables    Hello        -1    Configure Problem
in `/home/kevinthefire/workspace/Hello':    Hello        -1    Configure
Problem
make: *** No rule to make target `all'.    Hello             C/C++ Problem




2014-10-09 23:12 GMT-07:00 Nicolas Dechesne <nicolas.dechesne@linaro.org>:

> On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun <kevinthesunwy@gmail.com>
> 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 toolchains don't  support hard float? How can I
> solve
> > this problem?
> >
> > These are my set in the environment file of 1.5.1 toolchain:
> > export CC="arm-poky-linux-gnueabi-gcc  -march=armv5te -marm
> > -mthumb-interwork -mfloat-abi=hardfp
> > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > export CXX="arm-poky-linux-gnueabi-g++  -march=armv5te -marm
> > -mthumb-interwork -mfloat-abi=hardfp
> > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > export CPP="arm-poky-linux-gnueabi-gcc -E  -march=armv5te -marm
> > -mthumb-interwork -mfloat-abi=hardfp
> > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> >
> > It ran into error.
>
>
> maybe because the gcc documentation says -mfloat-abi=hard, not =hardfp ?
>
> in general, showing us the error you have is much preferred, otherwise
> it's difficult to help if we don't really know what went wrong.
>
> cheers.
>

[-- Attachment #2: Type: text/html, Size: 2263 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-10 23:15                 ` Wy kevinthesun
@ 2014-10-10 23:27                   ` Denys Dmytriyenko
  2014-10-11  0:51                     ` Wy kevinthesun
  0 siblings, 1 reply; 16+ messages in thread
From: Denys Dmytriyenko @ 2014-10-10 23:27 UTC (permalink / raw)
  To: Wy kevinthesun; +Cc: Yocto list discussion

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 executables    Hello        -1    Configure Problem
> in `/home/kevinthefire/workspace/Hello':    Hello        -1    Configure
> Problem
> make: *** No rule to make target `all'.    Hello             C/C++ Problem

That doesn't sound like a toolchain error, but rather an autotools one. Make 
sure you are setting up cross compilation properly.


> 2014-10-09 23:12 GMT-07:00 Nicolas Dechesne <nicolas.dechesne@linaro.org>:
> 
> > On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun <kevinthesunwy@gmail.com>
> > 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 toolchains don't  support hard float? How can I
> > solve
> > > this problem?
> > >
> > > These are my set in the environment file of 1.5.1 toolchain:
> > > export CC="arm-poky-linux-gnueabi-gcc  -march=armv5te -marm
> > > -mthumb-interwork -mfloat-abi=hardfp
> > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > export CXX="arm-poky-linux-gnueabi-g++  -march=armv5te -marm
> > > -mthumb-interwork -mfloat-abi=hardfp
> > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > export CPP="arm-poky-linux-gnueabi-gcc -E  -march=armv5te -marm
> > > -mthumb-interwork -mfloat-abi=hardfp
> > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > >
> > > It ran into error.
> >
> >
> > maybe because the gcc documentation says -mfloat-abi=hard, not =hardfp ?
> >
> > in general, showing us the error you have is much preferred, otherwise
> > it's difficult to help if we don't really know what went wrong.
> >
> > cheers.
> >


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-10 23:27                   ` Denys Dmytriyenko
@ 2014-10-11  0:51                     ` Wy kevinthesun
  2014-10-11  1:16                       ` Denys Dmytriyenko
  0 siblings, 1 reply; 16+ messages in thread
From: Wy kevinthesun @ 2014-10-11  0:51 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 2392 bytes --]

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 <denis@denix.org>:

> 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 executables    Hello        -1    Configure
> Problem
> > in `/home/kevinthefire/workspace/Hello':    Hello        -1    Configure
> > Problem
> > make: *** No rule to make target `all'.    Hello             C/C++
> Problem
>
> That doesn't sound like a toolchain error, but rather an autotools one.
> Make
> sure you are setting up cross compilation properly.
>
>
> > 2014-10-09 23:12 GMT-07:00 Nicolas Dechesne <nicolas.dechesne@linaro.org
> >:
> >
> > > On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun <
> kevinthesunwy@gmail.com>
> > > 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 toolchains don't  support hard float? How can I
> > > solve
> > > > this problem?
> > > >
> > > > These are my set in the environment file of 1.5.1 toolchain:
> > > > export CC="arm-poky-linux-gnueabi-gcc  -march=armv5te -marm
> > > > -mthumb-interwork -mfloat-abi=hardfp
> > > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > > export CXX="arm-poky-linux-gnueabi-g++  -march=armv5te -marm
> > > > -mthumb-interwork -mfloat-abi=hardfp
> > > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > > export CPP="arm-poky-linux-gnueabi-gcc -E  -march=armv5te -marm
> > > > -mthumb-interwork -mfloat-abi=hardfp
> > > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > >
> > > > It ran into error.
> > >
> > >
> > > maybe because the gcc documentation says -mfloat-abi=hard, not =hardfp
> ?
> > >
> > > in general, showing us the error you have is much preferred, otherwise
> > > it's difficult to help if we don't really know what went wrong.
> > >
> > > cheers.
> > >
>

[-- Attachment #2: Type: text/html, Size: 3321 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-11  0:51                     ` Wy kevinthesun
@ 2014-10-11  1:16                       ` Denys Dmytriyenko
  2014-10-11  5:19                         ` Wy kevinthesun
  0 siblings, 1 reply; 16+ messages in thread
From: Denys Dmytriyenko @ 2014-10-11  1:16 UTC (permalink / raw)
  To: Wy kevinthesun; +Cc: Yocto list discussion

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 1.5.1 system.

Can you please explain how you got your "1.5.1 yocto system"? Did you built it 
yourself or downloaded prebuilt from the site? If latter, then it should match 
the toolchain...


> 2014-10-10 16:27 GMT-07:00 Denys Dmytriyenko <denis@denix.org>:
> 
> > 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 executables    Hello        -1    Configure
> > Problem
> > > in `/home/kevinthefire/workspace/Hello':    Hello        -1    Configure
> > > Problem
> > > make: *** No rule to make target `all'.    Hello             C/C++
> > Problem
> >
> > That doesn't sound like a toolchain error, but rather an autotools one.
> > Make
> > sure you are setting up cross compilation properly.
> >
> >
> > > 2014-10-09 23:12 GMT-07:00 Nicolas Dechesne <nicolas.dechesne@linaro.org
> > >:
> > >
> > > > On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun <
> > kevinthesunwy@gmail.com>
> > > > 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 toolchains don't  support hard float? How can I
> > > > solve
> > > > > this problem?
> > > > >
> > > > > These are my set in the environment file of 1.5.1 toolchain:
> > > > > export CC="arm-poky-linux-gnueabi-gcc  -march=armv5te -marm
> > > > > -mthumb-interwork -mfloat-abi=hardfp
> > > > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > > > export CXX="arm-poky-linux-gnueabi-g++  -march=armv5te -marm
> > > > > -mthumb-interwork -mfloat-abi=hardfp
> > > > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > > > export CPP="arm-poky-linux-gnueabi-gcc -E  -march=armv5te -marm
> > > > > -mthumb-interwork -mfloat-abi=hardfp
> > > > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > > >
> > > > > It ran into error.
> > > >
> > > >
> > > > maybe because the gcc documentation says -mfloat-abi=hard, not =hardfp
> > ?
> > > >
> > > > in general, showing us the error you have is much preferred, otherwise
> > > > it's difficult to help if we don't really know what went wrong.
> > > >
> > > > cheers.
> > > >
> >


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Cannot run simple binary executable file
  2014-10-11  1:16                       ` Denys Dmytriyenko
@ 2014-10-11  5:19                         ` Wy kevinthesun
  0 siblings, 0 replies; 16+ messages in thread
From: Wy kevinthesun @ 2014-10-11  5:19 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 3173 bytes --]

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 <denis@denix.org>:

> 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 1.5.1 system.
>
> Can you please explain how you got your "1.5.1 yocto system"? Did you
> built it
> yourself or downloaded prebuilt from the site? If latter, then it should
> match
> the toolchain...
>
>
> > 2014-10-10 16:27 GMT-07:00 Denys Dmytriyenko <denis@denix.org>:
> >
> > > 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 executables    Hello        -1    Configure
> > > Problem
> > > > in `/home/kevinthefire/workspace/Hello':    Hello        -1
> Configure
> > > > Problem
> > > > make: *** No rule to make target `all'.    Hello             C/C++
> > > Problem
> > >
> > > That doesn't sound like a toolchain error, but rather an autotools one.
> > > Make
> > > sure you are setting up cross compilation properly.
> > >
> > >
> > > > 2014-10-09 23:12 GMT-07:00 Nicolas Dechesne <
> nicolas.dechesne@linaro.org
> > > >:
> > > >
> > > > > On Thu, Oct 9, 2014 at 10:27 PM, Wy kevinthesun <
> > > kevinthesunwy@gmail.com>
> > > > > 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 toolchains don't  support hard float? How
> can I
> > > > > solve
> > > > > > this problem?
> > > > > >
> > > > > > These are my set in the environment file of 1.5.1 toolchain:
> > > > > > export CC="arm-poky-linux-gnueabi-gcc  -march=armv5te -marm
> > > > > > -mthumb-interwork -mfloat-abi=hardfp
> > > > > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > > > > export CXX="arm-poky-linux-gnueabi-g++  -march=armv5te -marm
> > > > > > -mthumb-interwork -mfloat-abi=hardfp
> > > > > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > > > > export CPP="arm-poky-linux-gnueabi-gcc -E  -march=armv5te -marm
> > > > > > -mthumb-interwork -mfloat-abi=hardfp
> > > > > > --sysroot=/opt/poky/1.5.1/sysroots/armv5te-poky-linux-gnueabi"
> > > > > >
> > > > > > It ran into error.
> > > > >
> > > > >
> > > > > maybe because the gcc documentation says -mfloat-abi=hard, not
> =hardfp
> > > ?
> > > > >
> > > > > in general, showing us the error you have is much preferred,
> otherwise
> > > > > it's difficult to help if we don't really know what went wrong.
> > > > >
> > > > > cheers.
> > > > >
> > >
>

[-- Attachment #2: Type: text/html, Size: 4562 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-10-11  5:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07 11:07 Cannot run simple binary executable file Wy kevinthesun
2014-10-07 15:17 ` Khem Raj
2014-10-07 15:21 ` Nicolas Dechesne
2014-10-08  1:17   ` Wy kevinthesun
2014-10-08  2:05     ` Wy kevinthesun
2014-10-08 20:43       ` Denys Dmytriyenko
2014-10-08 21:34         ` Wy kevinthesun
2014-10-08 22:04           ` Maciej Borzecki
2014-10-09  7:10           ` Nicolas Dechesne
2014-10-09 20:27             ` Wy kevinthesun
2014-10-10  6:12               ` Nicolas Dechesne
2014-10-10 23:15                 ` Wy kevinthesun
2014-10-10 23:27                   ` Denys Dmytriyenko
2014-10-11  0:51                     ` Wy kevinthesun
2014-10-11  1:16                       ` Denys Dmytriyenko
2014-10-11  5:19                         ` Wy kevinthesun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.