AnsweredAssumed Answered

SDK1.3.2 compile files but can not execute?

Question asked by xuehui li on May 22, 2016
Latest reply on May 27, 2016 by Pavel Chubakov

Hello Sir,

    I run the SDK1.3.2 virtual machine, build the new image for p1020rdb-pc,  then I compile hello.c to hello, download the hello to p1020rdb-pc target board, execute ./hello but can not execute:(its gcc is 4.6.2)

$/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-gcc hello.c -o hello --sysroot=/opt/fsl/1.2/sysroots/ppce500v2-fsl-linux-gnuspe

root@p1020rdb-pc:~/hello# ls -l

-rwxrwxrwx    1 root     root          7041   May 22    2016   hello

-rwxr-xr-x       1 root     root          8309   May 22   12:53   helloworld

root@p1020rdb-pc:~/hello# ./hello

-sh: ./hello: cannot execute binary file

root@p1020rdb-pc:~/hello# ./helloworld


The helloword is OK, it is compiled by SDK1.7 virtual machine on other computer, its gcc is 4.8.1 ,

How to resolve the problem on SDK1.3.2 ?