Unable to build lang/rust compiler from ports.
FreeBSD 12.4-RELEASE-p7 FreeBSD 12.4-RELEASE-p7 releng/12.4-n235836-69dcabf10d54 amd64
Please explain me, what is wrong?
FreeBSD 12.4-RELEASE-p7 FreeBSD 12.4-RELEASE-p7 releng/12.4-n235836-69dcabf10d54 amd64
Please explain me, what is wrong?
Code:
error: linking with `cc` failed: exit status: 1
= note: LC_ALL="C" PATH="/usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1/lib/rustlib/x86_64-unknown-freebsd/bin:/usr/ports/tmp/usr/ports/lang/rust/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/local/libexec:/usr/local/go/bin:/root/go/bin:/root/.fzf/bin" VSLANG="1033" "cc" "-m64" "/usr/ports/tmp/usr/ports/lang/rust/work/rustcRSSF1e/symbols.o" "/usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/cargo-7c2db90d221058ec.cargo.a68ffb8d9fae4012-cgu.00.rcgu.o" "/usr/ports/t
....
= note: ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(libssh2_agent_init) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(libssh2_agent_connect) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(libssh2_agent_list_identities) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(libssh2_agent_list_identities) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(libssh2_agent_list_identities) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(libssh2_agent_userauth) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_sign) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_sign) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_sign) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_sign) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_connect_unix) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_connect_unix) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_connect_unix) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_connect_unix) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_transact_unix) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_transact_unix) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_transact_unix) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_transact_unix) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(agent_disconnect_unix) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: can't create dynamic relocation R_X86_64_64 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib(agent.o)
>>> referenced by agent.o:(.rodata+0x0) in archive /usr/ports/tmp/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage1-tools/x86_64-unknown-freebsd/release/deps/liblibssh2_sys-32c56e27f6e85d53.rlib
ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
cc: error: linker command failed with exit code 1 (use -v to see invocation)