[MacPorts] #73956: python314 +universal: missing --with-universal-archs=universal2 causes HACL Blake2 SIMD256 build failure on Intel hosts

MacPorts noreply at macports.org
Sat May 2 18:10:17 UTC 2026


#73956: python314 +universal: missing --with-universal-archs=universal2 causes HACL
Blake2 SIMD256 build failure on Intel hosts
----------------------+-----------------------
 Reporter:  ajkessel  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:  python314
----------------------+-----------------------
 `sudo port install python314 +universal` fails on an Intel macOS host

 Running Tahoe 26.4.1 / Xcode 26.4.1 / CLT 26.4.1

 I get this error:
 {{{
 ./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:112:3: error: unknown
 type name 'Lib_IntVector_Intrinsics_vec256'
   112 |   Lib_IntVector_Intrinsics_vec256 *snd;
       |   ^
 ./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:38:3: error: unknown type name
 'Lib_IntVector_Intrinsics_vec256'
    38 |   Lib_IntVector_Intrinsics_vec256 *wv,
       |   ^
 ./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:39:3: error: unknown type name
 'Lib_IntVector_Intrinsics_vec256'
    39 |   Lib_IntVector_Intrinsics_vec256 *hash,
       |   ^
 ./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:57:3: error: use of undeclared
 identifier 'Lib_IntVector_Intrinsics_vec256'
    57 |   Lib_IntVector_Intrinsics_vec256 mask =
 Lib_IntVector_Intrinsics_vec256_zero;
       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:76:3: error: use of undeclared
 identifier 'mask'
    76 |   mask =
       |   ^~~~

 }}}

 It appears the cause is that Portfile passes `--enable-universalsdk` but
 not `--with-universal-archs`, so CPython's configure leaves
 $UNIVERSAL_ARCHS at its default (which doesn't include arm64). The
 upstream guard added in cpython#123748 / cpython#130478 to disable AVX2
 SIMD code for arm64 universal builds is therefore not triggered, and
 HACL_CAN_COMPILE_VEC256 stays defined.

 Relates to upstream issues https://github.com/python/cpython/issues/123748
 and https://github.com/python/cpython/issues/130478

 This diff fixes the problem as a temporary workaround:
 {{{
 --- Portfile.1  2026-05-02 14:09:26
 +++ Portfile    2026-05-02 13:43:40
 @@ -67,6 +67,7 @@
                      --with-ensurepip=no \
                      --with-readline=editline \
                      --with-system-expat \
 +                    --with-universal-archs=universal2 \
                      --with-dbmliborder=ndbm:bdb

  configure.ccache    no
 }}}

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


More information about the macports-tickets mailing list