question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Exec format error' when running global tool on ARM32

See original GitHub issue

Installing a global tool on ARM32 doesn’t run. Fails with cannot execute binary file: Exec format error.

Repro Steps

  1. Requirement - run from an ARM32 machine.
  2. docker run -it --rm mcr.microsoft.com/dotnet/core/sdk:3.0
  3. dotnet tool install --tool-path /mytool <some tool>
  4. cd /mytool
  5. execute installed tool

Results

cannot execute binary file: Exec format error`

Expected Results

The tool should run

Observations

  1. I verified this scenario works for 2.1 but not 3.0.
  2. The app will run if you path down to the .store/…/tools folder and run dotnet/tool.dll
  3. This was discovered with testing installing PowerShell as a global tool - https://github.com/dotnet/dotnet-docker/pull/960#discussion_r266060183. PowerShell in this case is built against 2.1 but has a custom roll forward policy defined - https://github.com/dotnet/core-setup/blob/master/Documentation/design-docs/roll-forward-on-no-candidate-fx.md. I don’t know if that is a factor or not. It works just find in amd64.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
richlandercommented, Mar 28, 2019

I just tried running a tool on ARM32 (no containers). It works.

The issue I linked to is also resolved.

1reaction
wli3commented, Mar 28, 2019

sorry i have no update. I’ll look into it today

Read more comments on GitHub >

github_iconTop Results From Across the Web

linux - exec format error when building docker image from ...
2 Answers. You need to enable execution of different multi-architecture containers by QEMU and binfmt_misc. Note that this may reconfigure any ...
Read more >
Exec format error - Raspberry Pi Forums
This error is almost always caused by trying to run x86 binaries on the Pi. It boils down to: You can't install arbitrary...
Read more >
Exec format error while running java 11.0.7-open with ...
cannot execute binary file : Exec format error while running java 11.0.7-open with sdkman · What is the output of the command file...
Read more >
Exec format error with Hello World project on RaspberryPi
The exec format error appears on the first run of GCC after the git clones of tools and source have successfully completed.
Read more >
error trying to run arduino ide - IDE 1.x
I was using the arduino ide that I got with apt-get and it was working but i wanted the ... cannot execute binary...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found