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

standard_init_linux.go:211: exec user process caused "exec format error" on make build ARCH=arm32v7 #5

Open
liampaull opened this issue Aug 12, 2020 · 2 comments

Comments

@liampaull
Copy link
Member

# create build environment
docker build \
	-t arm32v7/dt_apriltags:wheel-python \
	--build-arg ARCH="arm32v7" \
	--build-arg PYTHON_VERSION=""2"" \
	/home/liam/sandbox/lib-dt-apriltags/
Sending build context to Docker daemon  13.59MB
Step 1/17 : ARG PYTHON_VERSION="PYTHON_VERSION_NOT_SET"
Step 2/17 : ARG ARCH="ARCH_NOT_SET"
Step 3/17 : FROM ${ARCH}/ubuntu:18.04
18.04: Pulling from arm32v7/ubuntu
de691405df56: Pull complete 
e5a766b93ee2: Pull complete 
8c97e104d736: Pull complete 
d7a97b3bf2bf: Pull complete 
Digest: sha256:8d8280314eac99b6ce1e5307d0093411150a8c09b59f390658952d50139c4722
Status: Downloaded newer image for arm32v7/ubuntu:18.04
 ---> 40d364ec676a
Step 4/17 : ARG ARCH
 ---> Running in 4ce703c96804
Removing intermediate container 4ce703c96804
 ---> 80d0b7d1669f
Step 5/17 : ARG PYTHON_VERSION
 ---> Running in c128de70543c
Removing intermediate container c128de70543c
 ---> d906bb946c05
Step 6/17 : ENV QEMU_EXECVE 1
 ---> Running in b603e3e8d381
Removing intermediate container b603e3e8d381
 ---> 6f0499da46e0
Step 7/17 : COPY ./assets/qemu/${ARCH}/ /usr/bin/
 ---> 734af0b66598
Step 8/17 : RUN apt-get update &&   apt-get install -y     python${PYTHON_VERSION}     python${PYTHON_VERSION}-pip     cmake
 ---> Running in 10090cc4b8a3
standard_init_linux.go:211: exec user process caused "exec format error"
@liampaull
Copy link
Member Author

@afdaniele any ideas?

@afdaniele
Copy link
Member

@liampaull
yes, you can build for a different arch only after you set up QEMU. You need to run this on your computer

docker run --rm --privileged multiarch/qemu-user-static:register --reset

You don't see this with dts devel build because the shell does it for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants