You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I'm still on 10.14 but I'll see if I can find a 10.15 box to try it on.
The -DLLVM_BUILD_EXTERNAL_COMPILER_RT flag was required to fix some other problem a long time ago, but maybe it's not necessary anymore (maybe when building for aarch64?) so perhaps we can remove it.
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: