-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed as not planned
Closed as not planned
Copy link
Labels
3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesOS-unsupportedbuildThe build process and cross-buildThe build process and cross-buildextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
centos6/glibc 2.12 does not have aligned_alloc
67daa0ccf3ef: In file included from ./Modules/_hacl/include/krml/FStar_UInt_8_16_32_64.h:15,
67daa0ccf3ef: from ./Modules/_hacl/include/krml/FStar_UInt128_Verified.h:10,
67daa0ccf3ef: from ./Modules/_hacl/include/krml/internal/types.h:102,
67daa0ccf3ef: from ./Modules/_hacl/internal/Hacl_Hash_Blake2s_Simd128.h:34,
67daa0ccf3ef: from ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:26:
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c: In function '_Py_LibHacl_Hacl_Hash_Blake2s_Simd128_malloc_internal_state_with_key':
67daa0ccf3ef: ./Modules/_hacl/include/krml/internal/target.h:153:39: error: implicit declaration of function 'aligned_alloc' [-Werror=implicit-function-declaration]
67daa0ccf3ef: 153 | # define KRML_ALIGNED_MALLOC(X, Y) aligned_alloc(X, Y)
67daa0ccf3ef: | ^~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:526:40: note: in expansion of macro 'KRML_ALIGNED_MALLOC'
67daa0ccf3ef: 526 | (Lib_IntVector_Intrinsics_vec128 *)KRML_ALIGNED_MALLOC(16,
67daa0ccf3ef: | ^~~~~~~~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:34:1: note: include '<stdlib.h>' or provide a declaration of 'aligned_alloc'
67daa0ccf3ef: 33 | #include "lib_memzero0.h"
67daa0ccf3ef: +++ |+#include <stdlib.h>
67daa0ccf3ef: 34 |
67daa0ccf3ef: ./Modules/_hacl/include/krml/internal/target.h:153:39: warning: incompatible implicit declaration of built-in function 'aligned_alloc' [-Wbuiltin-declaration-mismatch]
67daa0ccf3ef: 153 | # define KRML_ALIGNED_MALLOC(X, Y) aligned_alloc(X, Y)
67daa0ccf3ef: | ^~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:526:40: note: in expansion of macro 'KRML_ALIGNED_MALLOC'
67daa0ccf3ef: 526 | (Lib_IntVector_Intrinsics_vec128 *)KRML_ALIGNED_MALLOC(16,
67daa0ccf3ef: | ^~~~~~~~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/include/krml/internal/target.h:153:39: note: include '<stdlib.h>' or provide a declaration of 'aligned_alloc'
67daa0ccf3ef: 153 | # define KRML_ALIGNED_MALLOC(X, Y) aligned_alloc(X, Y)
67daa0ccf3ef: | ^~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:526:40: note: in expansion of macro 'KRML_ALIGNED_MALLOC'
67daa0ccf3ef: 526 | (Lib_IntVector_Intrinsics_vec128 *)KRML_ALIGNED_MALLOC(16,
67daa0ccf3ef: | ^~~~~~~~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c: In function 'malloc_raw':
67daa0ccf3ef: ./Modules/_hacl/include/krml/internal/target.h:153:39: warning: incompatible implicit declaration of built-in function 'aligned_alloc' [-Wbuiltin-declaration-mismatch]
67daa0ccf3ef: 153 | # define KRML_ALIGNED_MALLOC(X, Y) aligned_alloc(X, Y)
67daa0ccf3ef: | ^~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:587:40: note: in expansion of macro 'KRML_ALIGNED_MALLOC'
67daa0ccf3ef: 587 | (Lib_IntVector_Intrinsics_vec128 *)KRML_ALIGNED_MALLOC(16,
67daa0ccf3ef: | ^~~~~~~~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/include/krml/internal/target.h:153:39: note: include '<stdlib.h>' or provide a declaration of 'aligned_alloc'
67daa0ccf3ef: 153 | # define KRML_ALIGNED_MALLOC(X, Y) aligned_alloc(X, Y)
67daa0ccf3ef: | ^~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:587:40: note: in expansion of macro 'KRML_ALIGNED_MALLOC'
67daa0ccf3ef: 587 | (Lib_IntVector_Intrinsics_vec128 *)KRML_ALIGNED_MALLOC(16,
67daa0ccf3ef: | ^~~~~~~~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c: In function '_Py_LibHacl_Hacl_Hash_Blake2s_Simd128_copy':
67daa0ccf3ef: ./Modules/_hacl/include/krml/internal/target.h:153:39: warning: incompatible implicit declaration of built-in function 'aligned_alloc' [-Wbuiltin-declaration-mismatch]
67daa0ccf3ef: 153 | # define KRML_ALIGNED_MALLOC(X, Y) aligned_alloc(X, Y)
67daa0ccf3ef: | ^~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:1337:40: note: in expansion of macro 'KRML_ALIGNED_MALLOC'
67daa0ccf3ef: 1337 | (Lib_IntVector_Intrinsics_vec128 *)KRML_ALIGNED_MALLOC(16,
67daa0ccf3ef: | ^~~~~~~~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/include/krml/internal/target.h:153:39: note: include '<stdlib.h>' or provide a declaration of 'aligned_alloc'
67daa0ccf3ef: 153 | # define KRML_ALIGNED_MALLOC(X, Y) aligned_alloc(X, Y)
67daa0ccf3ef: | ^~~~~~~~~~~~~
67daa0ccf3ef: ./Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:1337:40: note: in expansion of macro 'KRML_ALIGNED_MALLOC'
67daa0ccf3ef: 1337 | (Lib_IntVector_Intrinsics_vec128 *)KRML_ALIGNED_MALLOC(16,
67daa0ccf3ef: | ^~~~~~~~~~~~~~~~~~~
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesOS-unsupportedbuildThe build process and cross-buildThe build process and cross-buildextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done