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

  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 192.168.3.53


pi@cdd519efd855:~/app$ ./teg9000 
bash: ./teg9000: cannot execute  file: Exec format error
pi@cdd519efd855:~/app$
  Reply
#2
Hi,

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.

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

  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  netPI opc ua server pull image error wswitula 3 927 August-27th-2021, 10:47 AM
Last Post: wswitula
  GSDML File royazriel 6 2,864 October-7th-2020, 08:39 PM
Last Post: Armin@netPI
  HilscherAutomation / netPI-bluetooth entrypoint.sh error bbaskii 6 1,859 September-14th-2020, 04:42 PM
Last Post: bbaskii
  Error when using a node 'OpcUaServer' tad 6 2,215 May-12th-2020, 08:35 AM
Last Post: tad
  GSDML file milesie 2 1,776 February-18th-2020, 05:18 PM
Last Post: Armin@netPI
  file folder with netPI RTE MGharat 1 871 December-5th-2019, 07:04 AM
Last Post: Armin@netPI
  netPI Node-Red fieldbus node Error PersEE 5 2,714 October-8th-2019, 03:55 PM
Last Post: Armin@netPI
  error when using GPIO from Python dcatteeu 4 1,947 September-10th-2019, 02:45 PM
Last Post: dcatteeu
  [SOLVED] Faulty devices description file from Github Whatzittoya13 5 1,409 March-11th-2019, 11:58 AM
Last Post: Armin@netPI
  fieldbus in error Schranz 7 2,345 March-13th-2018, 07:28 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)