[Bug 274471] lang/rust: doesn't build with devel/llvm15

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 14 Oct 2023 21:03:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274471

            Bug ID: 274471
           Summary: lang/rust: doesn't build with devel/llvm15
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: vsasjason@gmail.com
                CC: brooks@FreeBSD.org, rust@FreeBSD.org
                CC: brooks@FreeBSD.org, rust@FreeBSD.org

Created attachment 245622
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245622&action=edit
poudriere build log

After 098de5bc2195a064523eb32e7db6071b2f8ed93a, I decided to try it, and
unfortunately that was unsuccessful:

  cargo:rustc-link-lib=static=llvm-wrapper
 
cargo:rustc-link-search=native=/wrkdirs/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage0-rustc/x86_64-unknown-freebsd/release/build/rustc_llvm-2c553ed8f23341b3/out
  cargo:rerun-if-env-changed=LLVM_LINK_SHARED

  --- stderr
  llvm-config: error: missing: /usr/local/llvm15/lib/libLLVMDemangle.a
<SKIP>
  llvm-config: error: missing: /usr/local/llvm15/lib/libLLVMX86TargetMCA.a
  thread 'main' panicked at 'command did not execute successfully:
"/usr/local/bin/llvm-config15" "--link-static" "--libs" "--system-libs"
"amdgpu" "asmparser" "bitreader" "bitwriter" "coverage" "instrumentation" "ipo"
"linker" "lto" "webassembly" "x86"
  expected success, got: exit status: 1', compiler/rustc_llvm/build.rs:259:16
<SKIP>

I have nothing related to LLVM in configuration, so rust just pulled default
llvm15.

-- 
You are receiving this mail because:
You are the assignee for the bug.