• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cannot execute file: Exec format error - NETPI

  1. We created an app to run on NETPI, 
  2. compiled in a development environment: ubuntu x64 - gcc compiler 
  3. We used the Image : hilschernetpi/netpi-raspbian 
  4. When trying to run the application, the following error occurs: 
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extentpermitted by applicable law.Last login: Wed Jan 12 18:08:29 2022 from

pi@cdd519efd855:~/app$ ./teg9000 
bash: ./teg9000: cannot execute  file: Exec format error

you try to run a program that is not made for the type of CPU your Linux is currently running on.

The hilschernetpi/netpi-raspbian container image is compiled as ARM32V7 processor architecture. It is made to run on ARM processors as netPI is supporting.

If you now compile a program unter x86 conditions and try to run in in netpi-raspbian container it will never succeed to run on ARM based devices such as netPI.

You have to switch your GCC compiler setting to compile your executeable in ARM32 mode.

You never fail until you stop trying.“, Albert Einstein (1879 - 1955)


Possibly Related Threads…
Thread Author Replies Views Last Post
  Initial Setup of Control Panel with admin + admin thorws error Michi 4 3,268 January-28th-2022, 09:28 AM
Last Post: Michi
  netPI opc ua server pull image error wswitula 3 3,464 August-27th-2021, 10:47 AM
Last Post: wswitula
  GSDML File royazriel 6 7,641 October-7th-2020, 08:39 PM
Last Post: Armin@netPI
  HilscherAutomation / netPI-bluetooth entrypoint.sh error bbaskii 6 4,740 September-14th-2020, 04:42 PM
Last Post: bbaskii
  Error when using a node 'OpcUaServer' tad 6 5,757 May-12th-2020, 08:35 AM
Last Post: tad
  GSDML file milesie 2 5,259 February-18th-2020, 05:18 PM
Last Post: Armin@netPI
  file folder with netPI RTE MGharat 1 2,381 December-5th-2019, 07:04 AM
Last Post: Armin@netPI
  netPI Node-Red fieldbus node Error PersEE 5 5,621 October-8th-2019, 03:55 PM
Last Post: Armin@netPI
  error when using GPIO from Python dcatteeu 4 5,075 September-10th-2019, 02:45 PM
Last Post: dcatteeu
  [SOLVED] Faulty devices description file from Github Whatzittoya13 5 4,041 March-11th-2019, 11:58 AM
Last Post: Armin@netPI

Forum Jump:

Users browsing this thread: 1 Guest(s)