pkgsrc-Users archive

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

Re: [HEADS UP] test rust185/rust185-bin



Hello

Try building without internal LLVM (PKG_OPTIONS.rust = -rust-internal-llvm in mk.conf) ? It seemed to build for me with Rust 1.83 (pkgsrc2025Q1) on my M1 MacOS Sequoia 15.3.

but I had to remove the converters/libiconv package or i get -liconv related link errors.

And then have to re-install it because Rust needs it run-time. I haven't worked out why this happens..

btw. I don't have a wip environment at the moment.

TIA,
Dennis

On 2025-04-04 14:08, Sunil Nimmagadda wrote:
Thomas Klausner <wiz%NetBSD.org@localhost> writes:

Hi!

Please test wip/rust185 (or wip/rust185-bin) by installing it on your
favorite platform and building one or two packages depending on it,
and report any regressions compared to lang/rust and lang/rust-bin.

I plan on updating lang/rust and lang/rust-bin with these versions
next week.
 Thomas

wip/rust185 fails to build on MacOS 15.4 with these linker errors.
pkgsrc was bootstrapped with --unprivileged option.

  = note: ld: warning: ignoring duplicate libraries: '-lm'
ld: warning: object file (/Users/nimmagaddasunil.kumar/pkgsrc/wip/rust185/work/rustc-1.85.1-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-e91b848d9d03ae35.rlib[19](ef10e86dc40538c1-PassWrapper.o)) was built for newer 'macOS' version (15.4) than being linked (11.0) ld: warning: object file (/Users/nimmagaddasunil.kumar/pkgsrc/wip/rust185/work/rustc-1.85.1-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-e91b848d9d03ae35.rlib[20](ef10e86dc40538c1-RustWrapper.o)) was built for newer 'macOS' version (15.4) than being linked (11.0) ld: warning: object file (/Users/nimmagaddasunil.kumar/pkgsrc/wip/rust185/work/rustc-1.85.1-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-e91b848d9d03ae35.rlib[21](ef10e86dc40538c1-ArchiveWrapper.o)) was built for newer 'macOS' version (15.4) than being linked (11.0) ld: warning: object file (/Users/nimmagaddasunil.kumar/pkgsrc/wip/rust185/work/rustc-1.85.1-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-e91b848d9d03ae35.rlib[22](ef10e86dc40538c1-CoverageMappingWrapper.o)) was built for newer 'macOS' version (15.4) than being linked (11.0) ld: warning: object file (/Users/nimmagaddasunil.kumar/pkgsrc/wip/rust185/work/rustc-1.85.1-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-e91b848d9d03ae35.rlib[23](ef10e86dc40538c1-SymbolWrapper.o)) was built for newer 'macOS' version (15.4) than being linked (11.0) ld: warning: object file (/Users/nimmagaddasunil.kumar/pkgsrc/wip/rust185/work/rustc-1.85.1-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-e91b848d9d03ae35.rlib[24](ef10e86dc40538c1-Linker.o)) was built for newer 'macOS' version (15.4) than being linked (11.0)
          Undefined symbols for architecture arm64:
            "___isPlatformVersionAtLeast", referenced from:
llvm::sys::fs::copy_file(llvm::Twine const&, llvm::Twine const&) in librustc_llvm-1183e9d8c9c3c112.rlib[2159](Path.cpp.o)
          ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


warning: `rustc_driver` (lib) generated 1 warning (1 duplicate)
error: could not compile `rustc_driver` (lib) due to 1 previous error; 1 warning emitted
Build completed unsuccessfully in 0:20:14
*** Error code 1

Stop.
bmake[1]: stopped making "all" in /Users/nimmagaddasunil.kumar/pkgsrc/wip/rust185
*** Error code 1

Stop.
bmake: stopped making "all" in /Users/nimmagaddasunil.kumar/pkgsrc/wip/rust185


Home | Main Index | Thread Index | Old Index