CentOS 6 with gcc 6.4.0 building from: https://github.com/JuliaLang/julia/archive/v1.2.0-rc2.zip I had to employ this patch to get LLVM statically linked into libjulia.so and avoid a dependency on libLLVM-6.0.so ``` --- src/Makefile 2019-07-08 12:42:16.000000000 -0700 +++ src/Makefile 2019-07-23 15:49:49.556932000 -0700 @@ -96,7 +96,7 @@ # https://github.com/JuliaLang/julia/issues/29981 else ifneq ($$(USE_LLVM_SHLIB),1) -LLVMLINK += $$(shell $$(LLVM_CONFIG_HOST) --ldflags) $$(shell $$(LLVM_CONFIG_HOST) --libs $$(LLVM_LIBS)) $$(shell $$(LLVM_CONFIG_HOST) --ldflags) $$(shell $$(LLVM_CONFIG_HOST) --system-libs 2> /dev/null) +LLVMLINK += $$(shell $$(LLVM_CONFIG_HOST) --ldflags --libs --link-static --system-libs) else LLVMLINK += $$(shell $$(LLVM_CONFIG_HOST) --ldflags) -lLLVM endif endef ```
Activity
vchuravy commentedon Jul 24, 2019
Thank you for the diff and report, we discourage statically building LLVM, since it will block parts of the ecosystem using LLVM.jl like CUDAnative.jl
Orbots commentedon Jul 24, 2019
Ah ok. It's a fix I found for some LLVM symbol mixing issues I've encountered. #32616
Cheers.
libLLVM-6.0.so
#34374vtjnash commentedon Aug 24, 2021
Fixed by #41276