Rust Programming2026-02-28 01:00

how to build rust 1.83 with llvm@18 on macosx 10.13

rustfan
rustfan
Author

I want build rust 1.83 on macosx 10.13 , high sierra. I have built rust 1.74 with llvm@15. I want to upgrade rust to 1.83, it depend on llvm@18. I have buit llvm@18 While install rust with this command, brew install rust --cc=llvm_clang --debug it pass the first two stage: Building bootstrap Finished dev profile [unoptimized] target(s) Building stage0 library artifacts (x86_64-apple-darwin) Finished release profile [optimized] target(s) #** failure on this step: ** Building compiler artifacts (stage0 -> stage1, x86_64-apple-darwin)

   Compiling rustc_driver v0.0.0 (/private/tmp/rust-20260227-81377-lg6x85/rustc-1.83.0-src/compiler/rustc_driver)

error: linking with cc failed: exit status: 1 = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL=“C” PATH=“/private/tmp/rust-20260227-81377-lg6x85/rustc-1.83.0-src/build/x86_64-apple-darwin/stage0-sysroot/lib/rustlib/x86_64-apple-darwin/bin:/private/tmp/rust-20260227-81377-lg6x85/rustc-1.83.0-src/build/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/bin:/private/tmp/rust-20260227-81377-lg6x85/rustc-1.83.0-src/build/x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/openssl@3/bin:/usr/local/opt/libgit2@1.8/bin:/usr/local/opt/lz4/bin:/usr/local/opt/xz/bin:/usr/local/opt/zstd/bin:/usr/local/opt/llvm@18/bin:/usr/local/opt/pkgconf/bin:/usr/local/opt/python@3.9/bin:/usr/local/opt/python@3.9/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin” VSLANG=“1033” ZERO_AR_DATE=“1” “cc” “-Wl,-exported_symbols_list” “-Wl,/private/tmp/rustcOEG45K/list” “-arch” “x86_64” “-m64” “/private/tmp/rustcOEG45K/symbols.o” “/private/tmp/rust-20260227-81377-lg6x85/rustc-1.83.0-src/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/rustc_driver-f95b5e658c91b7ee.rustc_driver.889d9b77049e32a9-cgu.0.rcgu.o” “/private/tmp/rust-20260227-81377-lg6x85/rustc-1.83.0-src/build/x86_64-apple-darwin/s

57

Comments (0)

Login to comment

Login Now

Loading comments...