tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Rust on MacOS fails compilation



Hi,

It looks like rust isn't able to complete building on MacOS.

I've tried using "rust-bin" but since the ruby build depends on the Rust source it apparently will try to install the regular rust anyway.

Is there a workaround or some mk.conf magic that might make this build work? Or maybe there's a specific MACOSX_DEPLOYMENT_TARGET that needs to be set for pkgsrc?

Here are the details of my build system:

MacOs Sequoia 15.5 (INTEL).
XCode 16.4
pkgsrc-2025Q2 branch.

Here's the build error:


Compiling llvm-bitcode-linker v0.0.1 (/opt/pkgobj/lang/rust/work/rustc-1.86.0-src/src/tools/llvm-bitcode-linker)
    Finished `release` profile [optimized] target(s) in 13.66s
dyld[75816]: Library not loaded: @rpath/librustc_driver-d030a9896855c42b.dylib Referenced from: <9FD618FE-A2CD-36CD-AA20-E8AB1CE1F9F9> /opt/pkgobj/lang/rust/work/rustc-1.86.0-src/build/x86_64-apple-darwin/stage1/bin/rustc Reason: tried: '/opt/pkg/lib/librustc_driver-d030a9896855c42b.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/pkg/lib/librustc_driver-d030a9896855c42b.dylib' (no such file), '/opt/pkg/lib/librustc_driver-d030a9896855c42b.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/pkg/lib/librustc_driver-d030a9896855c42b.dylib' (no such file) Command "/opt/pkgobj/lang/rust/work/rustc-1.86.0-src/build/x86_64-apple-darwin/stage1/bin/rustc" "--target" "x86_64-apple-darwin" "--print=deployment-target" (failure_mode=Exit) has failed. Rerun with -v to see more details.
Build completed unsuccessfully in 0:10:10
*** Error code 1

Stop.
bmake[2]: stopped making "package-install" in /zabrico/pkgsrc/lang/rust
*** Error code 1



Any help on this would be great. Thanks!

--
Louis


Home | Main Index | Thread Index | Old Index