Skip to content

gh-146228: Better fork support in cached FastPath#146231

Merged
jaraco merged 4 commits intopython:mainfrom
jaraco:gh-146228/forking-fastpath
Mar 20, 2026
Merged

gh-146228: Better fork support in cached FastPath#146231
jaraco merged 4 commits intopython:mainfrom
jaraco:gh-146228/forking-fastpath

Conversation

@jaraco
Copy link
Member

@jaraco jaraco commented Mar 20, 2026

@jaraco
Copy link
Member Author

jaraco commented Mar 20, 2026

Well that's interesting. The new test is failing due to a new deprecation of forking multithreaded calls.

ERROR: test_fastpath_cache_cleared_in_forked_child (test.test_importlib.metadata.test_zip.TestEgg.test_fastpath_cache_cleared_in_forked_child)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_importlib/metadata/test_zip.py", line 77, in test_fastpath_cache_cleared_in_forked_child
    proc.start()
    ~~~~~~~~~~^^
  File "/Users/runner/work/cpython/cpython/Lib/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
                  ~~~~~~~~~~~^^^^^^
  File "/Users/runner/work/cpython/cpython/Lib/multiprocessing/context.py", line 290, in _Popen
    return Popen(process_obj)
  File "/Users/runner/work/cpython/cpython/Lib/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
    ~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/Users/runner/work/cpython/cpython/Lib/multiprocessing/popen_fork.py", line 70, in _launch
    self.pid = os.fork()
               ~~~~~~~^^
DeprecationWarning: This process (pid=40559) is multi-threaded, use of fork() may lead to deadlocks in the child.

======================================================================
ERROR: test_fastpath_cache_cleared_in_forked_child (test.test_importlib.metadata.test_zip.TestZip.test_fastpath_cache_cleared_in_forked_child)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_importlib/metadata/test_zip.py", line 77, in test_fastpath_cache_cleared_in_forked_child
    proc.start()
    ~~~~~~~~~~^^
  File "/Users/runner/work/cpython/cpython/Lib/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
                  ~~~~~~~~~~~^^^^^^
  File "/Users/runner/work/cpython/cpython/Lib/multiprocessing/context.py", line 290, in _Popen
    return Popen(process_obj)
  File "/Users/runner/work/cpython/cpython/Lib/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
    ~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/Users/runner/work/cpython/cpython/Lib/multiprocessing/popen_fork.py", line 70, in _launch
    self.pid = os.fork()
               ~~~~~~~^^
DeprecationWarning: This process (pid=40559) is multi-threaded, use of fork() may lead to deadlocks in the child.

The issue doesn't manifest for me when I run tests locally, but that's likely because I'm running in some single threaded mode.

@jaraco
Copy link
Member Author

jaraco commented Mar 20, 2026

I see a bunch of tests using @warnings_helper.ignore_fork_in_thread_deprecation_warnings().

@jaraco
Copy link
Member Author

jaraco commented Mar 20, 2026

Since this code has been available in importlib_metadata for a good while, I'm going to proceed with merging this so it can unblock subsequent changes (#143387).

@jaraco jaraco enabled auto-merge (squash) March 20, 2026 20:06
@jaraco jaraco merged commit b5e4c46 into python:main Mar 20, 2026
47 checks passed
@bedevere-bot
Copy link

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

Hi! The buildbot WASM Emscripten 3.x (tier-3) has failed when building commit b5e4c46.

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/1810/builds/2097) and take a look at the build logs.
  4. Check if the failure is related to this commit (b5e4c46) 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/1810/builds/2097

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

Click to see traceback logs
remote: Enumerating objects: 37, done.        
remote: Counting objects:   2% (1/37)        
remote: Counting objects:   5% (2/37)        
remote: Counting objects:   8% (3/37)        
remote: Counting objects:  10% (4/37)        
remote: Counting objects:  13% (5/37)        
remote: Counting objects:  16% (6/37)        
remote: Counting objects:  18% (7/37)        
remote: Counting objects:  21% (8/37)        
remote: Counting objects:  24% (9/37)        
remote: Counting objects:  27% (10/37)        
remote: Counting objects:  29% (11/37)        
remote: Counting objects:  32% (12/37)        
remote: Counting objects:  35% (13/37)        
remote: Counting objects:  37% (14/37)        
remote: Counting objects:  40% (15/37)        
remote: Counting objects:  43% (16/37)        
remote: Counting objects:  45% (17/37)        
remote: Counting objects:  48% (18/37)        
remote: Counting objects:  51% (19/37)        
remote: Counting objects:  54% (20/37)        
remote: Counting objects:  56% (21/37)        
remote: Counting objects:  59% (22/37)        
remote: Counting objects:  62% (23/37)        
remote: Counting objects:  64% (24/37)        
remote: Counting objects:  67% (25/37)        
remote: Counting objects:  70% (26/37)        
remote: Counting objects:  72% (27/37)        
remote: Counting objects:  75% (28/37)        
remote: Counting objects:  78% (29/37)        
remote: Counting objects:  81% (30/37)        
remote: Counting objects:  83% (31/37)        
remote: Counting objects:  86% (32/37)        
remote: Counting objects:  89% (33/37)        
remote: Counting objects:  91% (34/37)        
remote: Counting objects:  94% (35/37)        
remote: Counting objects:  97% (36/37)        
remote: Counting objects: 100% (37/37)        
remote: Counting objects: 100% (37/37), done.        
remote: Compressing objects:   5% (1/20)        
remote: Compressing objects:  10% (2/20)        
remote: Compressing objects:  15% (3/20)        
remote: Compressing objects:  20% (4/20)        
remote: Compressing objects:  25% (5/20)        
remote: Compressing objects:  30% (6/20)        
remote: Compressing objects:  35% (7/20)        
remote: Compressing objects:  40% (8/20)        
remote: Compressing objects:  45% (9/20)        
remote: Compressing objects:  50% (10/20)        
remote: Compressing objects:  55% (11/20)        
remote: Compressing objects:  60% (12/20)        
remote: Compressing objects:  65% (13/20)        
remote: Compressing objects:  70% (14/20)        
remote: Compressing objects:  75% (15/20)        
remote: Compressing objects:  80% (16/20)        
remote: Compressing objects:  85% (17/20)        
remote: Compressing objects:  90% (18/20)        
remote: Compressing objects:  95% (19/20)        
remote: Compressing objects: 100% (20/20)        
remote: Compressing objects: 100% (20/20), done.        
remote: Total 20 (delta 17), reused 1 (delta 0), pack-reused 0 (from 0)        
From https://github.com/python/cpython
 * branch                    main       -> FETCH_HEAD
Note: switching to 'b5e4c46be24d1fade0deda211785c04a74a722cc'.

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 b5e4c46be24 gh-146228: Better fork support in cached FastPath (#146231)
Switched to and reset branch 'main'

configure: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal module

In file included from ../../Include/internal/pycore_dict.h:11,
                 from ../../Objects/typeobject.c:8:
In function ‘Py_DECREF_MORTAL’,
    inlined from ‘PyStackRef_CLOSE’ at ../../Include/internal/pycore_stackref.h:680:9,
    inlined from ‘_PyThreadState_PopCStackRef’ at ../../Include/internal/pycore_stackref.h:788:5,
    inlined from ‘vectorcall_maybe’ at ../../Objects/typeobject.c:3117:9:
../../Include/internal/pycore_object.h:456:8: warning: array subscript 0 is outside array bounds of ‘PyObject[0]’ {aka ‘struct _object[]’} [-Warray-bounds]
  456 |     if (--op->ob_refcnt == 0) {
      |        ^

v24.14.0 is already installed.
configure: ../../../../configure 'CFLAGS=-DPY_CALL_TRAMPOLINE -sUSE_BZIP2' PKG_CONFIG=pkg-config --host=wasm32-emscripten --build=x86_64-pc-linux-gnu --with-build-python=/home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/build/python --without-pymalloc --disable-shared --disable-ipv6 --enable-big-digits=30 --enable-wasm-dynamic-linking --prefix=/home/emscripten/emsdk-versions/4.0.12/prefix

In file included from ../../../../Modules/_remote_debugging/module.c:8:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../../Modules/_remote_debugging/object_reading.c:8:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
1 warning generated.
In file included from ../../../../Modules/_remote_debugging/code_objects.c:8:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
In file included from ../../../../Modules/_remote_debugging/frames.c:8:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../../Modules/_remote_debugging/frame_cache.c:8:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
1 warning generated.
In file included from ../../../../Modules/_remote_debugging/threads.c:8:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
In file included from ../../../../Modules/_remote_debugging/binary_io_writer.c:13:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../../Modules/_remote_debugging/asyncio.c:8:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
1 warning generated.
../../../../Modules/_remote_debugging/binary_io_reader.c:1049:55: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
 1049 |             if (replayed % PROGRESS_CALLBACK_INTERVAL < count) {
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
In file included from ../../../../Modules/_remote_debugging/binary_io_reader.c:13:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from ../../../../Modules/_remote_debugging/subprocess.c:8:
In file included from ../../../../Modules/_remote_debugging/_remote_debugging.h:34:
../../../../Modules/_remote_debugging/../../Python/remote_debug.h:165:1: warning: unused function '_Py_RemoteDebug_ValidatePyRuntimeCookie' [-Wunused-function]
  165 | _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../Modules/_remote_debugging/subprocess.c:100:1: warning: unused function 'find_children_bfs' [-Wunused-function]
  100 | find_children_bfs(pid_t target_pid, int recursive,
      | ^~~~~~~~~~~~~~~~~
2 warnings generated.
../../../../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:4358:33: warning: comparison of integers of different signs: '__size_t' (aka 'unsigned long') and '__ptrdiff_t' (aka 'long') [-Wsign-compare]
 4358 |          cmsgh != NULL; cmsgh = CMSG_NXTHDR(&msg, cmsgh)) {
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/sys/socket.h:358:44: note: expanded from macro 'CMSG_NXTHDR'
  358 |         __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../Modules/socketmodule.c:4411:33: warning: comparison of integers of different signs: '__size_t' (aka 'unsigned long') and '__ptrdiff_t' (aka 'long') [-Wsign-compare]
 4411 |          cmsgh != NULL; cmsgh = CMSG_NXTHDR(&msg, cmsgh)) {
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/sys/socket.h:358:44: note: expanded from macro 'CMSG_NXTHDR'
  358 |         __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../Modules/socketmodule.c:5063:54: warning: comparison of integers of different signs: '__size_t' (aka 'unsigned long') and '__ptrdiff_t' (aka 'long') [-Wsign-compare]
 5063 |             cmsgh = (i == 0) ? CMSG_FIRSTHDR(&msg) : CMSG_NXTHDR(&msg, cmsgh);
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/sys/socket.h:358:44: note: expanded from macro 'CMSG_NXTHDR'
  358 |         __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
../../../../Modules/_sqlite/connection.c:2303:19: warning: result of comparison of constant 9223372036854775807 with expression of type 'Py_ssize_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
 2303 |     if (data->len > 9223372036854775807) {  // (1 << 63) - 1
      |         ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
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:83:11: warning: 'htobe16' macro redefined [-Wmacro-redefined]
   83 | #  define htobe16(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:35:9: note: previous definition is here
   35 | #define htobe16(x) __bswap16(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:84:11: warning: 'htole16' macro redefined [-Wmacro-redefined]
   84 | #  define htole16(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:41:9: note: previous definition is here
   41 | #define htole16(x) (uint16_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:85:11: warning: 'be16toh' macro redefined [-Wmacro-redefined]
   85 | #  define be16toh(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:36:9: note: previous definition is here
   36 | #define be16toh(x) __bswap16(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:86:11: warning: 'le16toh' macro redefined [-Wmacro-redefined]
   86 | #  define le16toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:42:9: note: previous definition is here
   42 | #define le16toh(x) (uint16_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:88:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
   88 | #  define htobe32(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:89:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
   89 | #  define htole32(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:90:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
   90 | #  define be32toh(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:91:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
   91 | #  define le32toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:93:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
   93 | #  define htobe64(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:94:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
   94 | #  define htole64(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:95:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
   95 | #  define be64toh(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:40:9: note: previous definition is here
   40 | #define be64toh(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:96:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
   96 | #  define le64toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
12 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:83:11: warning: 'htobe16' macro redefined [-Wmacro-redefined]
   83 | #  define htobe16(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:35:9: note: previous definition is here
   35 | #define htobe16(x) __bswap16(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:84:11: warning: 'htole16' macro redefined [-Wmacro-redefined]
   84 | #  define htole16(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:41:9: note: previous definition is here
   41 | #define htole16(x) (uint16_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:85:11: warning: 'be16toh' macro redefined [-Wmacro-redefined]
   85 | #  define be16toh(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:36:9: note: previous definition is here
   36 | #define be16toh(x) __bswap16(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:86:11: warning: 'le16toh' macro redefined [-Wmacro-redefined]
   86 | #  define le16toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:42:9: note: previous definition is here
   42 | #define le16toh(x) (uint16_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:88:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
   88 | #  define htobe32(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:89:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
   89 | #  define htole32(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:90:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
   90 | #  define be32toh(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:91:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
   91 | #  define le32toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:93:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
   93 | #  define htobe64(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:94:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
   94 | #  define htole64(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:95:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
   95 | #  define be64toh(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:40:9: note: previous definition is here
   40 | #define be64toh(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:96:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
   96 | #  define le64toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
12 warnings generated.
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:83:11: warning: 'htobe16' macro redefined [-Wmacro-redefined]
   83 | #  define htobe16(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:35:9: note: previous definition is here
   35 | #define htobe16(x) __bswap16(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:84:11: warning: 'htole16' macro redefined [-Wmacro-redefined]
   84 | #  define htole16(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:41:9: note: previous definition is here
   41 | #define htole16(x) (uint16_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:85:11: warning: 'be16toh' macro redefined [-Wmacro-redefined]
   85 | #  define be16toh(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:36:9: note: previous definition is here
   36 | #define be16toh(x) __bswap16(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:86:11: warning: 'le16toh' macro redefined [-Wmacro-redefined]
   86 | #  define le16toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:42:9: note: previous definition is here
   42 | #define le16toh(x) (uint16_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:88:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
   88 | #  define htobe32(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:89:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
   89 | #  define htole32(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:90:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
   90 | #  define be32toh(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:91:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
   91 | #  define le32toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:93:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
   93 | #  define htobe64(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:94:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
   94 | #  define htole64(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:95:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
   95 | #  define be64toh(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:96:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
   96 | #  define le64toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
12 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:83:11: warning: 'htobe16' macro redefined [-Wmacro-redefined]
   83 | #  define htobe16(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:35:9: note: previous definition is here
   35 | #define htobe16(x) __bswap16(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:84:11: warning: 'htole16' macro redefined [-Wmacro-redefined]
   84 | #  define htole16(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:41:9: note: previous definition is here
   41 | #define htole16(x) (uint16_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:85:11: warning: 'be16toh' macro redefined [-Wmacro-redefined]
   85 | #  define be16toh(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:36:9: note: previous definition is here
   36 | #define be16toh(x) __bswap16(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:86:11: warning: 'le16toh' macro redefined [-Wmacro-redefined]
   86 | #  define le16toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:42:9: note: previous definition is here
   42 | #define le16toh(x) (uint16_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:88:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
   88 | #  define htobe32(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:89:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
   89 | #  define htole32(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:90:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
   90 | #  define be32toh(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:91:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
   91 | #  define le32toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:93:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
   93 | #  define htobe64(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:94:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
   94 | #  define htole64(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:95:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
   95 | #  define be64toh(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:40:9: note: previous definition is here
   40 | #define be64toh(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:96:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
   96 | #  define le64toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:83:11: warning: 'htobe16' macro redefined [-Wmacro-redefined]
   83 | #  define htobe16(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:35:9: note: previous definition is here
   35 | #define htobe16(x) __bswap16(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:84:11: warning: 'htole16' macro redefined [-Wmacro-redefined]
   84 | #  define htole16(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:41:9: note: previous definition is here
   41 | #define htole16(x) (uint16_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:85:11: warning: 'be16toh' macro redefined [-Wmacro-redefined]
   85 | #  define be16toh(x) __builtin_bswap16(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:36:9: note: previous definition is here
   36 | #define be16toh(x) __bswap16(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:86:11: warning: 'le16toh' macro redefined [-Wmacro-redefined]
   86 | #  define le16toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:42:9: note: previous definition is here
   42 | #define le16toh(x) (uint16_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:88:11: warning: 'htobe32' macro redefined [-Wmacro-redefined]
   88 | #  define htobe32(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:89:11: warning: 'htole32' macro redefined [-Wmacro-redefined]
   89 | #  define htole32(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:90:11: warning: 'be32toh' macro redefined [-Wmacro-redefined]
   90 | #  define be32toh(x) __builtin_bswap32(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:91:11: warning: 'le32toh' macro redefined [-Wmacro-redefined]
   91 | #  define le32toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:93:11: warning: 'htobe64' macro redefined [-Wmacro-redefined]
   93 | #  define htobe64(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:94:11: warning: 'htole64' macro redefined [-Wmacro-redefined]
   94 | #  define htole64(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:95:11: warning: 'be64toh' macro redefined [-Wmacro-redefined]
   95 | #  define be64toh(x) __builtin_bswap64(x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/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:96:11: warning: 'le64toh' macro redefined [-Wmacro-redefined]
   96 | #  define le64toh(x) (x)
      |           ^
/home/emscripten/emsdk-versions/4.0.12/emsdk/upstream/emscripten/cache/sysroot/include/endian.h:46:9: note: previous definition is here
   46 | #define le64toh(x) (uint64_t)(x)
      |         ^
12 warnings generated.
12 warnings generated.
Created /home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python3.15.zip (3.81 MiB)
mcc: warning: EXPORTED_FUNCTIONS is not valid with LINKABLE set (normally due to SIDE_MODULE=1/MAIN_MODULE=1) since all functions are exported this mode.  To export only a subset use SIDE_MODULE=2/MAIN_MODULE=2 [-Wunused-command-line-argument]

�[33mtest.test_asyncio.test_base_events skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_buffered_proto skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_context skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_eager_task_factory skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_events skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_free_threading skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_futures skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_futures2 skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_graph skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_locks skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_pep492 skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_proactor_events skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_protocols skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_queues skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_runners skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_selector_events skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_sendfile skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_server skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_sock_lowlevel skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_ssl skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_sslproto skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_staggered skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_streams skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_subprocess skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_taskgroups skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_tasks skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_threads skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_timeouts skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_tools skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_transports skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_unix_events skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_waitfor skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_windows_events skipped -- requires socket support�[0m
�[33mtest.test_asyncio.test_windows_utils skipped -- requires socket support�[0m
�[33mtest.test_concurrent_futures.test_as_completed skipped -- requires threading support�[0m
�[33mtest.test_concurrent_futures.test_deadlock skipped -- requires threading support�[0m
�[33mtest.test_concurrent_futures.test_future skipped -- requires threading support�[0m
�[33mtest.test_concurrent_futures.test_init skipped -- requires threading support�[0m
�[33mtest.test_concurrent_futures.test_interpreter_pool skipped -- requires threading support�[0m
�[33mtest.test_concurrent_futures.test_process_pool skipped -- requires threading support�[0m
�[33mtest.test_concurrent_futures.test_shutdown skipped -- requires threading support�[0m
�[33mtest.test_concurrent_futures.test_thread_pool skipped -- requires threading support�[0m
�[33mtest.test_concurrent_futures.test_wait skipped -- requires threading support�[0m
�[33mtest.test_gdb.test_backtrace skipped -- Couldn't find gdb program on the path: [Errno 138] emscripten does not support processes.�[0m
�[33mtest.test_gdb.test_cfunction skipped -- Couldn't find gdb program on the path: [Errno 138] emscripten does not support processes.�[0m
�[33mtest.test_gdb.test_cfunction_full skipped -- Couldn't find gdb program on the path: [Errno 138] emscripten does not support processes.�[0m
�[33mtest.test_gdb.test_misc skipped -- Couldn't find gdb program on the path: [Errno 138] emscripten does not support processes.�[0m
�[33mtest.test_gdb.test_pretty_print skipped -- Couldn't find gdb program on the path: [Errno 138] emscripten does not support processes.�[0m
�[33mtest.test_multiprocessing_fork.test_manager skipped -- No module named '_multiprocessing'�[0m
�[33mtest.test_multiprocessing_fork.test_misc skipped -- No module named '_multiprocessing'�[0m
�[33mtest.test_multiprocessing_fork.test_processes skipped -- No module named '_multiprocessing'�[0m
�[33mtest.test_multiprocessing_fork.test_threads skipped -- No module named '_multiprocessing'�[0m
�[33mtest.test_multiprocessing_forkserver.test_manager skipped -- requires working os.fork()�[0m
�[33mtest.test_multiprocessing_forkserver.test_misc skipped -- requires working os.fork()�[0m
�[33mtest.test_multiprocessing_forkserver.test_preload skipped -- requires working os.fork()�[0m
�[33mtest.test_multiprocessing_forkserver.test_processes skipped -- requires working os.fork()�[0m
�[33mtest.test_multiprocessing_forkserver.test_threads skipped -- requires working os.fork()�[0m
�[33mtest.test_multiprocessing_spawn.test_manager skipped -- No module named '_multiprocessing'�[0m
�[33mtest.test_multiprocessing_spawn.test_misc skipped -- No module named '_multiprocessing'�[0m
�[33mtest.test_multiprocessing_spawn.test_processes skipped -- No module named '_multiprocessing'�[0m
�[33mtest.test_multiprocessing_spawn.test_threads skipped -- No module named '_multiprocessing'�[0m
�[33mtest.test_os.test_windows skipped -- Win32 specific tests�[0m
�[33mtest__interpchannels skipped -- No module named '_interpchannels'�[0m
�[33mtest__interpreters skipped -- No module named '_interpreters'�[0m
�[33mtest_android skipped -- Android-specific�[0m
�[33mtest_apple skipped -- Apple-specific�[0m
�[33mtest_argparse skipped -- test module requires subprocess�[0m
�[33mtest_asyncgen skipped -- requires socket support�[0m
�[33mtest_clinic skipped -- test module requires subprocess�[0m
�[33mtest_cmd_line skipped -- test module requires subprocess�[0m
�[33mtest_crossinterp skipped -- No module named '_interpreters'�[0m
�[33mtest_curses skipped -- No module named '_curses'�[0m
�[33mtest_dbm_gnu skipped -- No module named '_gdbm'�[0m
�[33mtest_dbm_ndbm skipped -- No module named '_dbm'�[0m
�[33mtest_devpoll skipped -- test works only on Solaris OS family�[0m
�[33mtest_docxmlrpc skipped -- requires socket support�[0m
�[33mtest_dtrace skipped -- test module requires subprocess�[0m
�[33mtest_embed skipped -- test module requires subprocess�[0m
�[33mtest_epoll skipped -- test works only on Linux 2.6�[0m
�[33mtest_faulthandler skipped -- test module requires subprocess�[0m
�[33mtest_file_eintr skipped -- test module requires subprocess�[0m
�[33mtest_fork1 skipped -- test module requires working os.fork�[0m
�[33mtest_frame_pointer_unwind skipped -- test requires subprocess support�[0m
�[33mtest_free_threading skipped -- GIL enabled�[0m
�[33mtest_ftplib skipped -- requires socket support�[0m
�[33mtest_generated_cases skipped -- test module requires subprocess�[0m
�[33mtest_getopt skipped -- test module requires subprocess�[0m
�[33mtest_grp skipped -- No module named 'grp'�[0m
�[33mtest_httplib skipped -- requires socket support�[0m
�[33mtest_httpservers skipped -- requires socket support�[0m
�[33mtest_idle skipped -- No module named '_tkinter'�[0m
�[33mtest_imaplib skipped -- requires socket support�[0m
node:internal/modules/cjs/loader:1456
  const err = new Error(message);
              ^

Error: Cannot find module 'ws'
Require stack:
- /home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
    at Module._load (node:internal/modules/cjs/loader:1242:25)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.require (node:internal/modules/cjs/loader:1556:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.listen (file:///home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs:1:99158)
    at ___syscall_listen (file:///home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs:1:116282)
    at wasm://wasm/02b65c12:wasm-function[16939]:0x730c5a {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/emscripten/buildarea/3.x.rkm-emscripten.emscripten/build/cross-build/wasm32-emscripten/build/python/python.mjs'
  ]
}

Node.js v24.14.0

[WebServer] (node:1265863) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
[WebServer] (Use `node --trace-deprecation ...` to show where the warning was created)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants