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 format error #1

Open
luandro opened this issue Oct 4, 2018 · 9 comments
Open

exec format error #1

luandro opened this issue Oct 4, 2018 · 9 comments

Comments

@luandro
Copy link

luandro commented Oct 4, 2018

Cloned and ran using a aarch64 architecture. This is the error:

standard_init_linux.go:190: exec user process caused "exec format error"

Any ideas?

@totoCZ
Copy link

totoCZ commented Nov 8, 2018

You want to build this on x64. I tried the same and then facepalmed since it's a cross-compiler image.

resin-xbuild: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped

@MagicJohnJang
Copy link

Anyone solved it?

1 similar comment
@Liu-Richard
Copy link

Anyone solved it?

@scaleoutsean
Copy link

Solved what?

The second comment explained this container is built for x86_64 architecture.

@jarrettj
Copy link

jarrettj commented Sep 1, 2019

So if I do a uname -m I get aarch64. How would one overcome the above error? Thanks.

@ubtjoe
Copy link

ubtjoe commented Sep 12, 2019

Uhhhh, so I need to have an x86 machine in order to build docker-compose for an aarch64...

Can someone provide some clarity on this? Something (like a single sentence) in the README would have preempted this issue entirely.

@dkebler
Copy link

dkebler commented Sep 15, 2019

per other issue #4 one can build on aarch64 by removing a couple lines that invoke the cross compile. Haven't tried it yet but will report back

@dkebler
Copy link

dkebler commented Sep 15, 2019

couldn't get either cross or direct build working with this Dockerfile...but I discovered a somewhat obvious alternative package is available via pip!
https://pypi.org/project/docker-compose/

You need to this on your arm64 box obviously. On mine I had to install these additional dev libraries below (you maybe be missing others like build-essential if you never have complied any C code before). I'm running python 3.6 by default on that box.

sudo apt-get install libffi-dev python3-dev libssl-dev

then

pip install docker-compose
(or pip3 is pip doesn't point to pip3)

little slow to compile on the board itself but...TADA

Easily upgradable in future with --upgrade

@ubtjoe
Copy link

ubtjoe commented Sep 16, 2019

@dkebler I found this link. It goes through what you present above. I verified that the steps outlined therein work on my Jetson Xavier platform board.

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

8 participants