'Exec format error' when running global tool on ARM32
See original GitHub issueInstalling a global tool on ARM32 doesn’t run. Fails with cannot execute binary file: Exec format error
.
Repro Steps
- Requirement - run from an ARM32 machine.
- docker run -it --rm mcr.microsoft.com/dotnet/core/sdk:3.0
- dotnet tool install --tool-path /mytool <some tool>
- cd /mytool
- execute installed tool
Results
cannot execute binary file: Exec format error`
Expected Results
The tool should run
Observations
- I verified this scenario works for 2.1 but not 3.0.
- The app will run if you path down to the .store/…/tools folder and run dotnet/tool.dll
- 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:
- Created 5 years ago
- Comments:10 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just tried running a tool on ARM32 (no containers). It works.
The issue I linked to is also resolved.
sorry i have no update. I’ll look into it today