Opened 4 months ago
Last modified 4 months ago
#72205 assigned defect
7zip @24.09: fatal error: implicit declaration of function 'vsha512hq_u64' is invalid in C99 [-Wimplicit-function-declaration]
Reported by: | stevehav (Steve Havelka) | Owned by: | srirangav (Sriranga Veeraraghavan) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | bigsur | Cc: | aeiouaeiouaeiouaeiouaeiouaeiou |
Port: | 7zip |
Description
On an apple silicon device, running MacOS 11.7.10, 7zip fails to build, affixing the log contents as an attached file because the log itself is too large to include in the ticket.
Attachments (1)
Change History (4)
Changed 4 months ago by stevehav (Steve Havelka)
comment:1 Changed 4 months ago by jmroot (Joshua Root)
Cc: | aeiouaeiouaeiouaeiouaeiouaeiou added |
---|---|
Owner: | set to srirangav |
Status: | new → assigned |
:info:build ../../../../C/Sha512Opt.c:323:5: fatal error: implicit declaration of function 'vsha512hq_u64' is invalid in C99 [-Wimplicit-function-declaration] :info:build R16 ( K, NN ) :info:build ^
comment:2 Changed 4 months ago by aeiouaeiouaeiouaeiouaeiouaeiou
Googling for similar issues, I found an 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.
comment:3 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | bigsur added |
---|---|
Summary: | Cannot build 7zip → 7zip @24.09: fatal error: implicit declaration of function 'vsha512hq_u64' is invalid in C99 [-Wimplicit-function-declaration] |
You may want to report this problem to the developers of 7zip so they can fix it.
Note: See
TracTickets for help on using
tickets.
The log file of the failed build