[Bug 288776] lang/rust: build fails when devel/binutils@amd64 is installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 10 Aug 2025 17:51:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288776

            Bug ID: 288776
           Summary: lang/rust: build fails when devel/binutils@amd64 is
                    installed
           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: ivy@FreeBSD.org
                CC: cy@FreeBSD.org, rust@FreeBSD.org
                CC: cy@FreeBSD.org, rust@FreeBSD.org

building on 15.0/amd64, src ~084a3e1e033766eedb88b1cd99d786b4fd692931, ports
~9efa5c62b031057a0809a4474a407771769413a6.

when devel/binutils@amd64 (amd64-binutils package) is installed, rust fails to
build with a bunch of JSON-related link errors.  after removing binutils, the
build succeeds.

full build log: https://people.freebsd.org/~ivy/tmp/rust-binutils.log

except:

/pkg/bin/x86_64-unknown-freebsd15.0-ld:
lib/libLLVMTableGen.a(JSONBackend.cpp.o): in function
`llvm::EmitJSON(llvm::RecordKeeper const&, llvm::raw_ostream&)':
JSONBackend.cpp:(.text._ZN4llvm8EmitJSONERKNS_12RecordKeeperERNS_11raw_ostreamE+0x7a):
undefined reference to
`llvm::json::Object::operator[](llvm::json::ObjectKey&&)'
/pkg/bin/x86_64-unknown-freebsd15.0-ld:
JSONBackend.cpp:(.text._ZN4llvm8EmitJSONERKNS_12RecordKeeperERNS_11raw_ostreamE+0x85):
undefined reference to `llvm::json::Value::destroy()'
/pkg/bin/x86_64-unknown-freebsd15.0-ld:
JSONBackend.cpp:(.text._ZN4llvm8EmitJSONERKNS_12RecordKeeperERNS_11raw_ostreamE+0x94):
undefined reference to `llvm::json::Value::moveFrom(llvm::json::Value const&&)'
/pkg/bin/x86_64-unknown-freebsd15.0-ld:
JSONBackend.cpp:(.text._ZN4llvm8EmitJSONERKNS_12RecordKeeperERNS_11raw_ostreamE+0xe0):
undefined reference to `llvm::json::Value::destroy()'

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