-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Help building for aarch64 #189
Comments
@renesecur, a little disclaimer: I am very not versed in system architecture and this is really touching the edge of my expertise :/ My get-go approach here would be to look at Haskell.nix and the cross-compilation features from it. Regarding your approach however, note that there's no reason to use Thus, if you're already familiar with cabal and got something to work for cardano-node, I'd encourage you to continue in that direction? |
Excellent. That was the golden tip. Got it building now at least. Next step is to test the binary actually does what it's supposed to. Updated Dockerfile attached. Ran for 59 minutes on AWS CodeBuild with config
|
@renesecur that's nice! Are you going to maintain this configuration somewhere versioned? Maybe we can link to it from the user guide? |
Yes I will, but we have all our code in codeCommit at the moment. I'll move this one to github for ease of use |
@renesecur May we close this one in the end 🤔 ? |
I'd like to build Ogmios for ARM64. I've come a long way, but seem to be stuck. This issue is an ask for help to see if we can get it working.
Please find a Dockerfile attached that I am using. Note that I've copied parts (GCH, Cabal and Libsodium) from the Dockerfile I have been using already to successfully build cardano-node. The tricky bit I think is with stack.
I've found commercialhaskell/stack#2103 (comment) this comment. It mentions that they are looking to add aarch64 build artifacts to their releases and I can see one for 2.7.1 which I am grabbing in my Dockerfile.
The part where it seems to be failing is with the actual stack command. I have no idea whether it is a compatibility between stack and cabal/GHC versions or that ogmios requires higher than 2.7.1 of stack.
This is the build error I'm currently running into:
Dockerfile.txt
Btw: git clone command here can be improved to use the https link as the git link requires authentication
The text was updated successfully, but these errors were encountered: