ghc-pkg: memory allocation failed (requested 274878955520 bytes)
Summary
All GHC binaries suffering an issue that allocating invalid size of memory on jailbroken iOS with following error
memory allocation failed (requested 274878955520 bytes)
Steps to reproduce
compile GHC with both host and target aarch64-apple-ios
Expected behavior
No memory allocation issue should occur
Environment
- GHC version used: 9.2.1
Optional:
- Operating System: iOS 14.3 (Darwin Kernel Version 20.2.0: Fri Nov 13 01:00:15 PST 2020; xnu-7195.62.1~4/RELEASE_ARM64_T8015)
- System Architecture: arm64/arm64e