Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec /bin/sh: exec format error #567

Closed
zoldaten opened this issue Sep 10, 2022 · 3 comments
Closed

exec /bin/sh: exec format error #567

zoldaten opened this issue Sep 10, 2022 · 3 comments
Labels
compile User has trouble compiling on their own platform.

Comments

@zoldaten
Copy link

hi!
i`m trying to build docker on raspberry pi(
ubuntu Release: 20.04
Linux version 5.4.0-1015-raspi (buildd@bos02-arm64-074) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #15-Ubuntu SMP Fri Jul 10 05:34:24 UTC 2020)
and crash at step 2/7:

Step 2/7 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive         apt-get install -y      git wget autoconf automake nano    python3-dev python3-pip python3-scipy python3-matplotlib        ipython3 python3-wxgtk4.0 python3-tk python3-igraph        libeigen3-dev libboost-all-dev libsuitesparse-dev  doxygen         libopencv-dev   libpoco-dev libtbb-dev libblas-dev liblapack-dev libv4l-dev        python3-catkin-tools python3-osrf-pycommon
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in ad35f7b62fd9
exec /bin/sh: exec format error
The command '/bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive        apt-get install -y git wget autoconf automake nano         python3-dev python3-pip python3-scipy python3-matplotlib  ipython3 python3-wxgtk4.0 python3-tk python3-igraph      libeigen3-dev libboost-all-dev libsuitesparse-dev  doxygen         libopencv-dev   libpoco-dev libtbb-dev libblas-dev liblapack-dev libv4l-dev        python3-catkin-tools python3-osrf-pycommon' returned a non-zero code: 1

i tried to add to docker file a first line:
#!/bin/sh
but i didnt help.

how to go proceed building ?

@goldbattle goldbattle added the compile User has trouble compiling on their own platform. label Sep 14, 2022
@goldbattle
Copy link
Collaborator

goldbattle commented Sep 14, 2022

It looks like you are trying to build on a amd64 platform. I don't know if docker can do this.

@zoldaten
Copy link
Author

i have built from source without docker

@gorghino
Copy link

gorghino commented Mar 1, 2023

I had the same problem with my Jetson NX (arm64) and I changed the docker image in the Dockerfile

I used
FROM arm64v8/ros:noetic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile User has trouble compiling on their own platform.
Projects
None yet
Development

No branches or pull requests

3 participants