Cxx.jl
Cxx.jl copied to clipboard
Failed to build Julia-v0.5 on OSX 10.12 (Sierra)
Tried to build julia-v0.5
on MacOS Sierra (10.12.1), and observed the error below.
Note that I cloned fresh the julia repo and ran make
with the following Make.user
file settings
#GCC >= 5 will not work
#override USECLANG=1
override BUILD_LLVM_CLANG=1
override USE_LLVM_SHLIB=1
# Optional, but recommended
override LLVM_ASSERTIONS=1
# For LLDB support also
# override BUILD_LLDB=1
# override LLDB_DISABLE_PYTHON=1
llvm[6]: Copying runtime library darwin/eprintf to build dir llvm[6]: Copying runtime library darwin/10.4 to build dir llvm[6]: Copying runtime library darwin/osx to build dir llvm[6]: Copying runtime library darwin/cc_kext to build dir llvm[6]: Copying runtime library darwin/asan_osx_dynamic to build dir llvm[6]: Copying runtime library darwin/profile_osx to build dir llvm[6]: Copying runtime library darwin/ubsan_osx_dynamic to build dir llvm[6]: Copying runtime library darwin/ios to build dir cp: /Users/Max/julia/deps/scratch/llvm-3.7.1/build_Release+Asserts/tools/clang/runtime/compiler-rt/clang_darwin/ios/libcompiler_rt.a: No such file or directory make[6]: *** [/Users/Max/julia/deps/scratch/llvm-3.7.1/build_Release+Asserts/Release+Asserts/lib/clang/3.7.1/lib/darwin/libclang_rt.ios.a] Error 1 make[5]: *** [compiler-rt/.makeall] Error 2 make[4]: *** [all] Error 1 make[3]: *** [clang/.makeall] Error 2 make[2]: *** [all] Error 1 make[1]: *** [scratch/llvm-3.7.1/build_Release+Asserts/build-compiled] Error 2 make: *** [julia-deps] Error 2
From what I recollect, this seems to be an issue with the LLVM build, which I was able to overcome last time I used it (several months ago). Its clear that the folders with the libcompiler_rt.a
are missing in the julia clang_darwin
folder. Any thoughts on how to overcome this issue?
I'm having this issue as well. If you are in urgent need for a solution you can set LLVM_VER=3.9
and merge https://github.com/JuliaLang/julia/pull/18920 and https://github.com/JuliaLang/julia/pull/18910.
I also encountered this issue. I needed to set LLVM_VER=3.9.0
and merge https://github.com/JuliaLang/julia/pull/18920, https://github.com/JuliaLang/julia/pull/18910, and https://github.com/JuliaLang/julia/pull/19666. (macOS Sierra 10.12.2)