bash: ./ch.elf: cannot execute binary file: exec format error chibiOS error
Posted: Fri Jun 19, 2020 10:33 am
Hello,
I tried to execute one of the demos ('RT-ARMCM4-GENERIC') , I have successfully build the project. But when I tried to execute the program then I get error 'bash: ./ch.elf: cannot execute binary file: exec format error chibiOS error'.
I know my executable is 'ELF 32-bit LSB executable' and I am running on Ubuntu 'x86_64 x86_64 x86_64 GNU/Linux'. So I have already installed gcc-multilib and 'sudo apt-get install gcc-multilib libc6-dev-i386' but still I have the same problem.Can you please help me to solve this issue.
Thanks!!
I tried to execute one of the demos ('RT-ARMCM4-GENERIC') , I have successfully build the project. But when I tried to execute the program then I get error 'bash: ./ch.elf: cannot execute binary file: exec format error chibiOS error'.
I know my executable is 'ELF 32-bit LSB executable' and I am running on Ubuntu 'x86_64 x86_64 x86_64 GNU/Linux'. So I have already installed gcc-multilib and 'sudo apt-get install gcc-multilib libc6-dev-i386' but still I have the same problem.Can you please help me to solve this issue.
Thanks!!