Could not build diffutils 3.10.

Hi, I tried to use this tool to build diffutils 3.10. But when I try to execute wasimake make or make, it failed with the following errors.
Reproduce steps:

wget https://ftp.gnu.org/gnu/diffutils/diffutils-3.10.tar.xz
tar -xvf diffutils-3.10.tar.xz
cd diffutils-3.10
wasiconfigure ./configure ac_cv_have_decl_alarm=no gl_cv_func_sleep_works=yes
wasimake make -j `nproc`  # or wasimake make or make

Details
make_error.log

I generated the diff between normal ./configure and wasiconfigure ./configure ([root@localhost diffutils-3.10]# diff src/Makefile ~/diffutils-3.10/src/Makefile > make.diff), the GL_CFLAG_GNULIB_WARNINGS seems incorrect.
Details
111,112c111,112
< build_triplet = x86_64-pc-linux-muslx32
< host_triplet = x86_64-pc-linux-muslx32
---
> build_triplet = x86_64-pc-linux-gnu
> host_triplet = x86_64-pc-linux-gnu
345c345
< ACLOCAL = ${SHELL} '/root/wasi_example/diffutils-3.10/build-aux/missing' aclocal-1.16
---
> ACLOCAL = ${SHELL} '/root/diffutils-3.10/build-aux/missing' aclocal-1.16
347c347
< ALLOCA_H =
---
> ALLOCA_H = alloca.h
351c351
< AR = wasiar
---
> AR = /root/emsdk/upstream/emscripten/emar
354,356c354,356
< AUTOCONF = ${SHELL} '/root/wasi_example/diffutils-3.10/build-aux/missing' autoconf
< AUTOHEADER = ${SHELL} '/root/wasi_example/diffutils-3.10/build-aux/missing' autoheader
< AUTOMAKE = ${SHELL} '/root/wasi_example/diffutils-3.10/build-aux/missing' automake-1.16
---
> AUTOCONF = ${SHELL} '/root/diffutils-3.10/build-aux/missing' autoconf
> AUTOHEADER = ${SHELL} '/root/diffutils-3.10/build-aux/missing' autoheader
> AUTOMAKE = ${SHELL} '/root/diffutils-3.10/build-aux/missing' automake-1.16
358,363c358,363
< BITSIZEOF_PTRDIFF_T = 32
< BITSIZEOF_SIG_ATOMIC_T = 32
< BITSIZEOF_SIZE_T = 32
< BITSIZEOF_WCHAR_T = 32
< BITSIZEOF_WINT_T = 32
< CC = wasicc
---
> BITSIZEOF_PTRDIFF_T =
> BITSIZEOF_SIG_ATOMIC_T =
> BITSIZEOF_SIZE_T =
> BITSIZEOF_WCHAR_T =
> BITSIZEOF_WINT_T =
> CC = /root/emsdk/upstream/emscripten/emcc
365,366c365,366
< CFLAGS = -g -O2
< CFLAG_VISIBILITY = -fvisibility=hidden
---
> CFLAGS = -g -O2 -s STANDALONE_WASM -s WASM -s PURE_WASI
> CFLAG_VISIBILITY =
369c369
< CPP = wasicc -E
---
> CPP = /root/emsdk/upstream/emscripten/emcc -E
396c396
< GL_CFLAG_GNULIB_WARNINGS =  struct stat; typedef long int ptrdiff_t; typedef long unsigned int size_t; typedef int wchar_t; typedef struct { long long __clang_max_align_nonce1 __attribute__((__aligned__(__alignof__(long long)))); long double __clang_max_align_nonce2 __attribute__((__aligned__(__alignof__(long double)))); } max_align_t; typedef unsigned long uintptr_t; typedef long intptr_t; typedef signed char int8_t; typedef signed short int16_t; typedef signed int int32_t; typedef signed long long int64_t; typedef signed long long intmax_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; typedef unsigned long long uintmax_t; typedef long long time_t; typedef long long suseconds_t; struct timeval { time_t tv_sec; suseconds_t tv_usec; }; struct timespec { time_t tv_sec; long tv_nsec; }; struct iovec { void *iov_base; size_t iov_len; }; typedef int8_t int_fast8_t; typedef int64_t int_fast64_t; typedef int8_t int_least8_t; typedef int16_t int_least16_t; typedef int32_t int_least32_t; typedef int64_t int_least64_t; typedef uint8_t uint_fast8_t; typedef uint64_t uint_fast64_t; typedef uint8_t uint_least8_t; typedef uint16_t uint_least16_t; typedef uint32_t uint_least32_t; typedef uint64_t uint_least64_t; typedef int16_t int_fast16_t; typedef int32_t int_fast32_t; typedef uint16_t uint_fast16_t; typedef uint32_t uint_fast32_t; _Static_assert(_Alignof(int8_t) == 1, "non-wasi data layout"); _Static_assert(_Alignof(uint8_t) == 1, "non-wasi data layout"); _Static_assert(_Alignof(int16_t) == 2, "non-wasi data layout"); _Static_assert(_Alignof(uint16_t) == 2, "non-wasi data layout"); _Static_assert(_Alignof(int32_t) == 4, "non-wasi data layout"); _Static_assert(_Alignof(uint32_t) == 4, "non-wasi data layout"); _Static_assert(_Alignof(int64_t) == 8, "non-wasi data layout"); _Static_assert(_Alignof(uint64_t) == 8, "non-wasi data layout"); typedef uint8_t __wasi_advice_t; typedef uint32_t __wasi_clockid_t; typedef uint64_t __wasi_device_t; typedef uint64_t __wasi_dircookie_t; typedef uint16_t __wasi_errno_t; typedef uint16_t __wasi_eventrwflags_t; typedef uint8_t __wasi_eventtype_t; typedef uint32_t __wasi_exitcode_t; typedef uint32_t __wasi_fd_t; typedef uint16_t __wasi_fdflags_t; typedef int64_t __wasi_filedelta_t; typedef uint64_t __wasi_filesize_t; typedef uint8_t __wasi_filetype_t; typedef uint16_t __wasi_fstflags_t; typedef uint64_t __wasi_inode_t; typedef uint32_t __wasi_linkcount_t; typedef uint32_t __wasi_lookupflags_t; typedef uint16_t __wasi_oflags_t; typedef uint16_t __wasi_riflags_t; typedef uint64_t __wasi_rights_t; typedef uint16_t __wasi_roflags_t; typedef uint8_t __wasi_sdflags_t; typedef uint16_t __wasi_siflags_t; typedef uint8_t __wasi_signal_t; typedef uint16_t __wasi_subclockflags_t; typedef uint64_t __wasi_timestamp_t; typedef uint64_t __wasi_userdata_t; typedef uint8_t __wasi_whence_t; typedef uint8_t __wasi_preopentype_t; typedef struct __wasi_dirent_t { __wasi_dircookie_t d_next; __wasi_inode_t d_ino; uint32_t d_namlen; __wasi_filetype_t d_type; } __wasi_dirent_t; _Static_assert(__builtin_offsetof(__wasi_dirent_t, d_next) == 0, "non-wasi data layout"); _Static_assert(__builtin_offsetof(__wasi_dirent_t, d_ino) == 8, "non-wasi data layout"); _Static_assert(__builtin_offsetof(__wasi_dirent_t, d_namlen) == 16, "non-wasi data layout"); _Static_assert(__builtin_offsetof(__wasi_dirent_t, d_type) == 20, "non-wasi data layout"); _Static_assert(sizeof(__wasi_dirent_t) == 24, "non-wasi data layout"); _Static_assert(_Alignof(__wasi_dirent_t) == 8, "non-wasi data layout"); typedef struct __wasi_event_t { __wasi_userdata_t userdata; __wasi_errno_t error; __wasi_eventtype_t type; union __wasi_event_u { struct __wasi_event_u_fd_readwrite_t { __wasi_filesize_t nbytes; __wasi_eventrwflags_t flags; } fd_readwrite; } u; } __wasi_event_t; _Static_assert(__builtin_offsetof(__wasi_event_t, userdata) == 0, "non-wasi data layout"); _Static_assert(__builtin_offsetof(__wasi_event_t, error) == 8, "non-wasi data layout"); _Static_assert(__builtin_offsetof(__wasi_event_t, type) == 10, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_event_t, u.fd_readwrite.nbytes) == 16, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_event_t, u.fd_readwrite.flags) == 24, "non-wasi data layout"); _Static_assert(sizeof(__wasi_event_t) == 32, "non-wasi data layout"); _Static_assert(_Alignof(__wasi_event_t) == 8, "non-wasi data layout"); typedef struct __wasi_prestat_t { __wasi_preopentype_t pr_type; union __wasi_prestat_u { struct __wasi_prestat_u_dir_t { size_t pr_name_len; } dir; } u; } __wasi_prestat_t; _Static_assert(__builtin_offsetof(__wasi_prestat_t, pr_type) == 0, "non-wasi data layout"); _Static_assert(sizeof(void *) != 4 || __builtin_offsetof(__wasi_prestat_t, u.dir.pr_name_len) == 4, "non-wasi data layout"); _Static_assert(sizeof(void *) != 8 || __builtin_offsetof(__wasi_prestat_t, u.dir.pr_name_len) == 8, "non-wasi data layout"); _Static_assert(sizeof(void *) != 4 || sizeof(__wasi_prestat_t) == 8, "non-wasi data layout"); _Static_assert(sizeof(void *) != 8 || sizeof(__wasi_prestat_t) == 16, "non-wasi data layout"); _Static_assert(sizeof(void *) != 4 || _Alignof(__wasi_prestat_t) == 4, "non-wasi data layout"); _Static_assert(sizeof(void *) != 8 || _Alignof(__wasi_prestat_t) == 8, "non-wasi data layout"); typedef struct __wasi_fdstat_t { __wasi_filetype_t fs_filetype; __wasi_fdflags_t fs_flags; __wasi_rights_t fs_rights_base; __wasi_rights_t fs_rights_inheriting; } __wasi_fdstat_t; _Static_assert( __builtin_offsetof(__wasi_fdstat_t, fs_filetype) == 0, "non-wasi data layout"); _Static_assert(__builtin_offsetof(__wasi_fdstat_t, fs_flags) == 2, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_fdstat_t, fs_rights_base) == 8, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_fdstat_t, fs_rights_inheriting) == 16, "non-wasi data layout"); _Static_assert(sizeof(__wasi_fdstat_t) == 24, "non-wasi data layout"); _Static_assert(_Alignof(__wasi_fdstat_t) == 8, "non-wasi data layout"); typedef struct __wasi_filestat_t { __wasi_device_t st_dev; __wasi_inode_t st_ino; __wasi_filetype_t st_filetype; __wasi_linkcount_t st_nlink; __wasi_filesize_t st_size; __wasi_timestamp_t st_atim; __wasi_timestamp_t st_mtim; __wasi_timestamp_t st_ctim; } __wasi_filestat_t; _Static_assert(__builtin_offsetof(__wasi_filestat_t, st_dev) == 0, "non-wasi data layout"); _Static_assert(__builtin_offsetof(__wasi_filestat_t, st_ino) == 8, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_filestat_t, st_filetype) == 16, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_filestat_t, st_nlink) == 20, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_filestat_t, st_size) == 24, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_filestat_t, st_atim) == 32, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_filestat_t, st_mtim) == 40, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_filestat_t, st_ctim) == 48, "non-wasi data layout"); _Static_assert(sizeof(__wasi_filestat_t) == 56, "non-wasi data layout"); _Static_assert(_Alignof(__wasi_filestat_t) == 8, "non-wasi data layout"); typedef struct __wasi_ciovec_t { const void *buf; size_t buf_len; } __wasi_ciovec_t; _Static_assert(__builtin_offsetof(__wasi_ciovec_t, buf) == 0, "non-wasi data layout"); _Static_assert(sizeof(void *) != 4 || __builtin_offsetof(__wasi_ciovec_t, buf_len) == 4, "non-wasi data layout"); _Static_assert(sizeof(void *) != 8 || __builtin_offsetof(__wasi_ciovec_t, buf_len) == 8, "non-wasi data layout"); _Static_assert(sizeof(void *) != 4 || sizeof(__wasi_ciovec_t) == 8, "non-wasi data layout"); _Static_assert(sizeof(void *) != 8 || sizeof(__wasi_ciovec_t) == 16, "non-wasi data layout"); _Static_assert(sizeof(void *) != 4 || _Alignof(__wasi_ciovec_t) == 4, "non-wasi data layout"); _Static_assert(sizeof(void *) != 8 || _Alignof(__wasi_ciovec_t) == 8, "non-wasi data layout"); typedef struct __wasi_iovec_t { void *buf; size_t buf_len; } __wasi_iovec_t; _Static_assert(__builtin_offsetof(__wasi_iovec_t, buf) == 0, "non-wasi data layout"); _Static_assert(sizeof(void *) != 4 || __builtin_offsetof(__wasi_iovec_t, buf_len) == 4, "non-wasi data layout"); _Static_assert(sizeof(void *) != 8 || __builtin_offsetof(__wasi_iovec_t, buf_len) == 8, "non-wasi data layout"); _Static_assert(sizeof(void *) != 4 || sizeof(__wasi_iovec_t) == 8, "non-wasi data layout"); _Static_assert(sizeof(void *) != 8 || sizeof(__wasi_iovec_t) == 16, "non-wasi data layout"); _Static_assert(sizeof(void *) != 4 || _Alignof(__wasi_iovec_t) == 4, "non-wasi data layout"); _Static_assert(sizeof(void *) != 8 || _Alignof(__wasi_iovec_t) == 8, "non-wasi data layout"); typedef struct __wasi_subscription_t { __wasi_userdata_t userdata; __wasi_eventtype_t type; union __wasi_subscription_u { struct __wasi_subscription_u_clock_t { __wasi_userdata_t identifier; __wasi_clockid_t clock_id; __wasi_timestamp_t timeout; __wasi_timestamp_t precision; __wasi_subclockflags_t flags; } clock; struct __wasi_subscription_u_fd_readwrite_t { __wasi_fd_t fd; } fd_readwrite; } u; } __wasi_subscription_t; _Static_assert( __builtin_offsetof(__wasi_subscription_t, userdata) == 0, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_subscription_t, type) == 8, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_subscription_t, u.clock.identifier) == 16, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_subscription_t, u.clock.clock_id) == 24, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_subscription_t, u.clock.timeout) == 32, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_subscription_t, u.clock.precision) == 40, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_subscription_t, u.clock.flags) == 48, "non-wasi data layout"); _Static_assert( __builtin_offsetof(__wasi_subscription_t, u.fd_readwrite.fd) == 16, "non-wasi data layout"); _Static_assert(sizeof(__wasi_subscription_t) == 56, "non-wasi data layout"); _Static_assert(_Alignof(__wasi_subscription_t) == 8, "non-wasi data layout"); __wasi_errno_t __wasi_args_get( char **argv, char *argv_buf ) __attribute__((__import_module__("wasi_unstable"), __import_name__("args_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_args_sizes_get( size_t *argc, size_t *argv_buf_size ) __attribute__((__import_module__("wasi_unstable"), __import_name__("args_sizes_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_clock_res_get( __wasi_clockid_t clock_id, __wasi_timestamp_t *resolution ) __attribute__((__import_module__("wasi_unstable"), __import_name__("clock_res_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_clock_time_get( __wasi_clockid_t clock_id, __wasi_timestamp_t precision, __wasi_timestamp_t *time ) __attribute__((__import_module__("wasi_unstable"), __import_name__("clock_time_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_environ_get( char **environ, char *environ_buf ) __attribute__((__import_module__("wasi_unstable"), __import_name__("environ_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_environ_sizes_get( size_t *environ_count, size_t *environ_buf_size ) __attribute__((__import_module__("wasi_unstable"), __import_name__("environ_sizes_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_prestat_get( __wasi_fd_t fd, __wasi_prestat_t *buf ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_prestat_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_prestat_dir_name( __wasi_fd_t fd, char *path, size_t path_len ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_prestat_dir_name"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_close( __wasi_fd_t fd ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_close"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_datasync( __wasi_fd_t fd ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_datasync"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_pread( __wasi_fd_t fd, const __wasi_iovec_t *iovs, size_t iovs_len, __wasi_filesize_t offset, size_t *nread ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_pread"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_pwrite( __wasi_fd_t fd, const __wasi_ciovec_t *iovs, size_t iovs_len, __wasi_filesize_t offset, size_t *nwritten ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_pwrite"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_read( __wasi_fd_t fd, const __wasi_iovec_t *iovs, size_t iovs_len, size_t *nread ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_read"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_renumber( __wasi_fd_t from, __wasi_fd_t to ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_renumber"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_seek( __wasi_fd_t fd, __wasi_filedelta_t offset, __wasi_whence_t whence, __wasi_filesize_t *newoffset ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_seek"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_tell( __wasi_fd_t fd, __wasi_filesize_t *newoffset ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_tell"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_fdstat_get( __wasi_fd_t fd, __wasi_fdstat_t *buf ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_fdstat_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_fdstat_set_flags( __wasi_fd_t fd, __wasi_fdflags_t flags ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_fdstat_set_flags"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_fdstat_set_rights( __wasi_fd_t fd, __wasi_rights_t fs_rights_base, __wasi_rights_t fs_rights_inheriting ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_fdstat_set_rights"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_sync( __wasi_fd_t fd ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_sync"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_write( __wasi_fd_t fd, const __wasi_ciovec_t *iovs, size_t iovs_len, size_t *nwritten ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_write"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_advise( __wasi_fd_t fd, __wasi_filesize_t offset, __wasi_filesize_t len, __wasi_advice_t advice ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_advise"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_allocate( __wasi_fd_t fd, __wasi_filesize_t offset, __wasi_filesize_t len ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_allocate"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_create_directory( __wasi_fd_t fd, const char *path, size_t path_len ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_create_directory"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_link( __wasi_fd_t old_fd, __wasi_lookupflags_t old_flags, const char *old_path, size_t old_path_len, __wasi_fd_t new_fd, const char *new_path, size_t new_path_len ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_link"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_open( __wasi_fd_t dirfd, __wasi_lookupflags_t dirflags, const char *path, size_t path_len, __wasi_oflags_t oflags, __wasi_rights_t fs_rights_base, __wasi_rights_t fs_rights_inheriting, __wasi_fdflags_t fs_flags, __wasi_fd_t *fd ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_open"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_readdir( __wasi_fd_t fd, void *buf, size_t buf_len, __wasi_dircookie_t cookie, size_t *bufused ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_readdir"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_readlink( __wasi_fd_t fd, const char *path, size_t path_len, char *buf, size_t buf_len, size_t *bufused ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_readlink"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_rename( __wasi_fd_t old_fd, const char *old_path, size_t old_path_len, __wasi_fd_t new_fd, const char *new_path, size_t new_path_len ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_rename"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_filestat_get( __wasi_fd_t fd, __wasi_filestat_t *buf ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_filestat_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_filestat_set_times( __wasi_fd_t fd, __wasi_timestamp_t st_atim, __wasi_timestamp_t st_mtim, __wasi_fstflags_t fstflags ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_filestat_set_times"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_fd_filestat_set_size( __wasi_fd_t fd, __wasi_filesize_t st_size ) __attribute__((__import_module__("wasi_unstable"), __import_name__("fd_filestat_set_size"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_filestat_get( __wasi_fd_t fd, __wasi_lookupflags_t flags, const char *path, size_t path_len, __wasi_filestat_t *buf ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_filestat_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_filestat_set_times( __wasi_fd_t fd, __wasi_lookupflags_t flags, const char *path, size_t path_len, __wasi_timestamp_t st_atim, __wasi_timestamp_t st_mtim, __wasi_fstflags_t fstflags ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_filestat_set_times"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_symlink( const char *old_path, size_t old_path_len, __wasi_fd_t fd, const char *new_path, size_t new_path_len ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_symlink"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_unlink_file( __wasi_fd_t fd, const char *path, size_t path_len ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_unlink_file"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_path_remove_directory( __wasi_fd_t fd, const char *path, size_t path_len ) __attribute__((__import_module__("wasi_unstable"), __import_name__("path_remove_directory"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_poll_oneoff( const __wasi_subscription_t *in, __wasi_event_t *out, size_t nsubscriptions, size_t *nevents ) __attribute__((__import_module__("wasi_unstable"), __import_name__("poll_oneoff"))) __attribute__((__warn_unused_result__)); _Noreturn void __wasi_proc_exit( __wasi_exitcode_t rval ) __attribute__((__import_module__("wasi_unstable"), __import_name__("proc_exit"))); __wasi_errno_t __wasi_proc_raise( __wasi_signal_t sig ) __attribute__((__import_module__("wasi_unstable"), __import_name__("proc_raise"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_random_get( void *buf, size_t buf_len ) __attribute__((__import_module__("wasi_unstable"), __import_name__("random_get"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_sock_recv( __wasi_fd_t sock, const __wasi_iovec_t *ri_data, size_t ri_data_len, __wasi_riflags_t ri_flags, size_t *ro_datalen, __wasi_roflags_t *ro_flags ) __attribute__((__import_module__("wasi_unstable"), __import_name__("sock_recv"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_sock_send( __wasi_fd_t sock, const __wasi_ciovec_t *si_data, size_t si_data_len, __wasi_siflags_t si_flags, size_t *so_datalen ) __attribute__((__import_module__("wasi_unstable"), __import_name__("sock_send"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_sock_shutdown( __wasi_fd_t sock, __wasi_sdflags_t how ) __attribute__((__import_module__("wasi_unstable"), __import_name__("sock_shutdown"))) __attribute__((__warn_unused_result__)); __wasi_errno_t __wasi_sched_yield(void) __attribute__((__import_module__("wasi_unstable"), __import_name__("sched_yield"))) __attribute__((__warn_unused_result__)); int close(int fd); int faccessat(int, const char *, int, int); int fstatat(int, const char *restrict, struct stat *restrict, int); int renameat(int, const char *, int, const char *); int openat(int, const char *, int, ...); void *sbrk(intptr_t increment); typedef unsigned long size_t; typedef long ssize_t; typedef long long off_t; typedef int pid_t; typedef unsigned uid_t; typedef unsigned gid_t; typedef unsigned useconds_t; int close(int); int posix_close(int, int); off_t lseek(int, off_t, int); off_t __wasilibc_tell(int); int fsync(int); int fdatasync(int); ssize_t read(int, void *, size_t); ssize_t write(int, const void *, size_t); ssize_t pread(int, void *, size_t, off_t); ssize_t pwrite(int, const void *, size_t, off_t); int link(const char *, const char *); int linkat(int, const char *, int, const char *, int); int symlink(const char *, const char *); int symlinkat(const char *, int, const char *); ssize_t readlink(const char *restrict, char *restrict, size_t); ssize_t readlinkat(int, const char *restrict, char *restrict, size_t); int unlink(const char *); int unlinkat(int, const char *, int); int rmdir(const char *); int truncate(const char *, off_t); int ftruncate(int, off_t); int access(const char *, int); int faccessat(int, const char *, int, int); unsigned sleep(unsigned); int pause(void); _Noreturn void _exit(int); int isatty(int); char *getlogin(void); int getlogin_r(char *, size_t); int gethostname(char *, size_t); char *ctermid(char *); int getopt(int, char ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2008 GNUmakefile INSTALL Makefile.am Makefile.in NEWS README THANKS TODO aclocal.m4 bootstrap build-aux cfg.mk confdefs.h config.log configure configure.ac conftest.c conftest.out conftest.wasm dist-check.mk doc exgettext gnulib-tests lib m4 maint.mk man po src tests const [], const char *); extern char *optarg; extern int optind, opterr, optopt; long pathconf(const char *, int); long fpathconf(int, int); long sysconf(int); size_t confstr(int, char *, size_t); long gethostid(void); char *crypt(const char *, const char *); void encrypt(char *, int); void swab(const void *restrict, void *restrict, ssize_t); int usleep(unsigned); unsigned ualarm(unsigned, unsigned); void *sbrk(intptr_t); int getentropy(void *, size_t); typedef const struct __clockid *clockid_t; typedef long long clock_t; typedef unsigned char pthread_attr_t; typedef unsigned char pthread_mutex_t; typedef unsigned char pthread_cond_t; typedef unsigned char pthread_rwlock_t; typedef unsigned char pthread_barrier_t; typedef long long register_t; typedef unsigned long long u_int64_t; typedef unsigned mode_t; typedef unsigned long long nlink_t; typedef unsigned long long ino_t; typedef unsigned long long dev_t; typedef long blksize_t; typedef long long blkcnt_t; typedef unsigned long long fsblkcnt_t; typedef unsigned long long fsfilcnt_t; typedef void ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2008 GNUmakefile INSTALL Makefile.am Makefile.in NEWS README THANKS TODO aclocal.m4 bootstrap build-aux cfg.mk confdefs.h config.log configure configure.ac conftest.c conftest.out conftest.wasm dist-check.mk doc exgettext gnulib-tests lib m4 maint.mk man po src tests timer_t; typedef unsigned id_t; typedef int key_t; typedef struct __pthread ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2008 GNUmakefile INSTALL Makefile.am Makefile.in NEWS README THANKS TODO aclocal.m4 bootstrap build-aux cfg.mk confdefs.h config.log configure configure.ac conftest.c conftest.out conftest.wasm dist-check.mk doc exgettext gnulib-tests lib m4 maint.mk man po src tests pthread_t; typedef int pthread_once_t; typedef unsigned pthread_key_t; typedef int pthread_spinlock_t; typedef struct { unsigned __attr; } pthread_mutexattr_t; typedef struct { unsigned __attr; } pthread_condattr_t; typedef struct { unsigned __attr; } pthread_barrierattr_t; typedef struct { unsigned __attr[2]; } pthread_rwlockattr_t; typedef unsigned char u_int8_t; typedef unsigned short u_int16_t; typedef unsigned u_int32_t; typedef char *caddr_t; typedef unsigned char u_char; typedef unsigned short u_short, ushort; typedef unsigned u_int, uint; typedef unsigned long u_long, ulong; typedef long long quad_t; typedef unsigned long long u_quad_t; static inline uint16_t __bswap16(uint16_t __x) { return __x<<8 | __x>>8; } static inline uint32_t __bswap32(uint32_t __x) { return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24; } static inline uint64_t __bswap64(uint64_t __x) { return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32); } typedef unsigned char sigset_t; typedef struct { size_t __nfds; int __fds[1024]; } fd_set; static inline void FD_CLR(int __fd, fd_set *__set) { size_t __n = __set->__nfds; for (int *__p = __set->__fds, *__e = __p + __n; __p < __e; ++__p) { if (*__p == __fd) { *__p = __e[-1]; __set->__nfds = __n - 1; return; } } } static inline _Bool FD_ISSET(int __fd, const fd_set *__set) { size_t __n = __set->__nfds; for (const int *__p = __set->__fds, *__e = __p + __n; __p < __e; ++__p) { if (*__p == __fd) { return 1; } } return 0; } static inline void FD_SET(int __fd, fd_set *__set) { size_t __n = __set->__nfds; for (const int *__p = __set->__fds, *__e = __p + __n; __p < __e; ++__p) { if (*__p == __fd) { return; } } __set->__nfds = __n + 1; __set->__fds[__n] = __fd; } static inline void FD_ZERO(fd_set *__set) { __set->__nfds = 0; } static inline void FD_COPY(const fd_set *restrict __from, fd_set *restrict __to) { size_t __n = __from->__nfds; __to->__nfds = __n; __builtin_memcpy(__to->__fds, __from->__fds, __n ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2008 GNUmakefile INSTALL Makefile.am Makefile.in NEWS README THANKS TODO aclocal.m4 bootstrap build-aux cfg.mk confdefs.h config.log configure configure.ac conftest.c conftest.out conftest.wasm dist-check.mk doc exgettext gnulib-tests lib m4 maint.mk man po src tests sizeof(int)); } int select (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, struct timeval *restrict); int pselect (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, const struct timespec *restrict, const sigset_t *restrict); void *malloc(size_t __size) __attribute__((__malloc__, __warn_unused_result__)); void free(void *__ptr); void *calloc(size_t __nmemb, size_t __size) __attribute__((__malloc__, __warn_unused_result__)); void *realloc(void *__ptr, size_t __size) __attribute__((__warn_unused_result__)); void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) __attribute__((__warn_unused_result__)); void abort(void) __attribute__((__noreturn__)); void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); void _Exit(int) __attribute__((__noreturn__)); int atoi (const char *); long atol (const char *); long long atoll (const char *); double atof (const char *); float strtof (const char *restrict, char **restrict); double strtod (const char *restrict, char **restrict); long double strtold (const char *restrict, char **restrict); long strtol (const char *restrict, char **restrict, int); unsigned long strtoul (const char *restrict, char **restrict, int); long long strtoll (const char *restrict, char **restrict, int); unsigned long long strtoull (const char *restrict, char **restrict, int); int rand (void); void srand (unsigned); void *aligned_alloc(size_t, size_t); _Noreturn void abort (void); int atexit (void (*) (void)); _Noreturn void exit (int); _Noreturn void _Exit (int); int at_quick_exit (void (*) (void)); _Noreturn void quick_exit (int); char *getenv (const char *); int system (const char *); void *bsearch (const void *, const void *, size_t, size_t, int (*)(const void *, const void *)); void qsort (void *, size_t, size_t, int (*)(const void *, const void *)); int abs (int); long labs (long); long long llabs (long long); typedef struct { int quot, rem; } div_t; typedef struct { long quot, rem; } ldiv_t; typedef struct { long long quot, rem; } lldiv_t; div_t div (int, int); ldiv_t ldiv (long, long); lldiv_t lldiv (long long, long long); int mblen (const char *, size_t); int mbtowc (wchar_t *restrict, const char *restrict, size_t); int wctomb (char *, wchar_t); size_t mbstowcs (wchar_t *restrict, const char *restrict, size_t); size_t wcstombs (char *restrict, const wchar_t *restrict, size_t); size_t __ctype_get_mb_cur_max(void); int posix_memalign (void **, size_t, size_t); int setenv (const char *, const char *, int); int unsetenv (const char *); int getsubopt (char **, char *const *, char **); int rand_r (unsigned *); long int random (void); void srandom (unsigned int); char *initstate (unsigned int, char *, size_t); char *setstate (char *); int putenv (char *); char *l64a (long); long a64l (const char *); void setkey (const char *); double drand48 (void); double erand48 (unsigned short [3]); long int lrand48 (void); long int nrand48 (unsigned short [3]); long mrand48 (void); long jrand48 (unsigned short [3]); void srand48 (long); unsigned short *seed48 (unsigned short [3]); void lcong48 (unsigned short [7]); void *alloca(size_t); int clearenv(void); uint32_t arc4random(void); void arc4random_buf(void *, size_t); uint32_t arc4random_uniform(uint32_t); typedef struct __locale_struct ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2008 GNUmakefile INSTALL Makefile.am Makefile.in NEWS README THANKS TODO aclocal.m4 bootstrap build-aux cfg.mk confdefs.h config.log configure configure.ac conftest.c conftest.out conftest.wasm dist-check.mk doc exgettext gnulib-tests lib m4 maint.mk man po src tests locale_t; struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; int tm_gmtoff; const char *tm_zone; int __tm_nsec; }; extern const struct __clockid _CLOCK_MONOTONIC; extern const struct __clockid _CLOCK_PROCESS_CPUTIME_ID; extern const struct __clockid _CLOCK_REALTIME; extern const struct __clockid _CLOCK_THREAD_CPUTIME_ID; clock_t clock (void); time_t time (time_t *); double difftime (time_t, time_t); time_t mktime (struct tm *); size_t strftime (char *restrict, size_t, const char *restrict, const struct tm *restrict); struct tm *gmtime (const time_t *); struct tm *localtime (const time_t *); char *asctime (const struct tm *); char *ctime (const time_t *); int timespec_get(struct timespec *, int); size_t strftime_l (char ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2008 GNUmakefile INSTALL Makefile.am Makefile.in NEWS README THANKS TODO aclocal.m4 bootstrap build-aux cfg.mk confdefs.h config.log configure configure.ac conftest.c conftest.out conftest.wasm dist-check.mk doc exgettext gnulib-tests lib m4 maint.mk man po src tests restrict, size_t, const char ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2008 GNUmakefile INSTALL Makefile.am Makefile.in NEWS README THANKS TODO aclocal.m4 bootstrap build-aux cfg.mk confdefs.h config.log configure configure.ac conftest.c conftest.out conftest.wasm dist-check.mk doc exgettext gnulib-tests lib m4 maint.mk man po src tests restrict, const struct tm ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2008 GNUmakefile INSTALL Makefile.am Makefile.in NEWS README THANKS TODO aclocal.m4 bootstrap build-aux cfg.mk confdefs.h config.log configure configure.ac conftest.c conftest.out conftest.wasm dist-check.mk doc exgettext gnulib-tests lib m4 maint.mk man po src tests restrict, locale_t); struct tm *gmtime_r (const time_t *restrict, struct tm *restrict); struct tm *localtime_r (const time_t *restrict, struct tm *restrict); char *asctime_r (const struct tm *restrict, char *restrict); char *ctime_r (const time_t *, char *); struct itimerspec { struct timespec it_interval; struct timespec it_value; }; int nanosleep (const struct timespec *, struct timespec *); int clock_getres (clockid_t, struct timespec *); int clock_gettime (clockid_t, struct timespec *); int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *); char *strptime (const char *restrict, const char *restrict, struct tm *restrict); extern int getdate_err; struct tm *getdate (const char *); time_t timegm(struct tm *); typedef unsigned long long dev_t; typedef unsigned long long ino_t; typedef unsigned long long nlink_t; typedef unsigned mode_t; typedef unsigned uid_t; typedef unsigned gid_t; typedef long long off_t; typedef long blksize_t; typedef long long blkcnt_t; struct stat { dev_t st_dev; ino_t st_ino; nlink_t st_nlink; mode_t st_mode; uid_t st_uid; gid_t st_gid; unsigned int __pad0; dev_t st_rdev; off_t st_size; blksize_t st_blksize; blkcnt_t st_blocks; struct timespec st_atim; struct timespec st_mtim; struct timespec st_ctim; long long __reserved[3]; }; int stat(const char *restrict, struct stat *restrict); int fstat(int, struct stat *); int lstat(const char *restrict, struct stat *restrict); int fstatat(int, const char *restrict, struct stat *restrict, int); int mkdir(const char *, mode_t); int mkdirat(int, const char *, mode_t); int futimens(int, const struct timespec [2]); int utimensat(int, const char *, const struct timespec [2], int); struct utimbuf { time_t actime; time_t modtime; }; int utime (const char *, const struct utimbuf *); extern _Thread_local int errno; typedef __builtin_va_list va_list; typedef __builtin_va_list __gnuc_va_list; typedef __builtin_va_list __isoc_va_list; typedef struct _IO_FILE FILE; typedef union _G_fpos64_t { char __opaque[16]; long long __lldata; double __align; } fpos_t; extern FILE *const stdin; extern FILE *const stdout; extern FILE *const stderr; FILE *fopen(const char *restrict, const char *restrict); FILE *freopen(const char *restrict, const char *restrict, FILE *restrict); int fclose(FILE *); int remove(const char *); int rename(const char *, const char *); int feof(FILE *); int ferror(FILE *); int fflush(FILE *); void clearerr(FILE *); int fseek(FILE *, long, int); long ftell(FILE *); void rewind(FILE *); int fgetpos(FILE *restrict, fpos_t *restrict); int fsetpos(FILE *, const fpos_t *); size_t fread(void *restrict, size_t, size_t, FILE *restrict); size_t fwrite(const void *restrict, size_t, size_t, FILE *restrict); int fgetc(FILE *); int getc(FILE *); int getchar(void); int ungetc(int, FILE *); int fputc(int, FILE *); int putc(int, FILE *); int putchar(int); char *fgets(char *restrict, int, FILE *restrict); int fputs(const char *restrict, FILE *restrict); int puts(const char *); int printf(const char *restrict, ...); int fprintf(FILE *restrict, const char *restrict, ...); int sprintf(char *restrict, const char *restrict, ...); int snprintf(char *restrict, size_t, const char *restrict, ...); int vprintf(const char *restrict, __isoc_va_list); int vfprintf(FILE *restrict, const char *restrict, __isoc_va_list); int vsprintf(char *restrict, const char *restrict, __isoc_va_list); int vsnprintf(char *restrict, size_t, const char *restrict, __isoc_va_list); int scanf(const char *restrict, ...); int fscanf(FILE *restrict, const char *restrict, ...); int sscanf(const char *restrict, const char *restrict, ...); int vscanf(const char *restrict, __isoc_va_list); int vfscanf(FILE *restrict, const char *restrict, __isoc_va_list); int vsscanf(const char *restrict, const char *restrict, __isoc_va_list); void perror(const char *); int setvbuf(FILE *restrict, char *restrict, int, size_t); void setbuf(FILE *restrict, char *restrict); char *tmpnam(char *) __attribute__((__deprecated__("tmpnam is not defined on WASI"))); FILE *tmpfile(void) __attribute__((__deprecated__("tmpfile is not defined on WASI"))); FILE *fmemopen(void *restrict, size_t, const char *restrict); FILE *open_memstream(char **, size_t *); FILE *fdopen(int, const char *); int fileno(FILE *); int fseeko(FILE *, off_t, int); off_t ftello(FILE *); int dprintf(int, const char *restrict, ...); int vdprintf(int, const char *restrict, __isoc_va_list); int getc_unlocked(FILE *); int getchar_unlocked(void); int putc_unlocked(int, FILE *); int putchar_unlocked(int); ssize_t getdelim(char **restrict, size_t *restrict, int, FILE *restrict); ssize_t getline(char **restrict, size_t *restrict, FILE *restrict); int renameat(int, const char *, int, const char *); char *ctermid(char *); char *cuserid(char *); void setlinebuf(FILE *); void setbuffer(FILE *, char *, size_t); int fgetc_unlocked(FILE *); int fputc_unlocked(int, FILE *); int fflush_unlocked(FILE *); size_t fread_unlocked(void *, size_t, size_t, FILE *); size_t fwrite_unlocked(const void *, size_t, size_t, FILE *); void clearerr_unlocked(FILE *); int feof_unlocked(FILE *); int ferror_unlocked(FILE *); int fileno_unlocked(FILE *); int getw(FILE *); int putw(int, FILE *); char *fgetln(FILE *, size_t *); int asprintf(char **, const char *, ...); int vasprintf(char **, const char *, __isoc_va_list); char *realpath(const char *path, char *resolved_path); uid_t getuid(void); int getpagesize(void); __attribute__((weak)) uid_t getuid(void) { return 0; } __attribute__((weak)) char *realpath(const char *path, char *resolved_path) { return 0; } __attribute__((weak)) ssize_t getrandom(void ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2008 GNUmakefile INSTALL Makefile.am Makefile.in NEWS README THANKS TODO aclocal.m4 bootstrap build-aux cfg.mk confdefs.h config.log configure configure.ac conftest.c conftest.out conftest.wasm dist-check.mk doc exgettext gnulib-tests lib m4 maint.mk man po src tests buffer, size_t len, unsigned flags) { return -1; } __attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";} __attribute__((weak)) int clock_settime(clockid_t clk_id, const struct timespec *tp) { return 0;} __attribute__((weak)) int chdir(const char *path) { return 0; } __attribute__((weak)) int grantpt(int fd); struct flock { short l_type; short l_whence; off_t l_start; off_t l_len; pid_t l_pid; }; int creat(const char *, mode_t); int fcntl(int, int, ...); int open(const char *, int, ...); int openat(int, const char *, int, ...); int posix_fadvise(int, off_t, off_t, int); int posix_fallocate(int, off_t, off_t); __attribute__((weak)) int dup(int fd) { return -1; } __attribute__((weak)) int dup2(int fd1, int fd2) { return -1; } __attribute__((weak)) int raise(int sig); __attribute__((weak)) mode_t umask(mode_t mask); __attribute__((weak)) int utime(const char *filename, const struct utimbuf *times); __attribute__((weak)) int getpagesize(void) { return (0x10000); } __attribute__((weak)) int mprotect(void *addr, size_t len, int prot) { return 0; } __attribute__((weak)) int sysctlbyname(const char *name, void *oldp, size_t *oldlenp, const void *newp, size_t newlen) { return 0; } __attribute__((weak)) pid_t getpid(void) { return 0; } __attribute__((weak)) uid_t geteuid(void) { return 0; } __attribute__((weak)) gid_t getgid(void) { return 0; } __attribute__((weak)) gid_t getegid(void) { return 0; } __attribute__((weak)) int chmod(const char *pathname, mode_t mode) { return 0; } __attribute__((weak)) int signal(int signum, int handler) { return 0; } __attribute__((weak)) int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact) { return 0; } __attribute__((weak)) void *dlopen(const char *filename, int flag) { printf("[WASIENV] dlopen\n");fflush((stdout)); } __attribute__((weak)) char *dlerror(void) { printf("[WASIENV] dlerror\n");fflush((stdout)); return ""; } __attribute__((weak)) void *dlsym(void *handle, const char *symbol) { printf("[WASIENV] dlsym\n");fflush((stdout)); } __attribute__((weak)) int dlclose(void *handle) { printf("[WASIENV] dlclose\n");fflush((stdout)); } -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits
---
> GL_CFLAG_GNULIB_WARNINGS =  -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits
788c788
< HAVE_ATOLL = 0
---
> HAVE_ATOLL = 1
790c790
< HAVE_C99_STDINT_H = 0
---
> HAVE_C99_STDINT_H = 1
795,797c795,797
< HAVE_DECL_ECVT = 0
< HAVE_DECL_ENVIRON = 0
< HAVE_DECL_EXECVPE = 0
---
> HAVE_DECL_ECVT = 1
> HAVE_DECL_ENVIRON = 1
> HAVE_DECL_EXECVPE = 1
800c800
< HAVE_DECL_FCVT = 0
---
> HAVE_DECL_FCVT = 1
805c805
< HAVE_DECL_GCVT = 0
---
> HAVE_DECL_GCVT = 1
824c824
< HAVE_DECL_PROGRAM_INVOCATION_NAME = 0
---
> HAVE_DECL_PROGRAM_INVOCATION_NAME = 1
859c859
< HAVE_FCNTL = 0
---
> HAVE_FCNTL = 1
872c872
< HAVE_FTRUNCATE = 0
---
> HAVE_FTRUNCATE = 1
908c908
< HAVE_LSTAT = 0
---
> HAVE_LSTAT = 1
916c916
< HAVE_MBTOWC = 0
---
> HAVE_MBTOWC = 1
927c927
< HAVE_MKSTEMP = 0
---
> HAVE_MKSTEMP = 1
930c930
< HAVE_NANOSLEEP = 0
---
> HAVE_NANOSLEEP = 1
937c937
< HAVE_PIPE = 0
---
> HAVE_PIPE = 1
942c942
< HAVE_POSIX_SIGNALBLOCKING = 0
---
> HAVE_POSIX_SIGNALBLOCKING = 1
996c996
< HAVE_PTHREAD_SIGMASK = 0
---
> HAVE_PTHREAD_SIGMASK = 1
1008c1008
< HAVE_RAISE = 0
---
> HAVE_RAISE = 1
1013c1013
< HAVE_READLINK = 0
---
> HAVE_READLINK = 1
1023c1023
< HAVE_SETENV = 0
---
> HAVE_SETENV = 1
1029c1029
< HAVE_SIGHANDLER_T = 0
---
> HAVE_SIGHANDLER_T = 1
1031,1033c1031,1033
< HAVE_SIGNED_SIG_ATOMIC_T = 1
< HAVE_SIGNED_WCHAR_T = 1
< HAVE_SIGNED_WINT_T = 1
---
> HAVE_SIGNED_SIG_ATOMIC_T =
> HAVE_SIGNED_WCHAR_T =
> HAVE_SIGNED_WINT_T =
1045c1045
< HAVE_STRPTIME = 0
---
> HAVE_STRPTIME = 1
1050c1050
< HAVE_STRTOLL = 0
---
> HAVE_STRTOLL = 1
1054c1054
< HAVE_STRUCT_SCHED_PARAM = 0
---
> HAVE_STRUCT_SCHED_PARAM = 1
1060c1060
< HAVE_SYMLINK = 0
---
> HAVE_SYMLINK = 1
1074c1074
< HAVE_TIMEGM = 0
---
> HAVE_TIMEGM = 1
1087c1087
< HAVE_VISIBILITY = 1
---
> HAVE_VISIBILITY =
1129c1129
< HAVE_XLOCALE_H = 0
---
> HAVE_XLOCALE_H = 1
1131c1131
< HELP2MAN = ${SHELL} '/root/wasi_example/diffutils-3.10/build-aux/missing' help2man
---
> HELP2MAN = ${SHELL} '/root/diffutils-3.10/build-aux/missing' help2man
1194c1194
< MAKEINFO = ${SHELL} '/root/wasi_example/diffutils-3.10/build-aux/missing' makeinfo
---
> MAKEINFO = ${SHELL} '/root/diffutils-3.10/build-aux/missing' makeinfo
1295,1296c1295,1296
< PTRDIFF_T_SUFFIX = l
< RANLIB = wasiranlib
---
> PTRDIFF_T_SUFFIX =
> RANLIB = /root/emsdk/upstream/emscripten/emranlib
1326,1327c1326,1327
< REPLACE_FCLOSE = 1
< REPLACE_FCNTL = 0
---
> REPLACE_FCLOSE = 0
> REPLACE_FCNTL = 1
1333c1333
< REPLACE_FOPEN = 1
---
> REPLACE_FOPEN = 0
1339c1339
< REPLACE_FREOPEN = 1
---
> REPLACE_FREOPEN = 0
1348c1348
< REPLACE_GETCWD = 1
---
> REPLACE_GETCWD = 0
1385c1385
< REPLACE_LOCALTIME_R = 1
---
> REPLACE_LOCALTIME_R = 0
1411c1411
< REPLACE_NANOSLEEP = GNULIB_PORTCHECK
---
> REPLACE_NANOSLEEP = 0
1428c1428
< REPLACE_PTHREAD_ATTR_INIT = 1
---
> REPLACE_PTHREAD_ATTR_INIT = 0
1438c1438
< REPLACE_PTHREAD_CREATE = 1
---
> REPLACE_PTHREAD_CREATE = 0
1472c1472
< REPLACE_PTHREAD_SIGMASK = 0
---
> REPLACE_PTHREAD_SIGMASK = 1
1504c1504
< REPLACE_SNPRINTF = 1
---
> REPLACE_SNPRINTF = 0
1506c1506
< REPLACE_STAT = 1
---
> REPLACE_STAT = 0
1528c1528
< REPLACE_STRTOLL = 0
---
> REPLACE_STRTOLL = 1
1537c1537
< REPLACE_TIMEGM = 0
---
> REPLACE_TIMEGM = 1
1579c1579
< SIZE_T_SUFFIX = ul
---
> SIZE_T_SUFFIX =
1611,1616c1611,1616
< abs_aux_dir = /root/wasi_example/diffutils-3.10/build-aux
< abs_builddir = /root/wasi_example/diffutils-3.10/src
< abs_srcdir = /root/wasi_example/diffutils-3.10/src
< abs_top_builddir = /root/wasi_example/diffutils-3.10
< abs_top_srcdir = /root/wasi_example/diffutils-3.10
< ac_ct_CC = wasicc
---
> abs_aux_dir = /root/diffutils-3.10/build-aux
> abs_builddir = /root/diffutils-3.10/src
> abs_srcdir = /root/diffutils-3.10/src
> abs_top_builddir = /root/diffutils-3.10
> abs_top_srcdir = /root/diffutils-3.10
> ac_ct_CC = /root/emsdk/upstream/emscripten/emcc
1625c1625
< build = x86_64-pc-linux-muslx32
---
> build = x86_64-pc-linux-gnu
1628c1628
< build_os = linux-muslx32
---
> build_os = linux-gnu
1639,1641c1639,1641
< gltests_LIBOBJDEPS =  ./$(DEPDIR)/asnprintf.Po ./$(DEPDIR)/printf-args.Po ./$(DEPDIR)/printf-parse.Po ./$(DEPDIR)/snprintf.Po ./$(DEPDIR)/vasnprintf.Po
< gltests_LIBOBJS =  asnprintf.o printf-args.o printf-parse.o snprintf.o vasnprintf.o
< gltests_LTLIBOBJS =  asnprintf.lo printf-args.lo printf-parse.lo snprintf.lo vasnprintf.lo
---
> gltests_LIBOBJDEPS =  ./$(DEPDIR)/asnprintf.Po ./$(DEPDIR)/printf-args.Po ./$(DEPDIR)/printf-parse.Po ./$(DEPDIR)/vasnprintf.Po
> gltests_LIBOBJS =  asnprintf.o printf-args.o printf-parse.o vasnprintf.o
> gltests_LTLIBOBJS =  asnprintf.lo printf-args.lo printf-parse.lo vasnprintf.lo
1643c1643
< host = x86_64-pc-linux-muslx32
---
> host = x86_64-pc-linux-gnu
1646c1646
< host_os = linux-muslx32
---
> host_os = linux-gnu
1651c1651
< install_sh = ${SHELL} /root/wasi_example/diffutils-3.10/build-aux/install-sh
---
> install_sh = ${SHELL} /root/diffutils-3.10/build-aux/install-sh

After some debugging, I found why there are so many strange options in GL_CFLAG_GNULIB_WARNINGS.
[root@localhost tmp]# cat conftest.c
      #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
      -Wno-cast-qual
      -Wno-conversion
      -Wno-float-equal
      -Wno-sign-compare
      -Wno-undef
      -Wno-unused-function
      -Wno-unused-parameter
      #endif
      #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
      -Wno-float-conversion
      #endif
      #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
      -Wimplicit-fallthrough
      #endif
      #if __GNUC__ >= 4 && __GNUC__ < 11 && !defined __clang__
      -Wno-missing-field-initializers
      #endif
      #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
      -Wno-pedantic
      #endif
      #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
      -Wno-sign-conversion
      -Wno-type-limits
      #endif
      #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
      -Wno-unsuffixed-float-constants
      #endif
[root@localhost tmp]# gcc -g -O2 -E conftest.c
# 0 "conftest.c"
# 1 "/tmp//"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "conftest.c"

      -Wno-cast-qual
      -Wno-conversion
      -Wno-float-equal
      -Wno-sign-compare
      -Wno-undef
      -Wno-unused-function
      -Wno-unused-parameter

      -Wno-float-conversion

      -Wimplicit-fallthrough

      -Wno-pedantic

      -Wno-sign-conversion
      -Wno-type-limits

      -Wno-unsuffixed-float-constants
[root@localhost tmp]# clang -g -O2 -E conftest.c
# 1 "conftest.c"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 370 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "conftest.c" 2

      -Wno-cast-qual
      -Wno-conversion
      -Wno-float-equal
      -Wno-sign-compare
      -Wno-undef
      -Wno-unused-function
      -Wno-unused-parameter

      -Wno-float-conversion

      -Wimplicit-fallthrough

      -Wno-pedantic

      -Wno-sign-conversion
      -Wno-type-limits
[root@localhost tmp]#
[root@localhost tmp]# wasicc -g -O2 -E conftest.c |more
In file included from <built-in>:1:
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:30:9: warning: 'ESHUTDOWN' macro redefined [-Wmacro-redefined]
#define ESHUTDOWN 0
        ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:28:9: note: previous definition is here
#define ESHUTDOWN 1
        ^
# 1 "conftest.c"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 311 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h" 1
# 1 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/u
nistd.h" 1 3

# 1 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/f
eatures.h" 1 3
# 9 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/u
nistd.h" 2 3
# 19 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/
unistd.h" 3
# 1 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/_
_header_unistd.h" 1 3
struct stat;

# 1 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/_
_seek.h" 1 3

# 1 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/w
asi/core.h" 1 3
# 18 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/
wasi/core.h" 3
# 1 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/stdd
ef.h" 1 3
# 35 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/std
def.h" 3
typedef long int ptrdiff_t;
# 46 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/std
def.h" 3
typedef long unsigned int size_t;
# 74 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/stddef.h" 3
typedef int wchar_t;
# 102 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/st
ddef.h" 3
# 1 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/__st
ddef_max_align_t.h" 1 3
# 19 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/__s
tddef_max_align_t.h" 3
typedef struct {
  long long __clang_max_align_nonce1
      __attribute__((__aligned__(__alignof__(long long))));
  long double __clang_max_align_nonce2
      __attribute__((__aligned__(__alignof__(long double))));
} max_align_t;
# 103 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/st
ddef.h" 2 3
# 19 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/
wasi/core.h" 2 3
# 1 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/stdi
nt.h" 1 3
# 52 "/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/lib/clang/9.0.0/include/std
int.h" 3

......

__attribute__((weak)) void *dlopen(const char *filename, int flag) {
    printf("[WASIENV] dlopen\n");fflush((stdout));
}

__attribute__((weak)) char *dlerror(void) {
    printf("[WASIENV] dlerror\n");fflush((stdout));
    return "";
}

__attribute__((weak)) void *dlsym(void *handle, const char *symbol) {
    printf("[WASIENV] dlsym\n");fflush((stdout));
}

__attribute__((weak)) int dlclose(void *handle) {
    printf("[WASIENV] dlclose\n");fflush((stdout));
}
# 2 "<built-in>" 2
# 1 "conftest.c" 2

      -Wno-cast-qual
      -Wno-conversion
      -Wno-float-equal
      -Wno-sign-compare
      -Wno-undef
      -Wno-unused-function
      -Wno-unused-parameter

      -Wno-float-conversion

      -Wimplicit-fallthrough

      -Wno-pedantic

      -Wno-sign-conversion
      -Wno-type-limits
1 warning generated.
[root@localhost tmp]#

And the wasicc -g -O2 -E conftest.c is expanded as clang -g -O2 -E conftest.c -isystem/root/.local/lib/python3.11/site-packages/wasienv/stubs -include/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h -D_WASI_EMULATED_MMAN --sysroot=/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot --target=wasm32-wasi. And -include/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h option involved a lot of unexpected output.

To fix strange options in GL_CFLAG_GNULIB_WARNINGS. I made a simple pr.

After I fixed this problem, I got another problem (In file included from ./stdint.h:105: ./sys/types.h:28:3: error: "Please include config.h first.") when I try to run make.
Details
[root@localhost diffutils-3.10]# make -j `nproc`
Making all in lib
make[1]: Entering directory '/root/wasi_example/diffutils-3.10/lib'
make  all-am
make[2]: Entering directory '/root/wasi_example/diffutils-3.10/lib'
  CC       libdiffutils_a-allocator.o
  CC       libdiffutils_a-areadlink.o
  CC       libdiffutils_a-argmatch.o
  CC       libdiffutils_a-basename-lgpl.o
warning: unknown warning option '-Warith-conversion' [-Wunknown-warning-option]
warning: unknown warning option '-Wcast-align=strict'; did you mean '-Wcast-align'? [-Wunknown-warning-option]
warning: unknown warning option '-Wduplicated-cond'; did you mean '-Wduplicate-enum'? [-Wunknown-warning-option]
warning: unknown warning option '-Wformat-signedness' [-Wunknown-warning-option]
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
warning: unknown warning option '-Wopenmp-simd'; did you mean '-Wopenmp-target'? [-Wunknown-warning-option]
warning: unknown warning option '-Wstrict-flex-arrays' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=cold'; did you mean '-WNSObject-attribute'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=const' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=format'; did you mean '-Wproperty-attribute-mismatch'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=malloc' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=noreturn' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-final-methods'; did you mean '-Wabstract-final-class'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-final-types' [-Wunknown-warning-option]
warning: unknown warning option '-Wsync-nand' [-Wunknown-warning-option]
warning: unknown warning option '-Wtrampolines' [-Wunknown-warning-option]
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option]
warning: unknown warning option '-Wvector-operation-performance' [-Wunknown-warning-option]
warning: unknown warning option '-Warray-bounds=2'; did you mean '-Warray-bounds'? [-Wunknown-warning-option]
warning: unknown warning option '-Wattribute-alias=2'; did you mean '-Wattributes'? [-Wunknown-warning-option]
warning: unknown warning option '-Wbidi-chars=any,ucn'; did you mean '-Wnull-character'? [-Wunknown-warning-option]
warning: unknown warning option '-Wformat-overflow=2'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
warning: unknown warning option '-Wformat-truncation=2' [-Wunknown-warning-option]
warning: unknown warning option '-Wimplicit-fallthrough=5'; did you mean '-Wimplicit-fallthrough'? [-Wunknown-warning-option]
warning: unknown warning option '-Wshift-overflow=2'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
warning: unknown warning option '-Wuse-after-free=3'; did you mean '-Wunsupported-friend'? [-Wunknown-warning-option]
warning: unknown warning option '-Wunused-const-variable=2'; did you mean '-Wunused-const-variable'? [-Wunknown-warning-option]
warning: unknown warning option '-Warith-conversion' [-Wunknown-warning-option]
warning: unknown warning option '-Wvla-larger-than=4031'; did you mean '-Wframe-larger-than='? [-Wunknown-warning-option]
warning: unknown warning option '-Wcast-align=strict'; did you mean '-Wcast-align'? [-Wunknown-warning-option]
warning: unknown warning option '-Wduplicated-cond'; did you mean '-Wduplicate-enum'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-analyzer-malloc-leak' [-Wunknown-warning-option]
warning: unknown warning option '-Wformat-signedness' [-Wunknown-warning-option]
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
warning: unknown warning option '-Wopenmp-simd'; did you mean '-Wopenmp-target'? [-Wunknown-warning-option]
warning: unknown warning option '-Warith-conversion' [-Wunknown-warning-option]
warning: unknown warning option '-Wstrict-flex-arrays' [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:18:
./stddef.h:107:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wsuggest-attribute=cold'; did you mean '-WNSObject-attribute'? [-Wunknown-warning-option]
warning: unknown warning option '-Wcast-align=strict'; did you mean '-Wcast-align'? [-Wunknown-warning-option]
warning: unknown warning option '-Wduplicated-cond'; did you mean '-Wduplicate-enum'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=const' [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:19:
In file included from ./stdint.h:105:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wformat-signedness' [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:19:
In file included from ./stdint.h:105:
In file included from ./sys/types.h:46:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/sys/types.h:70:
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:25: warning: '&' within '|' [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                       ~ ~~~~~~^~~~~~~
warningwarning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
: unknown warning option '-Wsuggest-attribute=format'; did you mean '-Wproperty-attribute-mismatch'? [-Wunknown-warning-option]
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:25: note: place parentheses around the '&' expression to silence this warning
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:41: warning: '&' within '|' [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:41: note: place parentheses around the '&' expression to silence this warning
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:37:23: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:37:23: note: place parentheses around the '+' expression to silence this warning
warning: unknown warning option '-Wopenmp-simd'; did you mean '-Wopenmp-target'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=malloc' [-Wunknown-warning-option]
warning: unknown warning option '-Wstrict-flex-arrays' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=noreturn' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-final-methods'; did you mean '-Wabstract-final-class'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=cold'; did you mean '-WNSObject-attribute'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-final-types' [-Wunknown-warning-option]
warning: unknown warning option '-Wsync-nand' [-Wunknown-warning-option]
warning: unknown warning option '-Wtrampolines' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=const' [-Wunknown-warning-option]
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option]
warning: unknown warning option '-Wvector-operation-performance' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=format'; did you mean '-Wproperty-attribute-mismatch'? [-Wunknown-warning-option]
warning: unknown warning option '-Warray-bounds=2'; did you mean '-Warray-bounds'? [-Wunknown-warning-option]
warning: unknown warning option '-Wattribute-alias=2'; did you mean '-Wattributes'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=malloc' [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:76:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wbidi-chars=any,ucn'; did you mean '-Wnull-character'? [-Wunknown-warning-option]
warning: unknown warning option '-Wformat-overflow=2'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=noreturn' [-Wunknown-warning-option]
warning: unknown warning option '-Wformat-truncation=2' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-final-methods'; did you mean '-Wabstract-final-class'? [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:165:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wimplicit-fallthrough=5'; did you mean '-Wimplicit-fallthrough'? [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-final-types' [-Wunknown-warning-option]
warning: unknown warning option '-Wsync-nand' [-Wunknown-warning-option]
warning: unknown warning option '-Wtrampolines' [-Wunknown-warning-option]
warning: unknown warning option '-Wshift-overflow=2'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
warning: unknown warning option '-Wuse-after-free=3'; did you mean '-Wunsupported-friend'? [-Wunknown-warning-option]
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:692:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
_GL_INLINE_HEADER_BEGIN
^
warning: unknown warning option '-Wunused-const-variable=2'; did you mean '-Wunused-const-variable'? [-Wunknown-warning-option]
warning: unknown warning option '-Wvector-operation-performance' [-Wunknown-warning-option]
warning: unknown warning option '-Warray-bounds=2'; did you mean '-Warray-bounds'? [-Wunknown-warning-option]
warning: unknown warning option '-Wvla-larger-than=4031'; did you mean '-Wframe-larger-than='? [-Wunknown-warning-option]
warning: unknown warning option '-Wattribute-alias=2'; did you mean '-Wattributes'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-analyzer-malloc-leak' [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:2:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:4:
./stdlib.h:44:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wbidi-chars=any,ucn'; did you mean '-Wnull-character'? [-Wunknown-warning-option]
warning: unknown warning option '-Wformat-overflow=2'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1warning: unknown warning option '-Wformat-truncation=2' [-Wunknown-warning-option]
:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:18:
./stddef.h:107:3: error: "Please include config.h first."
 #error "Please include config.h first."
warning: unknown warning option '-Wimplicit-fallthrough=5'; did you mean '-Wimplicit-fallthrough'? [-Wunknown-warning-option]
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:2923:1: error: unknown type name '_GL_INLINE_HEADER_END'
warning: _GL_INLINE_HEADER_END
unknown warning option '-Wshift-overflow=2'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]^

warning: unknown warning option '-Wuse-after-free=3'; did you mean '-Wunsupported-friend'? [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19warning: unknown warning option '-Wunused-const-variable=2'; did you mean '-Wunused-const-variable'? [-Wunknown-warning-option]
:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:19:
In file included from ./stdint.h:105:
./sys/types.h:28:3: error: "Please include config.h first."
warning: unknown warning option '-Wvla-larger-than=4031'; did you mean '-Wframe-larger-than='? [-Wunknown-warning-option]
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:5:
./time.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40warning: unknown warning option '-Wno-analyzer-malloc-leak' [-Wunknown-warning-option]
:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:19:
In file included from ./stdint.h:105:
In file included from ./sys/types.h:46:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/sys/types.h:70:
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h./time.h:59:4: error: "Please include config.h first."
#  error "Please include config.h first."
   ^
:32:25: warning: '&' within '|' [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                       ~ ~~~~~~^~~~~~~
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:25: note: place parentheses around the '&' expression to silence this warning
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:6:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:41: warning: '&' within '|' [-Wbitwise-op-parentheses]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
./sys/stat.h:33:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
In file included from ./sys/stat.h:48:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h
:7:
In file included from ./sys/stat.h:51:
./time.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."                                       ~ ~~~~~~^~~~~~~~~

  ^
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:41: note: place parentheses around the '&' expression to silence this warning
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:37:23: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:18:
./stddef.h:107:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:37:23: note: place parentheses around the '+' expression to silence this warning
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
./sys/stat.h:61:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:19:
In file included from ./stdint.h:105:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:19:
In file included from ./stdint.h:105:
In file included from ./sys/types.h:46:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/sys/types.h:70:
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:25: warning: '&' within '|' [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                       ~ ~~~~~~^~~~~~~
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:25: note: place parentheses around the '&' expression to silence this warning
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:41: warning: '&' within '|' [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:41: note: place parentheses around the '&' expression to silence this warning
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:37:23: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:37:23: note: place parentheses around the '+' expression to silence this warning
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:10:
./stdio.h:64:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:10:
In file included from ./stdio.h:75:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:30:9: warning: 'ESHUTDOWN' macro redefined [-Wmacro-redefined]
#define ESHUTDOWN 0
        ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:28:9: note: previous definition is here
#define ESHUTDOWN 1
        ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:44:31: warning: no previous prototype for function 'getrandom' [-Wmissing-prototypes]
__attribute__((weak)) ssize_t getrandom(void * buffer, size_t len, unsigned flags) {
                              ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:44:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) ssize_t getrandom(void * buffer, size_t len, unsigned flags) {
                      ^
                      static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:69: warning: returning 'const char [1]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                                                                    ^~
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:29: warning: no previous prototype for function 'getcwd' [-Wmissing-prototypes]
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                            ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                      ^
                      static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:63:28: warning: no previous prototype for function 'clock_settime' [-Wmissing-prototypes]
__attribute__((weak))  int clock_settime(clockid_t clk_id, const struct timespec *tp) { return 0;}
                           ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:63:24: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak))  int clock_settime(clockid_t clk_id, const struct timespec *tp) { return 0;}
                       ^
                       static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:64:27: warning: no previous prototype for function 'chdir' [-Wmissing-prototypes]
__attribute__((weak)) int chdir(const char *path) { return 0;
                          ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:64:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) int chdir(const char *path) { return 0;
                      ^
                      static
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:68:
In file included from ./fcntl.h:56:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:68:
In file included from ./fcntl.h:64:
./sys/stat.h:33:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Warith-conversion' [-Wunknown-warning-option]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
warning: unknown warning option '-Wcast-align=strict'; did you mean '-Wcast-align'? [-Wunknown-warning-option]
warning: unknown warning option '-Wduplicated-cond'; did you mean '-Wduplicate-enum'? [-Wunknown-warning-option]
warning: unknown warning option '-Wformat-signedness' [-Wunknown-warning-option]
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
warning: unknown warning option '-Wopenmp-simd'; did you mean '-Wopenmp-target'? [-Wunknown-warning-option]
warning: unknown warning option '-Wstrict-flex-arrays' [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:76:3: error: "Please include config.h first."
 #error "Please include config.h first."
warning: unknown warning option '-Wsuggest-attribute=cold'; did you mean '-WNSObject-attribute'? [-Wunknown-warning-option]
  ^
warning: unknown warning option '-Wsuggest-attribute=const' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=format'; did you mean '-Wproperty-attribute-mismatch'? [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:165:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wsuggest-attribute=malloc' [-Wunknown-warning-option]
warning: unknown warning option '-Wsuggest-attribute=noreturn' [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:692:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
_GL_INLINE_HEADER_BEGIN
^
warning: unknown warning option '-Wsuggest-final-methods'; did you mean '-Wabstract-final-class'? [-Wunknown-warning-option]
In file included from warning<built-in>: :1unknown warning option '-Wsuggest-final-types' [-Wunknown-warning-option]
:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:2:
./sys/types.h:28:3:warning: unknown warning option '-Wsync-nand' [-Wunknown-warning-option]
 error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wtrampolines' [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:4:
./stdlib.h:44:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:2923:1: error: unknown type name '_GL_INLINE_HEADER_END'
_GL_INLINE_HEADER_END
^
38 warnings and 20 errors generated.
warning: unknown warning option '-Wvector-operation-performance' [-Wunknown-warning-option]
warning: unknown warning option '-Warray-bounds=2'; did you mean '-Warray-bounds'? [-Wunknown-warning-option]
warning: unknown warning option '-Wattribute-alias=2'; did you mean '-Wattributes'? [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:5:
./time.hwarning: unknown warning option '-Wbidi-chars=any,ucn'; did you mean '-Wnull-character'? [-Wunknown-warning-option]
:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wformat-overflow=2'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
warning: unknown warning option '-Wformat-truncation=2' [-Wunknown-warning-option]
./time.h:59:4: error: "Please include config.h first."
#  error "Please include config.h first."
   ^
warning: unknown warning option '-Wimplicit-fallthrough=5'; did you mean '-Wimplicit-fallthrough'? [-Wunknown-warning-option]
In file included from <built-in>:1:
warning: unknown warning option '-Wshift-overflow=2'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:6:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1warning: unknown warning option '-Wuse-after-free=3'; did you mean '-Wunsupported-friend'? [-Wunknown-warning-option]
:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
./sys/stat.h:33:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
In file included from ./sys/stat.h:48:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
In file included from ./sys/stat.h:warning: unknown warning option '-Wunused-const-variable=2'; did you mean '-Wunused-const-variable'? [-Wunknown-warning-option]
51:
./time.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
warning: unknown warning option '-Wvla-larger-than=4031'; did you mean '-Wframe-larger-than='? [-Wunknown-warning-option]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
./sys/stat.h:61warning: unknown warning option '-Wno-analyzer-malloc-leak' [-Wunknown-warning-option]
:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:76:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:10:
./stdio.h:64:3: In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:18:
./stddef.h:107:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:165:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
In file included from   ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:10:
In file included from ./stdio.h:75:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:692:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
_GL_INLINE_HEADER_BEGIN
^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:2:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from In file included from <built-in><built-in>::11:
:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:4:
./stdlib.h:44:3: error: "Please include config.h first."
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:30:9: warning: In file included from 'ESHUTDOWN' macro redefined [-Wmacro-redefined]<built-in>:
1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h #error "Please include config.h first.":19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:

  ^
#define ESHUTDOWN 0
        ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:28:9: note: previous definition is here
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:19:
In file included from ./stdint.h:105:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
#define ESHUTDOWN 1
        ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:44:31: warning: no previous prototype for function 'getrandom' [-Wmissing-prototypes]
__attribute__((weak)) ssize_t getrandom(void * buffer, size_t len, unsigned flags) {
                              ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:44:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:2923:1: error: unknown type name '_GL_INLINE_HEADER_END'
_GL_INLINE_HEADER_END
^
__attribute__((weak)) ssize_t getrandom(void * buffer, size_t len, unsigned flags) {
                      ^
                      static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:69: warning: In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:40returning 'const char [1]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                                                                    ^~
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:29: warning: no previous prototype for function 'getcwd' [-Wmissing-prototypes]
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                            ^
:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/unistd.h:19:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__header_unistd.h:6:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/__seek.h:4:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/wasi/core.h:19:
In file included from ./stdint.h:105:
In file included from ./sys/types.h:46:
In file included from /root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/sys/types.h:70:
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:25: warning: '&' within '|' [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h
:61                       ~ ~~~~~~^~~~~~~:
23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                      ^
                      static
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:5:
./time.h:28:/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:25: note: place parentheses around the '&' expression to silence this warning3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:63:28:
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:41: warning: '&' within '|' [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~
warning: no previous prototype for function 'clock_settime' [-Wmissing-prototypes]
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:32:41: note: place parentheses around the '&' expression to silence this warning
__attribute__((weak))  int clock_settime(clockid_t clk_id, const struct timespec *tp) { return 0;}
                           ^
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:37:23: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
/root/.local/lib/python3.11/site-packages/wasienv-storage/sdks/8/wasi-sdk-8.0/share/wasi-sysroot/include/endian.h:37:23: note: place parentheses around the '+' expression to silence this warning
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:63:24: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak))  int clock_settime(clockid_t clk_id, const struct timespec *tp) { return 0;}
                       ^
                       static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:64:27: warning: no previous prototype for function 'chdir' [-Wmissing-prototypes]
__attribute__((weak)) int chdir(const char *path) { return 0;
                          ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:64:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) int chdir(const char *path) { return 0;
                      ^
                      static
./time.h:59:4: error: "Please include config.h first."
#  error "Please include config.h first."
   ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:68:
In file included from ./fcntl.h:56:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:68:
In file included from ./fcntl.hIn file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:6:
./sys/types.h:28:3: error: "Please include config.h first."
:64:
./sys/stat.h: #error "Please include config.h first."
  ^
33:3: error: "Please include config.h first."
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
./sys/stat.h:33:3 #error "Please include config.h first.": error: "Please include config.h first."
  ^

 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
In file included from ./sys/stat.h:48:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
In file included from ./sys/stat.h:51:
./time.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
./sys/stat.h:61:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:10:
./stdio.h:64:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:10:
In file included from ./stdio.h:75:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:30:9: warning: 'ESHUTDOWN' macro redefined [-Wmacro-redefined]
#define ESHUTDOWN 0
        ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:28:9: note: previous definition is here
#define ESHUTDOWN 1
        ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:44:31: warning: no previous prototype for function 'getrandom' [-Wmissing-prototypes]
__attribute__((weak)) ssize_t getrandom(void * buffer, size_t len, unsigned flags) {
                              ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:44:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) ssize_t getrandom(void * buffer, size_t len, unsigned flags) {
                      ^
                      static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:69: warning: returning 'const char [1]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                                                                    ^~
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:29: warning: no previous prototype for function 'getcwd' [-Wmissing-prototypes]
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                            ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                      ^
                      static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:63:28: warning: no previous prototype for function 'clock_settime' [-Wmissing-prototypes]
__attribute__((weak))  int clock_settime(clockid_t clk_id, const struct timespec *tp) { return 0;}
                           ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:63:24: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak))  int clock_settime(clockid_t clk_id, const struct timespec *tp) { return 0;}
                       ^
                       static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:64:27: warning: no previous prototype for function 'chdir' [-Wmissing-prototypes]
__attribute__((weak)) int chdir(const char *path) { return 0;
                          ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:64:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) int chdir(const char *path) { return 0;
                      ^
                      static
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:68:
In file included from ./fcntl.h:56:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:68:
In file included from ./fcntl.h:64:
./sys/stat.h:33:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
38 warnings and 20 errors generated.
fatal error: too many errors emitted, stopping now [-ferror-limit=]
38 warnings and 20 errors generated.
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:76:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
In file included from ./unistd.h:165:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:692:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
_GL_INLINE_HEADER_BEGIN
^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:2:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:4:
./stdlib.h:44:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:1:
./unistd.h:2923:1: error: unknown type name '_GL_INLINE_HEADER_END'
_GL_INLINE_HEADER_END
^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:5:
./time.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
./time.h:59:4: error: "Please include config.h first."
#  error "Please include config.h first."
   ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:6:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
./sys/stat.h:33:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
In file included from ./sys/stat.h:48:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
In file included from ./sys/stat.h:51:
./time.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:7:
./sys/stat.h:61:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:10:
./stdio.h:64:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:10:
In file included from ./stdio.h:75:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:30:9: warning: 'ESHUTDOWN' macro redefined [-Wmacro-redefined]
#define ESHUTDOWN 0
        ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:28:9: note: previous definition is here
#define ESHUTDOWN 1
        ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:44:31: warning: no previous prototype for function 'getrandom' [-Wmissing-prototypes]
__attribute__((weak)) ssize_t getrandom(void * buffer, size_t len, unsigned flags) {
                              ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:44:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) ssize_t getrandom(void * buffer, size_t len, unsigned flags) {
                      ^
                      static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:69: warning: returning 'const char [1]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                                                                    ^~
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:29: warning: no previous prototype for function 'getcwd' [-Wmissing-prototypes]
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                            ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:61:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) char *getcwd(char *buf, size_t size) { return "";}
                      ^
                      static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:63:28: warning: no previous prototype for function 'clock_settime' [-Wmissing-prototypes]
__attribute__((weak))  int clock_settime(clockid_t clk_id, const struct timespec *tp) { return 0;}
                           ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:63:24: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak))  int clock_settime(clockid_t clk_id, const struct timespec *tp) { return 0;}
                       ^
                       static
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:64:27: warning: no previous prototype for function 'chdir' [-Wmissing-prototypes]
__attribute__((weak)) int chdir(const char *path) { return 0;
                          ^
/root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:64:23: note: declare 'static' if the function is not intended to be used outside of this translation unit
__attribute__((weak)) int chdir(const char *path) { return 0;
                      ^
                      static
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:68:
In file included from ./fcntl.h:56:
./sys/types.h:28:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
In file included from <built-in>:1:
In file included from /root/.local/lib/python3.11/site-packages/wasienv/stubs/preamble.h:68:
In file included from ./fcntl.h:64:
./sys/stat.h:33:3: error: "Please include config.h first."
 #error "Please include config.h first."