[MacPorts] #70879: highway: Failure to build highway on Apple's clang 16

MacPorts noreply at macports.org
Mon Sep 23 11:27:57 UTC 2024


#70879: highway: Failure to build highway on Apple's clang 16
--------------------+---------------------
 Reporter:  lukaso  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  highway
--------------------+---------------------
 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
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70879>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list