This repository was archived by the owner on Mar 4, 2026. It is now read-only.
Add ARM64 support for Apple Silicon compatibility#18
Open
yadvendranaveen wants to merge 6 commits intoblockapps:mainfrom
Open
Add ARM64 support for Apple Silicon compatibility#18yadvendranaveen wants to merge 6 commits intoblockapps:mainfrom
yadvendranaveen wants to merge 6 commits intoblockapps:mainfrom
Conversation
- Created Dockerfile.buildbase.arm64 with GHC 9.6.3 for ARM64 - Modified strato/stack.yaml to use system-ghc and disable Docker section - Added ARM64 build target to Makefile - Added comprehensive documentation in README-ARM64-SUPPORT.md Resolves architecture compatibility issues on Apple Silicon Macs.
Member
There was a problem hiding this comment.
Thanks for this work!
This stack.yaml part would need parameterizing too, because as it stands I think the change to this file would break the other configurations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The STRATO Mercata project could not run on Apple Silicon (ARM64) due to architecture incompatibility. The project used x86_64-only Docker images and Stack configurations, making it impossible to build natively on ARM64 systems.
Solution
This PR adds comprehensive ARM64 support by:
🐳 New ARM64 Docker Image
Dockerfile.buildbase.arm64with GHC 9.6.3 for ARM64lts-22.4Stack resolver⚙️ Stack Configuration Fixes
strato/stack.yamlto disable Docker-in-Docker conflictssystem-ghc: trueto use the installed GHC instead of downloading🛠️ Build System Integration
build_buildbase_arm64target to Makefile📚 Documentation
README-ARM64-SUPPORT.mdTechnical Details
lts-22.4resolver)docker run -it --rm -v $(pwd):/strato-platform strato-buildbase:lts-22.4-arm64 bash -c "cd /strato-platform/strato && stack --system-ghc --no-install-ghc build"Testing
✅ Verified ARM64 Docker image builds successfully
✅ Confirmed Stack uses system GHC without downloading
✅ Tested Haskell package compilation on ARM64
✅ Validated build process works natively on Apple Silicon
Benefits
Usage
For Apple Silicon users:
This PR resolves architecture compatibility issues while maintaining the project's build system integrity.