On 10/21/23 01:58, Sebastian Andrzej Siewior wrote:
On 2023-10-20 13:49:01 [+0800], WANG Xuerui wrote:
This is likely upstream issue
https://github.com/openssl/openssl/issues/21340, manifesting on Debian due
to the packaged binutils not having Loongson SIMD support yet, and fixed by
upstream commit 160f48941d143cf2682df4e938ba953c96ac3c7a.
I'd suggest including the upstream patch so we don't have to touch anywhere
else.
So submitting patches for projects before having the upstream in the
building tools. Nobody can build this then. What about uploading a
custom binutils with the needed support to ports until it is merged
upstream?
Hmm, not quite; with the commit I linked to applied, the build will get
fixed, only that the asm code won't get built. It's a matter of the
original change adding SIMD optimization not taking care of toolchain
probing.
Also the binutils instruction set support is actually complete and
released in 2.41, so a customĀ build isn't necessary either: we'd only
have to wait until Debian bumps the binutils version to 2.41 across the
board. It's a good thing to not move so quickly, on the other hand;
we've already hit some interesting bugs in Gentoo land due to the linker
relaxation thing...