Skip to content

gh-155621: Fix unrepresentable defaults in socket.sendmsg() signature - #155623

Merged
kumaraditya303 merged 3 commits into
python:mainfrom
lpyu001:socket
Aug 14, 2026
Merged

gh-155621: Fix unrepresentable defaults in socket.sendmsg() signature#155623
kumaraditya303 merged 3 commits into
python:mainfrom
lpyu001:socket

Conversation

@lpyu001

@lpyu001 lpyu001 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Comment thread Lib/test/test_socket.py Outdated
@lpyu001

lpyu001 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

cc @kumaraditya303

@kumaraditya303

Copy link
Copy Markdown
Contributor

News is not needed for this.

@aisk aisk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please avoid force push in the future, see the dev guide for more detail: https://devguide.python.org/getting-started/pull-request-lifecycle/#don-t-force-push

@lpyu001

lpyu001 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

LGTM, but please avoid force push in the future, see the dev guide for more detail: https://devguide.python.org/getting-started/pull-request-lifecycle/#don-t-force-push

got it

@kumaraditya303
kumaraditya303 merged commit e5556cd into python:main Aug 14, 2026
55 checks passed
@terryjreedy

Copy link
Copy Markdown
Member

Is there a reason to not backport this bugfix?

@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot wasm32-wasi 3.x (tier-2) has failed when building commit e5556cd.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1046/builds/12739) and take a look at the build logs.
  4. Check if the failure is related to this commit (e5556cd) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/1046/builds/12739

Summary of the results of the build (if available):

Click to see traceback logs
Note: switching to 'e5556cdf71f7f5561fcaca21f6e680ebdd44cffb'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at e5556cdf71f7f5 gh-155621: Fix unrepresentable defaults in socket.sendmsg() signature (#155623)
Switched to and reset branch 'main'

⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; execute the `Platforms/WASI/` directory instead (i.e. `python Platforms/WASI`)


⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; execute the `Platforms/WASI/` directory instead (i.e. `python Platforms/WASI`)


⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; execute the `Platforms/WASI/` directory instead (i.e. `python Platforms/WASI`)


⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; execute the `Platforms/WASI/` directory instead (i.e. `python Platforms/WASI`)

configure: WARNING: using cross tools not prefixed with host triplet
configure: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal module

⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; execute the `Platforms/WASI/` directory instead (i.e. `python Platforms/WASI`)

../../Modules/_hacl/Lib_Memzero0.c:66:6: warning: "Your platform does not support any safe implementation of memzero -- consider a pull request!" [-W#warnings]
   66 |     #warning "Your platform does not support any safe implementation of memzero -- consider a pull request!"
      |      ^
1 warning generated.
../../Modules/socketmodule.c:1191:16: warning: unused variable 'netdb_lock' [-Wunused-variable]
 1191 | static PyMutex netdb_lock = {0};
      |                ^~~~~~~~~~
1 warning generated.
In file included from ../../Modules/md5module.c:30:
In file included from ../../Modules/_hacl/Hacl_Hash_MD5.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:130:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
  130 | #  define htole32(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:43:9: note: previous definition is here
   43 | #define htole32(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/md5module.c:30:
In file included from ../../Modules/_hacl/Hacl_Hash_MD5.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:131:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
  131 | #  define le32toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:44:9: note: previous definition is here
   44 | #define le32toh(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/md5module.c:30:
In file included from ../../Modules/_hacl/Hacl_Hash_MD5.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:132:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
  132 | #  define htobe32(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:37:9: note: previous definition is here
   37 | #define htobe32(x) __bswap32(x)
      |         ^
In file included from ../../Modules/md5module.c:30:
In file included from ../../Modules/_hacl/Hacl_Hash_MD5.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:138:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
  138 | #  define be32toh(x) (htobe32((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:38:9: note: previous definition is here
   38 | #define be32toh(x) __bswap32(x)
      |         ^
In file included from ../../Modules/md5module.c:30:
In file included from ../../Modules/_hacl/Hacl_Hash_MD5.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:140:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
  140 | #  define htole64(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:45:9: note: previous definition is here
   45 | #define htole64(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/md5module.c:30:
In file included from ../../Modules/_hacl/Hacl_Hash_MD5.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:141:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
  141 | #  define le64toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/md5module.c:30:
In file included from ../../Modules/_hacl/Hacl_Hash_MD5.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:142:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
  142 | #  define htobe64(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:39:9: note: previous definition is here
   39 | #define htobe64(x) __bswap64(x)
      |         ^
In file included from ../../Modules/md5module.c:30:
In file included from ../../Modules/_hacl/Hacl_Hash_MD5.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:149:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
  149 | #  define be64toh(x) (htobe64((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:40:9: note: previous definition is here
   40 | #define be64toh(x) __bswap64(x)
      |         ^
8 warnings generated.
In file included from ../../Modules/sha1module.c:28:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA1.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:130:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
  130 | #  define htole32(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:43:9: note: previous definition is here
   43 | #define htole32(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/sha1module.c:28:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA1.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:131:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
  131 | #  define le32toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:44:9: note: previous definition is here
   44 | #define le32toh(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/sha1module.c:28:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA1.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:132:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
  132 | #  define htobe32(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:37:9: note: previous definition is here
   37 | #define htobe32(x) __bswap32(x)
      |         ^
In file included from ../../Modules/sha1module.c:28:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA1.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:138:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
  138 | #  define be32toh(x) (htobe32((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:38:9: note: previous definition is here
   38 | #define be32toh(x) __bswap32(x)
      |         ^
In file included from ../../Modules/sha1module.c:28:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA1.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:140:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
  140 | #  define htole64(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:45:9: note: previous definition is here
   45 | #define htole64(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/sha1module.c:28:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA1.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:141:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
  141 | #  define le64toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/sha1module.c:28:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA1.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:142:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
  142 | #  define htobe64(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:39:9: note: previous definition is here
   39 | #define htobe64(x) __bswap64(x)
      |         ^
In file included from ../../Modules/sha1module.c:28:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA1.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:149:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
  149 | #  define be64toh(x) (htobe64((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:40:9: note: previous definition is here
   40 | #define be64toh(x) __bswap64(x)
      |         ^
In file included from ../../Modules/sha2module.c:31:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA2.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:130:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
  130 | #  define htole32(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:43:9: note: previous definition is here
   43 | #define htole32(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/sha2module.c:31:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA2.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:131:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
  131 | #  define le32toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:44:9: note: previous definition is here
   44 | #define le32toh(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/sha2module.c:31:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA2.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:132:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
  132 | #  define htobe32(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:37:9: note: previous definition is here
   37 | #define htobe32(x) __bswap32(x)
      |         ^
In file included from ../../Modules/sha2module.c:31:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA2.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:138:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
  138 | #  define be32toh(x) (htobe32((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:38:9: note: previous definition is here
   38 | #define be32toh(x) __bswap32(x)
      |         ^
In file included from ../../Modules/sha2module.c:31:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA2.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:140:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
  140 | #  define htole64(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:45:9: note: previous definition is here
   45 | #define htole64(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/sha2module.c:31:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA2.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:141:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
  141 | #  define le64toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/sha2module.c:31:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA2.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:142:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
  142 | #  define htobe64(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:39:9: note: previous definition is here
   39 | #define htobe64(x) __bswap64(x)
      |         ^
In file included from ../../Modules/sha2module.c:31:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA2.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:149:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
  149 | #  define be64toh(x) (htobe64((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:40:9: note: previous definition is here
   40 | #define be64toh(x) __bswap64(x)
      |         ^
8 warnings generated.
8 warnings generated.
In file included from ../../Modules/sha3module.c:29:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA3.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:130:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
  130 | #  define htole32(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:43:9: note: previous definition is here
   43 | #define htole32(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/sha3module.c:29:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA3.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:131:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
  131 | #  define le32toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:44:9: note: previous definition is here
   44 | #define le32toh(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/sha3module.c:29:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA3.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:132:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
  132 | #  define htobe32(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:37:9: note: previous definition is here
   37 | #define htobe32(x) __bswap32(x)
      |         ^
In file included from ../../Modules/sha3module.c:29:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA3.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:138:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
  138 | #  define be32toh(x) (htobe32((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:38:9: note: previous definition is here
   38 | #define be32toh(x) __bswap32(x)
      |         ^
In file included from ../../Modules/sha3module.c:29:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA3.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:140:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
  140 | #  define htole64(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:45:9: note: previous definition is here
   45 | #define htole64(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/sha3module.c:29:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA3.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:141:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
  141 | #  define le64toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/sha3module.c:29:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA3.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:142:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
  142 | #  define htobe64(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:39:9: note: previous definition is here
   39 | #define htobe64(x) __bswap64(x)
      |         ^
In file included from ../../Modules/sha3module.c:29:
In file included from ../../Modules/_hacl/Hacl_Hash_SHA3.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:149:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
  149 | #  define be64toh(x) (htobe64((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:40:9: note: previous definition is here
   40 | #define be64toh(x) __bswap64(x)
      |         ^
In file included from ../../Modules/blake2module.c:60:
In file included from ../../Modules/_hacl/Hacl_Hash_Blake2s.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:130:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
  130 | #  define htole32(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:43:9: note: previous definition is here
   43 | #define htole32(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/blake2module.c:60:
In file included from ../../Modules/_hacl/Hacl_Hash_Blake2s.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:131:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
  131 | #  define le32toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:44:9: note: previous definition is here
   44 | #define le32toh(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/blake2module.c:60:
In file included from ../../Modules/_hacl/Hacl_Hash_Blake2s.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:132:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
  132 | #  define htobe32(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:37:9: note: previous definition is here
   37 | #define htobe32(x) __bswap32(x)
      |         ^
In file included from ../../Modules/blake2module.c:60:
In file included from ../../Modules/_hacl/Hacl_Hash_Blake2s.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:138:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
  138 | #  define be32toh(x) (htobe32((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:38:9: note: previous definition is here
   38 | #define be32toh(x) __bswap32(x)
      |         ^
In file included from ../../Modules/blake2module.c:60:
In file included from ../../Modules/_hacl/Hacl_Hash_Blake2s.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:140:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
  140 | #  define htole64(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:45:9: note: previous definition is here
   45 | #define htole64(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/blake2module.c:60:
In file included from ../../Modules/_hacl/Hacl_Hash_Blake2s.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:141:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
  141 | #  define le64toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/blake2module.c:60:
In file included from ../../Modules/_hacl/Hacl_Hash_Blake2s.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:142:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
  142 | #  define htobe64(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:39:9: note: previous definition is here
   39 | #define htobe64(x) __bswap64(x)
      |         ^
In file included from ../../Modules/blake2module.c:60:
In file included from ../../Modules/_hacl/Hacl_Hash_Blake2s.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:149:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
  149 | #  define be64toh(x) (htobe64((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:40:9: note: previous definition is here
   40 | #define be64toh(x) __bswap64(x)
      |         ^
8 warnings generated.
In file included from ../../Modules/hmacmodule.c:44:
In file included from ../../Modules/_hacl/Hacl_HMAC.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:130:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
  130 | #  define htole32(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:43:9: note: previous definition is here
   43 | #define htole32(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/hmacmodule.c:44:
In file included from ../../Modules/_hacl/Hacl_HMAC.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:131:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
  131 | #  define le32toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:44:9: note: previous definition is here
   44 | #define le32toh(x) (uint32_t)(x)
      |         ^
In file included from ../../Modules/hmacmodule.c:44:
In file included from ../../Modules/_hacl/Hacl_HMAC.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:132:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
  132 | #  define htobe32(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:37:9: note: previous definition is here
   37 | #define htobe32(x) __bswap32(x)
      |         ^
In file included from ../../Modules/hmacmodule.c:44:
In file included from ../../Modules/_hacl/Hacl_HMAC.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:138:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
  138 | #  define be32toh(x) (htobe32((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:38:9: note: previous definition is here
   38 | #define be32toh(x) __bswap32(x)
      |         ^
In file included from ../../Modules/hmacmodule.c:44:
In file included from ../../Modules/_hacl/Hacl_HMAC.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:140:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
  140 | #  define htole64(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:45:9: note: previous definition is here
   45 | #define htole64(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/hmacmodule.c:44:
In file included from ../../Modules/_hacl/Hacl_HMAC.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:141:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
  141 | #  define le64toh(x) (x)
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
In file included from ../../Modules/hmacmodule.c:44:
In file included from ../../Modules/_hacl/Hacl_HMAC.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:142:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
  142 | #  define htobe64(x)                                                           \
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:39:9: note: previous definition is here
   39 | #define htobe64(x) __bswap64(x)
      |         ^
In file included from ../../Modules/hmacmodule.c:44:
In file included from ../../Modules/_hacl/Hacl_HMAC.h:35:
In file included from ../../Modules/_hacl/include/krml/internal/types.h:89:
../../Modules/_hacl/include/krml/lowstar_endianness.h:149:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
  149 | #  define be64toh(x) (htobe64((x)))
      |           ^
/opt/wasi-sdk-33.0-x86_64-linux/bin/../share/wasi-sysroot/include/wasm32-wasip1/endian.h:40:9: note: previous definition is here
   40 | #define be64toh(x) __bswap64(x)
      |         ^
8 warnings generated.
8 warnings generated.
clang: error: unable to execute command: Bus error
clang: error: linker command failed due to signal (use -v to see invocation)
make: *** [Makefile:1095: python.wasm] Error 1
Traceback (most recent call last):
  File "/buildarea/3.x.bcannon-wasi.wasi.debug/build/Tools/wasm/wasi.py", line 5, in <module>
    runpy.run_path(pathlib.Path(__file__).parent / "wasi", run_name="__main__")
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen runpy>", line 311, in run_path
  File "<frozen runpy>", line 88, in _run_code
  File "/buildarea/3.x.bcannon-wasi.wasi.debug/build/Tools/wasm/wasi/__main__.py", line 14, in <module>
    runpy.run_path(checkout / "Platforms" / "WASI", run_name="__main__")
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen runpy>", line 311, in run_path
  File "<frozen runpy>", line 88, in _run_code
  File "/buildarea/3.x.bcannon-wasi.wasi.debug/build/Platforms/WASI/__main__.py", line 204, in <module>
    main()
    ~~~~^^
  File "/buildarea/3.x.bcannon-wasi.wasi.debug/build/Platforms/WASI/__main__.py", line 174, in main
    _build.make_wasi_python(context)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/buildarea/3.x.bcannon-wasi.wasi.debug/build/Platforms/WASI/_build.py", line 99, in wrapper
    return func(context, working_dir)
  File "/buildarea/3.x.bcannon-wasi.wasi.debug/build/Platforms/WASI/_build.py", line 270, in make_wasi_python
    call(
    ~~~~^
        ["make", "--jobs", str(cpu_count()), "all"],
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        env=updated_env(),
        ^^^^^^^^^^^^^^^^^^
        context=context,
        ^^^^^^^^^^^^^^^^
    )
    ^
  File "/buildarea/3.x.bcannon-wasi.wasi.debug/build/Platforms/WASI/_build.py", line 132, in call
    subprocess.check_call(command, **kwargs, stdout=stdout, stderr=stderr)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/subprocess.py", line 420, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '--jobs', '4', 'all']' returned non-zero exit status 2.

⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; execute the `Platforms/WASI/` directory instead (i.e. `python Platforms/WASI`)

@aisk

aisk commented Aug 14, 2026

Copy link
Copy Markdown
Member

sendmsg was migrated to use Argument Clinic in 3.15, so we can just backport it to 3.15.

@aisk aisk added the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 14, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @lpyu001 for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @lpyu001 and @kumaraditya303, I could not cleanly backport this to 3.15 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker e5556cdf71f7f5561fcaca21f6e680ebdd44cffb 3.15

@bedevere-app

bedevere-app Bot commented Aug 14, 2026

Copy link
Copy Markdown

GH-155802 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 14, 2026
@aisk

aisk commented Aug 14, 2026

Copy link
Copy Markdown
Member

I will backport to 3.15

I just done it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants