[Pkg-openssl-devel] Bug#1092307: openssl: relocation R_LARCH_PCALA_HI20 against `OPENSSL_loongarch_hwcap_P` can not be used when making a shared object

zhangdandan zhangdandan at loongson.cn
Tue Jan 7 10:16:50 GMT 2025


Source: openssl
Version: 3.4.0-2
Severity: normal
Tags: ftbfs
User: debian-loongarch at lists.debian.org
Usertags: loong64
X-Debbugs-CC: debian-loongarch at lists.debian.org

Dear maintainers,

Compiling the openssl failed for loong64 in the Debian Package 
Auto-Building environment.
The error log is as follows,
```
......
/usr/bin/ld: 
crypto/chacha/libcrypto-shlib-chacha-loongarch64.o:(.text+0xc0): 
relocation R_LARCH_PCALA_HI20 against `OPENSSL_loongarch_hwcap_P` can 
not be used when making a shared object; recompile with -fPIC and check 
the symbol visibility
ranlib libcrypto.a || echo Never mind.
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:6636: libcrypto.so.3] Error 1
```

The full build log can be found at 
https://buildd.debian.org/status/logs.php?pkg=openssl&ver=3.4.0-2&arch=loong64.
The version of the toolchain is as follows,
binutils 2.43.50.20241230-1
libc-bin 2.40-5
gcc-14 14.2.0-12

Best regards,
Dandan Zhang



More information about the Pkg-openssl-devel mailing list