-
Notifications
You must be signed in to change notification settings - Fork 7
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
Building llvm 9 fails on macOS 10.15 #17
Comments
I'm still on 10.14 but I'll see if I can find a 10.15 box to try it on. The |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building llvm 9 with
brew install --build-from-source llvm-hs/llvm/llvm-9
fails on macOS 10.15 on my machine.The macports community already found a fix for this: https://trac.macports.org/ticket/61477. The ticket concerns macOS 11.0 but as far as I understand this also applies to 10.15 if MacOSX11.0.sdk is present (macports/macports-ports@eabdb0e). The error I'm getting is the exact same as in that ticket:
Setting
-DDARWIN_osx_ARCHS="x86_64;x86_64h"
seems to resolve the issue. However when-DLLVM_BUILD_EXTERNAL_COMPILER_RT
is used that setting doesn't seem to be taken into account. Finally to make the build work without-DLLVM_BUILD_EXTERNAL_COMPILER_RT
again I also had to specify-DCMAKE_OSX_ARCHITECTURES="x86_64"
.Is removing
-DLLVM_BUILD_EXTERNAL_COMPILER_RT
a problem? To be honest I'm not sure why it was turned on and what the implications of turning it off are. For my compiler project with llvm-hs the build works fine.The text was updated successfully, but these errors were encountered: