pkgsrc-Users archive

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

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



On Fri, Apr 04, 2025 at 04:38:59PM +0530, Sunil Nimmagadda wrote:
> 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)

The last time I tried building rust (1.83) on macOS a couple weeks ago, I saw

  = note: ld: warning: ignoring duplicate libraries: '-lm'
          ld: warning: object file (/Users/test/pkgsrc/lang/rust/work/rustc-1.83.0-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-439f221997fe20a7.rlib[19](7372e21ddc8be4fd-PassWrapper.o)) was built for newer 'macOS' version (15.2) than being linked (11.0)
          ld: warning: object file (/Users/test/pkgsrc/lang/rust/work/rustc-1.83.0-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-439f221997fe20a7.rlib[20](7372e21ddc8be4fd-RustWrapper.o)) was built for newer 'macOS' version (15.2) than being linked (11.0)
          ld: warning: object file (/Users/test/pkgsrc/lang/rust/work/rustc-1.83.0-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-439f221997fe20a7.rlib[21](7372e21ddc8be4fd-ArchiveWrapper.o)) was built for newer 'macOS' version (15.2) than being linked (11.0)
          ld: warning: object file (/Users/test/pkgsrc/lang/rust/work/rustc-1.83.0-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-439f221997fe20a7.rlib[22](7372e21ddc8be4fd-CoverageMappingWrapper.o)) was built for newer 'macOS' version (15.2) than being linked (11.0)
          ld: warning: object file (/Users/test/pkgsrc/lang/rust/work/rustc-1.83.0-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-439f221997fe20a7.rlib[23](7372e21ddc8be4fd-SymbolWrapper.o)) was built for newer 'macOS' version (15.2) than being linked (11.0)
          ld: warning: object file (/Users/test/pkgsrc/lang/rust/work/rustc-1.83.0-src/build/aarch64-apple-darwin/stage0-rustc/aarch64-apple-darwin/release/deps/librustc_codegen_llvm-439f221997fe20a7.rlib[24](7372e21ddc8be4fd-Linker.o)) was built for newer 'macOS' version (15.2) 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-9d488e0d9689de6a.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)


so I think that's not a regression.

Does lang/rust (1.83) build for you in the same environment?
 Thomas


Home | Main Index | Thread Index | Old Index