ARM/PowerPC compilation fix for Linux 7-Zip 23.01
A free file archiver for extremely high compression
Brought to you by:
ipavlov
Linux 7-Zip 23.01 requires some fix when building 7-Zip on ARMv5, ARMv7, PowerPC.
Apply these patch to fix it.
Build logs can be examin from Debian build bot page
https://buildd.debian.org/status/package.php?p=7zip
7-zip detects neon availability at runtime via hwcap.
And 7-zip can select between neon and non-neon code.
So we want to use NEON in some functions, even if main code is not neon.
for x86, we just use
__attribute__for avx2 functions:What way to do similar thing for arm-neon ?
Last edit: Igor Pavlov 2023-06-22
vrev16q_u8() requires
-mfpu=neonoption.If not, just provides compilation error.
I rewrite
0007-Disable-hardware-swap-code-on-armhf.patchand use NEON code in specfic section.Replace 0007 pacth and apply new one.
PS: I don't have ARM machines. So I can't test this patch.
Debian CI test server now reports good status on armhf (ARMv7) system.
This means current ARMv7 binary works with NEON code.
The CI test log is here.
https://ci.debian.net/data/autopkgtest/testing/armhf/7/7zip/34754240/log.gz
Other CI test log can be taken from Debian CI server.
https://ci.debian.net/packages/7/7zip/