[Bug 261798] lang/ghc: Fails to compile due to base/ports LLVM triple target names: error: Warning: Couldn't figure out LLVM version!
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 261798] lang/ghc: fix llvm code generation"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Feb 2022 00:32:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261798 --- Comment #2 from Brooks Davis <brooks@FreeBSD.org> --- I dug back to llvm60 (the version in the ghc issue) and don't see an obvious path for amd64-portbld-freebsd to end up on the target list. The relevant cmake flags are: -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-portbld-freebsd13.0 -DLLVM_HOST_TRIPLE=x86_64-portbld-freebsd13.0 If we once patched the port to use that triple it's been a long time (though maybe it was a change in cmake infrastructure?). Presumably ghc should be patched to look for x86_64. Looking at the patch, I might leave the amd64 lines alone and simply add the new one. On the LLVM port side, there's an argument there's an argument for dropping `portbld` from LLVM_DEFAULT_TARGET_TRIPLE since it's non-standard, but I don't think that's especially related to this PR. -- You are receiving this mail because: You are the assignee for the bug.