[Bug 274743] lang/rust: PORT_LLVM-option breaks build

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 Oct 2023 17:54:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274743

            Bug ID: 274743
           Summary: lang/rust: PORT_LLVM-option breaks build
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust@FreeBSD.org
          Reporter: mi@ALDAN.algebra.com
          Assignee: rust@FreeBSD.org
             Flags: maintainer-feedback?(rust@FreeBSD.org)

I tried it first with llvm15, and then with llvm17 -- the error is the same:
...
  = note: ld: error: relocation R_X86_64_32 cannot be used against local
symbol; recompile with -fPIC
          >>> defined in
/cache/symbion/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-5419d5ae34e3db0f.rlib(knownhost.o)
          >>> referenced by knownhost.o:(libssh2_knownhost_init) in archive
/cache/symbion/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-5419d5ae34e3db0f.rlib

          ld: error: relocation R_X86_64_32 cannot be used against local
symbol; recompile with -fPIC
          >>> defined in
/cache/symbion/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-5419d5ae34e3db0f.rlib(transport.o)
          >>> referenced by transport.o:(_libssh2_transport_send) in archive
/cache/symbion/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-5419d5ae34e3db0f.rlib

          ld: error: relocation R_X86_64_32 cannot be used against local
symbol; recompile with -fPIC
          >>> defined in
/cache/symbion/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-5419d5ae34e3db0f.rlib(version.o)
          >>> referenced by version.o:(libssh2_version) in archive
/cache/symbion/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-5419d5ae34e3db0f.rlib
...

The machine is amd64, running stable/13-542497245d. llvm13 is also installed --
and cannot be deleted because of multiple dependencies. But the
DEFAULT_VERSIONS contains llvm=17...

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