Opened 2 hours ago
Last modified 68 minutes ago
#70879 new defect
highway: Failure to build highway on Apple's clang 16
Reported by: | lukaso (Lukas Oberhuber) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | highway |
Description
I'm hitting this issue.
https://github.com/google/highway/issues/2317
diff --git a/hwy/detect_targets.h b/hwy/detect_targets.h index a8d4a13f..e0ffb33a 100644 --- a/hwy/detect_targets.h +++ b/hwy/detect_targets.h @@ -223,8 +223,12 @@ #endif // SVE[2] require recent clang or gcc versions. +// +// SVE is not supported on Apple arm64 CPUs and also crashes the compiler: +// https://github.com/llvm/llvm-project/issues/97198 #if (HWY_COMPILER_CLANG && HWY_COMPILER_CLANG < 1100) || \ - (HWY_COMPILER_GCC_ACTUAL && HWY_COMPILER_GCC_ACTUAL < 1000) + (HWY_COMPILER_GCC_ACTUAL && HWY_COMPILER_GCC_ACTUAL < 1000) || \ + (HWY_OS_APPLE && HWY_ARCH_ARM_A64) #define HWY_BROKEN_SVE (HWY_SVE | HWY_SVE2 | HWY_SVE_256 | HWY_SVE2_128) #else #define HWY_BROKEN_SVE 0
Note: See
TracTickets for help on using
tickets.
This is a duplicate of #70345 (not sure why when I searched it didn't come up).