Skip to content

Compilation of HACL fails under macOS Silicon for version 3.14 #130478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
naizhao opened this issue Feb 23, 2025 · 6 comments
Open

Compilation of HACL fails under macOS Silicon for version 3.14 #130478

naizhao opened this issue Feb 23, 2025 · 6 comments
Labels
3.14 bugs and security fixes build The build process and cross-build extension-modules C modules in the Modules dir OS-mac type-bug An unexpected behavior, bug, or error

Comments

@naizhao
Copy link

naizhao commented Feb 23, 2025

Bug report

Bug description:

Related issues: #123748, #130366, #129043

Problem:
In Python 3.14.0a5, when compiling on macOS Silicon without specifying the --enable-universalsdk parameter (as there is no need to compile a universal version for x86_64 & arm64), an error "unknown type name 'Lib_IntVector_Intrinsics_vec256'" occurs.

Compilation parameters:

./configure --prefix=/Applications/ServBay/package/python/3.14/3.14.0a5 --enable-ipv6 --enable-loadable-sqlite-extensions --with-openssl=/Applications/ServBay/package/common/openssl/3.2 --enable-optimizations --with-system-expat --with-system-libmpdec --with-readline=editline --with-lto --enable-framework=/Applications/ServBay/package/python/3.14/3.14.0a5

Problem analysis:
The Python team previously released a patch for this issue, but in the configure and configure.ac scripts, the patch uses the $UNIVERSAL_ARCHS parameter for condition checks. This fix does not completely resolve the issue because $UNIVERSAL_ARCHS depends on the --enable-universalsdk parameter being passed. Without this parameter, the initial value of $UNIVERSAL_ARCHS is UNIVERSAL_ARCHS="32-bit", leading to the condition if test "$UNIVERSAL_ARCHS" != "universal2"; then not being effective.

Partial configure log:

Python 3.9+ detected
checking build system type... aarch64-apple-darwin23.5.0
checking host system type... aarch64-apple-darwin23.5.0
checking for Python interpreter freezing... ./_bootstrap_python
checking for python3.14... no
checking for python3.13... no
checking for python3.12... python3.12
checking Python for regen version... Python 3.12.5
checking pkg-config is at least version 0.9.0... yes
checking MACHDEP... "darwin"
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking for --with-app-store-compliance... not patching for app store compliance
checking for xcrun... yes
checking macOS SDKROOT... /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... /usr/bin/grep -E
checking for CC compiler name... clang

// blablabla

Repair solution:
In the configure and configure.ac scripts, it is necessary to use other conditions for checks instead of relying on $UNIVERSAL_ARCHS.
Attached is a quick fix patch based on build_cpu and build_vendor. However, this is not the most appropriate solution.
https://github.com/user-attachments/files/18921691/fixed-hacl-arm64.patch

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Linked PRs

@naizhao naizhao added the type-bug An unexpected behavior, bug, or error label Feb 23, 2025
@picnixz picnixz added extension-modules C modules in the Modules dir build The build process and cross-build labels Feb 23, 2025
@picnixz
Copy link
Member

picnixz commented Feb 23, 2025

cc @msprotz @gpshead

@picnixz picnixz added the 3.14 bugs and security fixes label Feb 23, 2025
@msprotz
Copy link
Contributor

msprotz commented Feb 24, 2025

Thank you for filing this report.

However, this is not the most appropriate solution.

Can you say why?

@picnixz picnixz added the OS-mac label Feb 24, 2025
@naizhao
Copy link
Author

naizhao commented Feb 25, 2025

Thank you for filing this report.

However, this is not the most appropriate solution.

Can you say why?

The patch solves the problem by hardcoding $build_cpu and $build_vendor, which is a dirty fix. I am not sure if the Python team has other variables that could provide a better fix.

@picnixz
Copy link
Member

picnixz commented Apr 26, 2025

Does HACL* now compile correctly with the latest main? we improved the build (not for macOS explicitly though) but maybe it solves your issue now?

@picnixz picnixz added the pending The issue will be closed if no feedback is provided label Apr 28, 2025
@naizhao
Copy link
Author

naizhao commented May 17, 2025

gcc -c -I./Modules/_hacl -I./Modules/_hacl/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include   -o Modules/_hacl/Hacl_HMAC.o ./Modules/_hacl/Hacl_HMAC.c
In file included from ./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:26:
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:42:32: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
Hacl_Hash_Blake2b_Simd256_init(Lib_IntVector_Intrinsics_vec256 *hash, uint32_t kk, uint32_t nn);
                               ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:47:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *wv,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:48:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *hash,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:57:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *wv,
  ^
gcc -Wno-unused-variable -c -I./Modules/_hacl -I./Modules/_hacl/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include   -o Modules/_hacl/Hacl_Streaming_HMAC.o ./Modules/_hacl/Hacl_Streaming_HMAC.c
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:58:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *hash,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:69:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *hash
  ^
gcc  -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include   -c ./Modules/pyexpat.c -o Modules/pyexpat.o
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:74:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *st,
  ^
gcc  -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include   -c ./Modules/_elementtree.c -o Modules/_elementtree.o
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:81:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *st
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:84:1: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
Lib_IntVector_Intrinsics_vec256
^
gcc  -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include   -c ./Modules/cjkcodecs/_codecs_cn.c -o Modules/cjkcodecs/_codecs_cn.o
gcc  -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include   -c ./Modules/cjkcodecs/_codecs_hk.c -o Modules/cjkcodecs/_codecs_hk.o
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:89:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *s,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:97:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *s,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:105:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *src,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:106:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *dst
  ^
gcc  -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include   -c ./Modules/cjkcodecs/_codecs_iso2022.c -o Modules/cjkcodecs/_codecs_iso2022.o
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:111:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *fst;
  ^
gcc  -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include   -c ./Modules/cjkcodecs/_codecs_jp.c -o Modules/cjkcodecs/_codecs_jp.o
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:112:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *snd;
  ^
./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:38:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *wv,
  ^
./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:39:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *hash,
  ^
./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:57:3: error: use of undeclared identifier 'Lib_IntVector_Intrinsics_vec256'
  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'
  mask =
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [Modules/_hacl/Hacl_Hash_Blake2b_Simd256.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [profile-gen-stamp] Error 2
make: *** [profile-run-stamp] Error 2
gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability  -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include  -DPy_BUILD_CORE \
	      -DGITVERSION="\"`LC_ALL=C `\"" \
gcc -bundle -undefined dynamic_lookup -L/Applications/ServBay/package/common/openssl/3.2/lib -Wl,-rpath -Wl,/Applications/ServBay/package/common/lib -L/Applications/ServBay/package/common/lib -L/Applications/ServBay/package -mmacosx-version-min=12.00 -arch arm64  -L/Applications/ServBay/package/common/openssl/3.2/lib -Wl,-rpath -Wl,/Applications/ServBay/package/common/lib -L/Applications/ServBay/package/common/lib -L/Applications/ServBay/package -mmacosx-version-min=12.00 -arch arm64  -fno-semantic-interposition -flto=thin -Wl,-export_dynamic -Wl,-object_path_lto,"Modules/_sha3.cpython-314-darwin.so".lto -g -fprofile-instr-generate  Modules/sha3module.o Modules/_hacl/Hacl_Hash_SHA3.o  -o Modules/_sha3.cpython-314-darwin.so
ld: warning: duplicate -rpath '/Applications/ServBay/package/common/lib' ignored
gcc -c -I./Modules/_hacl -I./Modules/_hacl/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64  -Qunused-arguments -O3 -mmacosx-version-min=12.00 -arch arm64   -fno-semantic-interposition -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include -I/Applications/ServBay/package/common/openssl/3.2/include -I/Applications/ServBay/package/common/include   -mavx2 -DHACL_CAN_COMPILE_VEC256 -o Modules/_hacl/Hacl_Hash_Blake2b_Simd256.o ./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c
In file included from ./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:26:
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:42:32: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
Hacl_Hash_Blake2b_Simd256_init(Lib_IntVector_Intrinsics_vec256 *hash, uint32_t kk, uint32_t nn);
                               ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:47:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *wv,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:48:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *hash,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:57:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *wv,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:58:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *hash,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:69:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *hash
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:74:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *st,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:81:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *st
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:84:1: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
Lib_IntVector_Intrinsics_vec256
^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:89:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *s,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:97:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *s,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:105:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *src,
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:106:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *dst
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:111:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *fst;
  ^
./Modules/_hacl/internal/Hacl_Hash_Blake2b_Simd256.h:112:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *snd;
  ^
./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:38:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *wv,
  ^
./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:39:3: error: unknown type name 'Lib_IntVector_Intrinsics_vec256'
  Lib_IntVector_Intrinsics_vec256 *hash,
  ^
./Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c:57:3: error: use of undeclared identifier 'Lib_IntVector_Intrinsics_vec256'
  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'
  mask =
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [Modules/_hacl/Hacl_Hash_Blake2b_Simd256.o] Error 1
make[1]: *** [profile-gen-stamp] Error 2
make: *** [profile-run-stamp] Error 2
cd Mac && /Applications/Xcode.app/Contents/Developer/usr/bin/make installextras DESTDIR=""
/usr/bin/install -c -d "/Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples"
DYLD_FRAMEWORK_PATH=/Users/sam/ServBay-Utility/runtime/src/python-3.14.0b1 ../python.exe ./Extras.install.py ./../Tools \
		"/Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools" ; \
		chmod -R ugo+rX,go-w "/Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools"
mkdir /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools
copy ./../Tools/README /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/README
copy ./../Tools/requirements-hypothesis.txt /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/requirements-hypothesis.txt
copy ./../Tools/requirements-dev.txt /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/requirements-dev.txt
mkdir /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/ssl
copy ./../Tools/ssl/make_ssl_data.py /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/ssl/make_ssl_data.py
copy ./../Tools/ssl/multissltests.py /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/ssl/multissltests.py
mkdir /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/gdb
copy ./../Tools/gdb/libpython.py /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/gdb/libpython.py
mkdir /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/tsan
copy ./../Tools/tsan/suppressions.txt /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/tsan/suppressions.txt
copy ./../Tools/tsan/suppressions_free_threading.txt /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/tsan/suppressions_free_threading.txt
mkdir /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/freeze
copy ./../Tools/freeze/hello.py /Applications/ServBay/package/python/3.14/3.14.0b1/Python.framework/Versions/3.14/share/doc/python3.14/examples/Tools/freeze/hello.py

@picnixz picnixz removed the pending The issue will be closed if no feedback is provided label May 17, 2025
@picnixz
Copy link
Member

picnixz commented May 17, 2025

Ok, I think your patch may be a good thing, but let's test both conditions, namely:

-    if test "$UNIVERSAL_ARCHS" == "universal2"; then
+    if test ( "$build_cpu" == "aarch64" -a "$build_vendor" == "apple" ) -o "$UNIVERSAL_ARCHS" == "universal2"; then

(I don't remember well if my syntax is correct or not but I can test this tomorrow)

However, where are the $build_cpu and $build_vendor variables defined? I can't find them in configure.ac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 bugs and security fixes build The build process and cross-build extension-modules C modules in the Modules dir OS-mac type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants