Re: git: f5538d2b59e2 - main - lang/rust: Fix REINPLACE_CMD with PORT_LLVM option on

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Wed, 10 Jan 2024 17:10:27 UTC

On 10.01.2024 18:52, Charlie Li wrote:
> Dima Panov wrote:
>> On 09.01.2024 17:22, Mikael Urankar wrote:
>>> The branch main has been updated by mikael:
>>>
>>> URL: https://cgit.FreeBSD.org/ports/commit/?id=f5538d2b59e2455025ff118f8a7598d8a9211d83
>>>
>>> commit f5538d2b59e2455025ff118f8a7598d8a9211d83
>>> Author:     Mikael Urankar <mikael@FreeBSD.org>
>>> AuthorDate: 2024-01-09 13:35:56 +0000
>>> Commit:     Mikael Urankar <mikael@FreeBSD.org>
>>> CommitDate: 2024-01-09 14:22:25 +0000
>>>
>>>      lang/rust: Fix REINPLACE_CMD with PORT_LLVM option on
>>>      PR:             276033
>>>      Reported by:    Ale <discipline@tiscali.it>
>>
>>
>> Just tried to build with ports llvm
>> Is there any limitation to llvm version? build fails with llvm 17 and 16
>>
> Builds fine with LLVM 17 here. The minimum is still 15.
> 
15/aarch64. No luck %(

https://people.freebsd.org/~fluffy/-log/150aarch64/rust-1.75.0.log

   = note: ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(mac.o)
           >>> referenced by mac.o:(mac_method_hmac_aesgcm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(mac.o)
           >>> referenced by mac.o:(mac_method_hmac_sha2_256) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(crypt.o)
           >>> referenced by crypt.o:(libssh2_crypt_method_aes256_gcm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(comp.o)
           >>> referenced by comp.o:(comp_method_zlib) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(crypt.o)
           >>> referenced by crypt.o:(libssh2_crypt_method_aes256_gcm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(mac.o)
           >>> referenced by mac.o:(mac_method_hmac_sha2_256) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(comp.o)
           >>> referenced by comp.o:(comp_method_zlib) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(mac.o)
           >>> referenced by mac.o:(mac_method_hmac_sha2_256) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(crypt.o)
           >>> referenced by crypt.o:(libssh2_crypt_method_aes256_gcm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(comp.o)
           >>> referenced by comp.o:(comp_method_zlib) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(mac.o)
           >>> referenced by mac.o:(mac_method_hmac_sha2_256) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(crypt.o)
           >>> referenced by crypt.o:(libssh2_crypt_method_aes256_gcm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(mac.o)
           >>> referenced by mac.o:(mac_method_hmac_sha2_256_etm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(crypt.o)
           >>> referenced by crypt.o:(libssh2_crypt_method_aes256_gcm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(mac.o)
           >>> referenced by mac.o:(mac_method_hmac_sha2_256_etm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(crypt.o)
           >>> referenced by crypt.o:(libssh2_crypt_method_aes128_gcm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(mac.o)
           >>> referenced by mac.o:(mac_method_hmac_sha2_256_etm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(comp.o)
           >>> referenced by comp.o:(comp_method_zlib) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(crypt.o)
           >>> referenced by crypt.o:(libssh2_crypt_method_aes128_gcm) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib

           ld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
           >>> defined in /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.rlib(comp.o)
           >>> referenced by comp.o:(comp_method_zlib) in archive /wrkdirs/usr/ports/lang/rust/work/_build/aarch64-unknown-freebsd/stage1-tools/aarch64-unknown-freebsd/release/deps/liblibssh2_sys-35e3cea308f3fa02.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)



Did not run successfully: exit status: 1


-- 
Sincerely,
Dima (fluffy@FreeBSD.org, https://t.me/FluffyBSD)
(desktop, kde, x11, office, ports-secteam)@FreeBSD team