2010-03-30 02:38:50     compilation error--could not execute binary file

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2010-03-30 02:38:50     compilation error--could not execute binary file

Lee David (CHINA)

Message: 87818   

 

Hi all, I am a begginer in Embedded System. Recently I am trying to compile uclinux-dist-2009R1.1-RC4 and generate a .image file(for BF561 EXKIT), and met this error, could not do solve it alone.

 

$make menuconfig

 

.......(no error)

 

$make

 

......

 

......(after 7-8 minutes)

 

/opt/uClinux/bfin-elf/bin//bfin-elf-gcc: /opt/uClinux/bfin-elf/bin//bfin-elf-g

cc : cannot execute binary file

make[5]: *** [test_c.o] Error 126

make[5]: Leaving directory `/home/uClinux-dist/user/blkfin-apps/corebld/exampl

e'

make[4]: *** [all_subdirs] Error 2

make[4]: Leaving directory `/home/uClinux-dist/user/blkfin-apps/corebld'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/uClinux-dist/user/blkfin-apps'

make[2]: *** [blkfin-apps] Error 2

make[2]: Leaving directory `/home/uClinux-dist/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/uClinux-dist/user'

make: *** [subdirs] Error 1

*************************************

 

My platform:redhat 2.6.9 on VMware

 

GCC:gcc version 3.4.6

 

I have installed the following toolchain:

 

blackfin-toolchain-uclibc-default-gcc-3.4-addon-08r1-8.i386.rpm

 

blackfin-toolchain-uclibc-default-09r1.1-2.i386.rpm

 

blackfin-toolchain-gcc-3.4-addon-08r1-8.i386.rpm

 

blackfin-toolchain-elf-gcc-4.1-08r1-8.i386.rpm

 

blackfin-toolchain-elf-gcc-3.4-addon-08r1-8.i386.rpm.

 

I would be really grateful if anyone could help me. Anyway, thanks in advance

 

 

TranslateQuoteReplyEditDelete

 

 

2010-03-30 02:52:58     Re: compilation error--could not execute binary file

Mike Frysinger (UNITED STATES)

Message: 87819   

 

dont mix toolchain versions.  use only 2009R1.1 releases.

QuoteReplyEditDelete

 

 

2010-03-30 08:06:58     Re: compilation error--could not execute binary file

Lee David (CHINA)

Message: 87854   

 

dont mix toolchain versions.  use only 2009R1.1 releases.

 

---

 

Hi Mike, thanks for your reply!

 

I have tried uClinlux-dist-2008 too, but it also failed and ended up with the same error.

 

Do you mean installing gcc-4.1 and use the above toolchains along with uClinux-dist-2009? thanks.

TranslateQuoteReplyEditDelete

 

 

2010-03-30 15:03:01     Re: compilation error--could not execute binary file

Mike Frysinger (UNITED STATES)

Message: 87858   

 

please read the FAQ (Why do I need to use the same version of toolchain/kernel/uClibc/U-boot/uClinux-dist?):

http://docs.blackfin.uclinux.org/doku.php?id=faq

QuoteReplyEditDelete

 

 

2010-03-30 21:56:27     Re: compilation error--could not execute binary file

Lee David (CHINA)

Message: 87873   

 

Thanks. I'll try out.

TranslateQuoteReplyEditDelete

Attachments

    Outcomes