Open hasufell opened 2 years ago
In GitLab by @maerwald on Jan 8, 2022, 22:07
Looks like either a project or ghc issue to me.
@angerman @bgamari
In GitLab by @angerman on Jan 8, 2022, 22:23
Try llvm 12. But I think I’ve seen that big once before, a long time ago though.
In GitLab by @mixman on Jan 10, 2022, 21:49
I received a reply on https://developer.apple.com/forums/thread/698203 that this is indeed a linker bug related to chained fixups format introduced in macOS 12.
All programs and dylibs built with a deployment target of macOS 12 or iOS 15 or later now use the chained fixups format. This uses different load commands and LINKEDIT data, and won’t run or load on older OS versions. (49851380)
In GitLab by @angerman on Jan 10, 2022, 22:03
@bgamari what did we bump macOS min version to?
In GitLab by @mixman on Jan 11, 2022, 04:39
For the most part builds work fine on macOS 12. The individual apps within this very same project build fine. Bringing it all together hits this linker failure. There are some C libraries in use like lzma (with known issues https://github.com/haskell-hvr/lzma/issues/21). Bug report filed with Apple (9839914) to get more eyes on the issue.
In GitLab by @bgamari on Jan 11, 2022, 05:03
The minimum deployment target is now 10.10.
In GitLab by @stuartkurtz on Jan 18, 2022, 05:41
GHC 9.2.1 works, 9.0.x, 8.10.x do not. Perhaps the GHC team already has this one figured out.
In GitLab by @angerman on Jan 18, 2022, 06:19
9.2 doesn’t use llvm and comes with a native code generator for AArch64.
In GitLab by @maerwald on Jan 19, 2022, 19:49
from that thread:
It seems that GHC is doing something wrong and our resolution for this bug will be to convert that assert into a proper error message.
In GitLab by @maerwald on Jan 19, 2022, 19:51
Does this mean we should rebuild the 8.10.7 and 9.0.2 bindists with a different deployment target?
In GitLab by @mixman on Jan 8, 2022, 19:23
Hi! Any pointers on getting GHCUp installed GHC/Cabal with LLVM working on an M1 laptop?
I'm failing to build this project on aarch64-osx with ghcup+llvm. However, -O0 builds fine as does Rosetta's x86_64-osx.
Prerequisitives:
1) Homebrew:
2) GHCUp
Steps to reproduce:
WITHOUT llvm:
WITH llvm:
Runtime information
$ uname -a
$ clang --version
$ gcc --version
$ cabal --version
$ ghc --info
I'm stumped. Tips?