Closed
Description
Bug report
Bug description:
There is an error building the main
branch on macOS when targeting versions <10.9 or using outdated SDKs:
/usr/bin/clang -std=gnu11 -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 -pipe -Os -arch x86_64 -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -I/opt/local/include -o Modules/_hacl/Lib_Memzero0.o ./Modules/_hacl/Lib_Memzero0.c
./Modules/_hacl/Lib_Memzero0.c:59:5: error: implicit declaration of function 'memset_s' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
memset_s(dst, len_, 0, len_);
^
./Modules/_hacl/Lib_Memzero0.c:59:5: note: did you mean 'memset'?
/usr/include/string.h:84:7: note: 'memset' declared here
void *memset(void *, int, size_t);
^
1 error generated.
Even though Python officially supports macOS >10.13 the bug has already been fixed in the HACL* upstream repository: hacl-star/hacl-star#1042
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS