[MacPorts] #72205: Cannot build 7zip
MacPorts
noreply at macports.org
Mon Mar 17 02:25:22 UTC 2025
#72205: Cannot build 7zip
-----------------------+-----------------------
Reporter: stevehav | Owner: srirangav
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: 7zip |
-----------------------+-----------------------
Comment (by aeiouaeiouaeiouaeiouaeiouaeiou):
Googling for similar issues, I found an [https://github.com/Mbed-
TLS/mbedtls/blob/dae21d3808be93c30fda318b19657b4db6ad2b5d/library/sha512.c#L54
interesting comment] in the Mbed TLS repository:
{{{
/*
* Best performance comes from most recent compilers, with intrinsics and
-O3.
* Must compile with -march=armv8.2-a+sha3, but we can't detect armv8.2-a,
and
* can't always detect __ARM_FEATURE_SHA512 (notably clang 7-12).
*
* GCC < 8 won't work at all (lacks the sha512 instructions)
* GCC >= 8 uses intrinsics, sets __ARM_FEATURE_SHA512
*
* Clang < 7 won't work at all (lacks the sha512 instructions)
* Clang 7-12 don't have intrinsics (but we work around that with inline
* assembler) or __ARM_FEATURE_SHA512
* Clang == 13.0.0 same as clang 12 (only seen on macOS)
* Clang >= 13.0.1 has __ARM_FEATURE_SHA512 and intrinsics
*/
}}}
Big Sur unlike buildbots uses Clang version 1300 => 13.0.0 by default. I
don't want to block newer versions as the problem occurs only on ARM64.
--
Ticket URL: <https://trac.macports.org/ticket/72205#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list