Comments (7)
Unfortunately this will need to be fixed upstream. The last stack release to include ARM64 binaries was 2.7.1 and they don't appear to work in debian buster.
The only work around for now is to use the ghcup unofficial binaries. You can install ghcup in a docker image and install stack this way. Unofficial binaries are not appropriate for official docker images though so can't take that approach here.
from docker-haskell.
Stack has had patchy support of arm64 in the past, but it is not officially supported.
The last released binary is for stack 2.7.1, however I get this failure on debian buster.
There are unofficial binaries that ghcup uses, but I don't think official images should include anything unofficial.
I have the same problem, did you find a workaround? Maybe another image that works with both ARM64 and AMD64?
from docker-haskell.
I think the only workaround currently is to use an image based on ghcup, as ghcup includes unofficial ARM64 binaries for stack that I assume work.
I have poked the stack folk about fixing ARM64 support and there was some interest, but no movement as of yet.
from docker-haskell.
Same here on my ARM / aarch64:
sander@nanopineo2:~$ docker run -it haskell:latest /bin/bash
root@04f4e5aea8f2:/# uname -a
Linux 04f4e5aea8f2 5.10.60-sunxi64 #21.08.1 SMP Wed Aug 25 18:29:57 UTC 2021 aarch64 GNU/Linux
root@04f4e5aea8f2:/# stack
bash: stack: command not found
root@04f4e5aea8f2:/#
A solution would be nice.
from docker-haskell.
Stack is producing aarch64 binaries again, but they still do not work on debian buster.
from docker-haskell.
This has been resolved
from docker-haskell.
@AlistairB FYI commercialhaskell/stack#6142
from docker-haskell.
Related Issues (20)
- Add image for GHC 9.6 HOT 4
- Update GHC 9.4 to version 9.4.5
- Bump stack to 2.11.1 HOT 1
- 9.4.5 doesn't include the correct GHC HOT 2
- Include language server HOT 2
- Update official 9.8 images HOT 1
- Official Devcontainer feature and template HOT 1
- Include llvm in image HOT 10
- Add GHC 9.10 image HOT 1
- Cut a release with the new GHC 9.10 image HOT 2
- The PATH environment variable does not contain the path to ghc when using docker-compose HOT 3
- Templating solution
- Looking for maintainers HOT 34
- Request for Debian bullseye/stable-based images HOT 9
- Add docker image with GHCup and/or HLS for use with devcontainers HOT 7
- 137 exit status on Cabal package installations with DOCKER_DEFAULT_PLATFORM=linux/amd64 on an M1 Mac HOT 3
- Build for Multi-Arch failing (arm64 / aarch64) HOT 10
- Cannot find -lnuma when building executables on arm64 image HOT 2
- Haddock can't find link destinations HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-haskell.