From 26524da659977c11605095ffb4dacbb0dd53fbcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 11 Nov 2022 11:22:37 +0100 Subject: [PATCH 01/34] Add integration test for failing create-exe command --- lib/cli/src/commands/create_exe.rs | 2 +- tests/integration/cli/tests/run.rs | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index e2f8d6204d1..bf0796fbfe3 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1446,7 +1446,7 @@ mod http_fetch { entries.retain(|p| p.to_str().map(|p| check_vendor(p)).unwrap_or(true)); entries.retain(|p| p.to_str().map(|p| check_os(p)).unwrap_or(true)); entries.retain(|p| p.to_str().map(|p| check_env(p)).unwrap_or(true)); - if entries.len() == 1 { + if entries.len() > 0 { cache_path.push(&entries[0]); if cache_path.exists() { eprintln!( diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index dafb0d3f960..5d706b1fe9c 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -21,6 +21,34 @@ fn test_no_start_wat_path() -> String { format!("{}/{}", ASSET_PATH, "no_start.wat") } +#[test] +fn test_cross_compile_python_windows() -> anyhow::Result<()> { + + let temp_dir = tempfile::TempDir::new()?; + let python_wasmer_path = temp_dir.path().join("python.exe"); + + let output = Command::new(get_wasmer_path()) + .arg("create-exe") + .arg(wasi_test_python_path()) + .arg("--target") + .arg("x86_64-windows") + .arg("-o") + .arg(python_wasmer_path) + .output()?; + + if !output.status.success() { + bail!( + "linking failed with: stdout: {}\n\nstderr: {}", + std::str::from_utf8(&output.stdout) + .expect("stdout is not utf8! need to handle arbitrary bytes"), + std::str::from_utf8(&output.stderr) + .expect("stderr is not utf8! need to handle arbitrary bytes") + ); + } + + Ok(()) +} + #[test] fn run_wasi_works() -> anyhow::Result<()> { let output = Command::new(get_wasmer_path()) From b63701c0d39a9658ebef1beb89fe7bfe6eb08968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 11 Nov 2022 18:21:10 +0100 Subject: [PATCH 02/34] Debug issue on macos --- out.txt | 2238 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2238 insertions(+) create mode 100644 out.txt diff --git a/out.txt b/out.txt new file mode 100644 index 00000000000..5b50493a449 --- /dev/null +++ b/out.txt @@ -0,0 +1,2238 @@ +warning: /Users/fs/Development/wasmer/lib/cli/Cargo.toml: unused manifest key: dependencies.reqwest.feature + Compiling wasmer-integration-tests-cli v3.0.0-rc.2 (/Users/fs/Development/wasmer/tests/integration/cli) + Finished test [unoptimized + debuginfo] target(s) in 0.77s + Running tests/run.rs (target/debug/deps/run-e931b5c818de0003) +Error: linking failed with: stdout: Downloading https://github.com/wasmerio/wasmer/releases/download/v3.0.0-rc.2/wasmer-windows-amd64.tar.gz to wasmer-windows-amd64.tar.gz +Library Path: /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/lib/wasmer.lib +Using zig binary: /Users/fs/.wasmer/utils/zig/0.11.0-dev.116+41b7e40d7/zig +Using zig target triple: x86_64-windows-none +cmd (zig cc): "/Users/fs/.wasmer/utils/zig/0.11.0-dev.116+41b7e40d7/zig" "cc" "-target" "x86_64-windows-none" +"-L/Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/lib" + "-l:wasmer.lib" "-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include" # + "-I/Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include" + "-I/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/testpirita.pwDPW63XBkiG/atoms/python" + "/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/testpirita.pwDPW63XBkiG/atoms/python.o" + "/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c" + "/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/link-exe-from-dir.dUU4cQpvxksO/volumes.o" + + +stderr: Cached tarball to cache path `/Users/fs/.wasmer/cache/wasmer-windows-amd64.tar.gz`. +error: In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:97: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdint.h:52: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/_types.h:32: +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/cdefs.h:81:2: warning: "Unsupported compiler detected" [-W#warnings] +#warning "Unsupported compiler detected" + ^ +In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:98: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:66: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/wait.h:186: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/machine/endian.h:35: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/i386/endian.h:101: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/_endian.h:130: +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/libkern/_OSByteOrder.h:97:1: error: unknown type name '__DARWIN_OS_INLINE' +__DARWIN_OS_INLINE +^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/libkern/_OSByteOrder.h:98:9: error: expected ';' after top level declarator +uint16_t + ^ + ; +In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:98: +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:134:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +double atof(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:134:25: note: insert '_Nullable' if the pointer may be null +double atof(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:134:25: note: insert '_Nonnull' if the pointer should never be null +double atof(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:135:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int atoi(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:135:22: note: insert '_Nullable' if the pointer may be null +int atoi(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:135:22: note: insert '_Nonnull' if the pointer should never be null +int atoi(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:136:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +long atol(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:136:23: note: insert '_Nullable' if the pointer may be null +long atol(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:136:23: note: insert '_Nonnull' if the pointer should never be null +long atol(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:139:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + atoll(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:139:20: note: insert '_Nullable' if the pointer may be null + atoll(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:139:20: note: insert '_Nonnull' if the pointer should never be null + atoll(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:26: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void *bsearch(const void *__key, const void *__base, size_t __nel, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:26: note: insert '_Nullable' if the pointer may be null +void *bsearch(const void *__key, const void *__base, size_t __nel, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:26: note: insert '_Nonnull' if the pointer should never be null +void *bsearch(const void *__key, const void *__base, size_t __nel, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:45: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void *bsearch(const void *__key, const void *__base, size_t __nel, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:45: note: insert '_Nullable' if the pointer may be null +void *bsearch(const void *__key, const void *__base, size_t __nel, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:45: note: insert '_Nonnull' if the pointer should never be null +void *bsearch(const void *__key, const void *__base, size_t __nel, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:59: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + size_t __width, int (* _Nonnull __compar)(const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:59: note: insert '_Nullable' if the pointer may be null + size_t __width, int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:59: note: insert '_Nonnull' if the pointer should never be null + size_t __width, int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:73: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + size_t __width, int (* _Nonnull __compar)(const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:73: note: insert '_Nullable' if the pointer may be null + size_t __width, int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:73: note: insert '_Nonnull' if the pointer should never be null + size_t __width, int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void *bsearch(const void *__key, const void *__base, size_t __nel, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:6: note: insert '_Nullable' if the pointer may be null +void *bsearch(const void *__key, const void *__base, size_t __nel, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:6: note: insert '_Nonnull' if the pointer should never be null +void *bsearch(const void *__key, const void *__base, size_t __nel, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *getenv(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:25: note: insert '_Nullable' if the pointer may be null +char *getenv(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:25: note: insert '_Nonnull' if the pointer should never be null +char *getenv(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *getenv(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:6: note: insert '_Nullable' if the pointer may be null +char *getenv(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:6: note: insert '_Nonnull' if the pointer should never be null +char *getenv(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:156:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int mblen(const char *__s, size_t __n); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:156:23: note: insert '_Nullable' if the pointer may be null +int mblen(const char *__s, size_t __n); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:156:23: note: insert '_Nonnull' if the pointer should never be null +int mblen(const char *__s, size_t __n); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:26: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:26: note: insert '_Nullable' if the pointer may be null +size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:26: note: insert '_Nonnull' if the pointer should never be null +size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:52: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:52: note: insert '_Nullable' if the pointer may be null +size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:52: note: insert '_Nonnull' if the pointer should never be null +size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:21: note: insert '_Nullable' if the pointer may be null +int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:21: note: insert '_Nonnull' if the pointer should never be null +int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:46: note: insert '_Nullable' if the pointer may be null +int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:46: note: insert '_Nonnull' if the pointer should never be null +int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:160:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void qsort(void *__base, size_t __nel, size_t __width, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:160:18: note: insert '_Nullable' if the pointer may be null +void qsort(void *__base, size_t __nel, size_t __width, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:160:18: note: insert '_Nonnull' if the pointer should never be null +void qsort(void *__base, size_t __nel, size_t __width, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:43: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:43: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:57: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:57: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:57: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:27: note: insert '_Nullable' if the pointer may be null +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:27: note: insert '_Nonnull' if the pointer should never be null +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:35: note: insert '_Nullable' if the pointer may be null +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:35: note: insert '_Nonnull' if the pointer should never be null +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:36: note: insert '_Nullable' if the pointer may be null +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:36: note: insert '_Nonnull' if the pointer should never be null +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:9: warning: incompatible redeclaration of library function 'strtod' [-Wincompatible-library-redeclaration] +double strtod(const char *, char **) __DARWIN_ALIAS(strtod); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:9: note: 'strtod' is a builtin with type 'double (const char *, char **)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:26: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:26: note: insert '_Nullable' if the pointer may be null +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:26: note: insert '_Nonnull' if the pointer should never be null +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:34: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:34: note: insert '_Nullable' if the pointer may be null +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:34: note: insert '_Nonnull' if the pointer should never be null +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:35: note: insert '_Nullable' if the pointer may be null +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:35: note: insert '_Nonnull' if the pointer should never be null +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:8: warning: incompatible redeclaration of library function 'strtof' [-Wincompatible-library-redeclaration] +float strtof(const char *, char **) __DARWIN_ALIAS(strtof); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:8: note: 'strtof' is a builtin with type 'float (const char *, char **)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +long strtol(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:25: note: insert '_Nullable' if the pointer may be null +long strtol(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:25: note: insert '_Nonnull' if the pointer should never be null +long strtol(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:38: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +long strtol(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:38: note: insert '_Nullable' if the pointer may be null +long strtol(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:38: note: insert '_Nonnull' if the pointer should never be null +long strtol(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:39: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +long strtol(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:39: note: insert '_Nullable' if the pointer may be null +long strtol(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:39: note: insert '_Nonnull' if the pointer should never be null +long strtol(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:7: warning: incompatible redeclaration of library function 'strtol' [-Wincompatible-library-redeclaration] +long strtol(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:7: note: 'strtol' is a builtin with type 'long (const char *, char **, int)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtold(const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:22: note: insert '_Nullable' if the pointer may be null + strtold(const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:22: note: insert '_Nonnull' if the pointer should never be null + strtold(const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtold(const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:30: note: insert '_Nullable' if the pointer may be null + strtold(const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:30: note: insert '_Nonnull' if the pointer should never be null + strtold(const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:31: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtold(const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:31: note: insert '_Nullable' if the pointer may be null + strtold(const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:31: note: insert '_Nonnull' if the pointer should never be null + strtold(const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:3: warning: incompatible redeclaration of library function 'strtold' [-Wincompatible-library-redeclaration] + strtold(const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:3: note: 'strtold' is a builtin with type 'long double (const char *, char **)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoll(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:22: note: insert '_Nullable' if the pointer may be null + strtoll(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:22: note: insert '_Nonnull' if the pointer should never be null + strtoll(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoll(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:35: note: insert '_Nullable' if the pointer may be null + strtoll(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:35: note: insert '_Nonnull' if the pointer should never be null + strtoll(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoll(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:36: note: insert '_Nullable' if the pointer may be null + strtoll(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:36: note: insert '_Nonnull' if the pointer should never be null + strtoll(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:3: warning: incompatible redeclaration of library function 'strtoll' [-Wincompatible-library-redeclaration] + strtoll(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:3: note: 'strtoll' is a builtin with type 'long long (const char *, char **, int)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoul(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:22: note: insert '_Nullable' if the pointer may be null + strtoul(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:22: note: insert '_Nonnull' if the pointer should never be null + strtoul(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoul(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:35: note: insert '_Nullable' if the pointer may be null + strtoul(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:35: note: insert '_Nonnull' if the pointer should never be null + strtoul(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoul(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:36: note: insert '_Nullable' if the pointer may be null + strtoul(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:36: note: insert '_Nonnull' if the pointer should never be null + strtoul(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:3: warning: incompatible redeclaration of library function 'strtoul' [-Wincompatible-library-redeclaration] + strtoul(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:3: note: 'strtoul' is a builtin with type 'unsigned long (const char *, char **, int)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoull(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:23: note: insert '_Nullable' if the pointer may be null + strtoull(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:23: note: insert '_Nonnull' if the pointer should never be null + strtoull(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoull(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:36: note: insert '_Nullable' if the pointer may be null + strtoull(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:36: note: insert '_Nonnull' if the pointer should never be null + strtoull(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoull(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:37: note: insert '_Nullable' if the pointer may be null + strtoull(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:37: note: insert '_Nonnull' if the pointer should never be null + strtoull(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:3: warning: incompatible redeclaration of library function 'strtoull' [-Wincompatible-library-redeclaration] + strtoull(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:3: note: 'strtoull' is a builtin with type 'unsigned long long (const char *, char **, int)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:184:24: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int system(const char *) __DARWIN_ALIAS_C(system); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:184:24: note: insert '_Nullable' if the pointer may be null +int system(const char *) __DARWIN_ALIAS_C(system); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:184:24: note: insert '_Nonnull' if the pointer should never be null +int system(const char *) __DARWIN_ALIAS_C(system); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:23: note: insert '_Nullable' if the pointer may be null +size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:23: note: insert '_Nonnull' if the pointer should never be null +size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:51: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:51: note: insert '_Nullable' if the pointer may be null +size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:51: note: insert '_Nonnull' if the pointer should never be null +size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:188:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int wctomb(char *, wchar_t); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:188:18: note: insert '_Nullable' if the pointer may be null +int wctomb(char *, wchar_t); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:188:18: note: insert '_Nonnull' if the pointer should never be null +int wctomb(char *, wchar_t); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:192:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +long a64l(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:192:23: note: insert '_Nullable' if the pointer may be null +long a64l(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:192:23: note: insert '_Nonnull' if the pointer should never be null +long a64l(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:29: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:29: note: insert '_Nullable' if the pointer may be null +char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:29: note: insert '_Nonnull' if the pointer should never be null +char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:46: note: insert '_Nullable' if the pointer may be null +char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:46: note: insert '_Nonnull' if the pointer should never be null +char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:6: note: insert '_Nullable' if the pointer may be null +char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:6: note: insert '_Nonnull' if the pointer should never be null +char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:195:31: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] +double erand48(unsigned short[3]); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:195:31: note: insert '_Nullable' if the array parameter may be null +double erand48(unsigned short[3]); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:195:31: note: insert '_Nonnull' if the array parameter should never be null +double erand48(unsigned short[3]); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:29: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:29: note: insert '_Nullable' if the pointer may be null +char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:29: note: insert '_Nonnull' if the pointer should never be null +char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:46: note: insert '_Nullable' if the pointer may be null +char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:46: note: insert '_Nonnull' if the pointer should never be null +char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:6: note: insert '_Nullable' if the pointer may be null +char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:6: note: insert '_Nonnull' if the pointer should never be null +char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *gcvt(double, int, char *); /* LEGACY */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:30: note: insert '_Nullable' if the pointer may be null +char *gcvt(double, int, char *); /* LEGACY */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:30: note: insert '_Nonnull' if the pointer should never be null +char *gcvt(double, int, char *); /* LEGACY */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *gcvt(double, int, char *); /* LEGACY */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:6: note: insert '_Nullable' if the pointer may be null +char *gcvt(double, int, char *); /* LEGACY */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:6: note: insert '_Nonnull' if the pointer should never be null +char *gcvt(double, int, char *); /* LEGACY */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int getsubopt(char **, char * const *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:21: note: insert '_Nullable' if the pointer may be null +int getsubopt(char **, char * const *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:21: note: insert '_Nonnull' if the pointer should never be null +int getsubopt(char **, char * const *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int getsubopt(char **, char * const *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:22: note: insert '_Nullable' if the pointer may be null +int getsubopt(char **, char * const *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:22: note: insert '_Nonnull' if the pointer should never be null +int getsubopt(char **, char * const *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int getsubopt(char **, char * const *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:30: note: insert '_Nullable' if the pointer may be null +int getsubopt(char **, char * const *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:30: note: insert '_Nonnull' if the pointer should never be null +int getsubopt(char **, char * const *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:38: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int getsubopt(char **, char * const *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:38: note: insert '_Nullable' if the pointer may be null +int getsubopt(char **, char * const *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:38: note: insert '_Nonnull' if the pointer should never be null +int getsubopt(char **, char * const *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int getsubopt(char **, char * const *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:46: note: insert '_Nullable' if the pointer may be null +int getsubopt(char **, char * const *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:46: note: insert '_Nonnull' if the pointer should never be null +int getsubopt(char **, char * const *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:47: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int getsubopt(char **, char * const *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:47: note: insert '_Nullable' if the pointer may be null +int getsubopt(char **, char * const *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:47: note: insert '_Nonnull' if the pointer should never be null +int getsubopt(char **, char * const *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:32: note: insert '_Nullable' if the pointer may be null +char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:32: note: insert '_Nonnull' if the pointer should never be null +char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:6: note: insert '_Nullable' if the pointer may be null +char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:6: note: insert '_Nonnull' if the pointer should never be null +char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:205:29: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] +long jrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:205:29: note: insert '_Nullable' if the array parameter may be null +long jrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:205:29: note: insert '_Nonnull' if the array parameter should never be null +long jrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:206:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *l64a(long); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:206:6: note: insert '_Nullable' if the pointer may be null +char *l64a(long); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:206:6: note: insert '_Nonnull' if the pointer should never be null +char *l64a(long); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:207:29: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] +void lcong48(unsigned short[7]); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:207:29: note: insert '_Nullable' if the array parameter may be null +void lcong48(unsigned short[7]); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:207:29: note: insert '_Nonnull' if the array parameter should never be null +void lcong48(unsigned short[7]); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *mktemp(char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:19: note: insert '_Nullable' if the pointer may be null +char *mktemp(char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:19: note: insert '_Nonnull' if the pointer should never be null +char *mktemp(char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *mktemp(char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:6: note: insert '_Nullable' if the pointer may be null +char *mktemp(char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:6: note: insert '_Nonnull' if the pointer should never be null +char *mktemp(char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:213:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int mkstemp(char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:213:19: note: insert '_Nullable' if the pointer may be null +int mkstemp(char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:213:19: note: insert '_Nonnull' if the pointer should never be null +int mkstemp(char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:215:29: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] +long nrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:215:29: note: insert '_Nullable' if the array parameter may be null +long nrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:215:29: note: insert '_Nonnull' if the array parameter should never be null +long nrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:217:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *ptsname(int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:217:6: note: insert '_Nullable' if the pointer may be null +char *ptsname(int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:217:6: note: insert '_Nonnull' if the pointer should never be null +char *ptsname(int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:220:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int ptsname_r(int fildes, char *buffer, size_t buflen) __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:220:32: note: insert '_Nullable' if the pointer may be null +int ptsname_r(int fildes, char *buffer, size_t buflen) __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:220:32: note: insert '_Nonnull' if the pointer should never be null +int ptsname_r(int fildes, char *buffer, size_t buflen) __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:223:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int putenv(char *) __DARWIN_ALIAS(putenv); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:223:18: note: insert '_Nullable' if the pointer may be null +int putenv(char *) __DARWIN_ALIAS(putenv); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:223:18: note: insert '_Nonnull' if the pointer should never be null +int putenv(char *) __DARWIN_ALIAS(putenv); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:225:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int rand_r(unsigned *) __swift_unavailable("Use arc4random instead."); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:225:22: note: insert '_Nullable' if the pointer may be null +int rand_r(unsigned *) __swift_unavailable("Use arc4random instead."); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:225:22: note: insert '_Nonnull' if the pointer should never be null +int rand_r(unsigned *) __swift_unavailable("Use arc4random instead."); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:27: note: insert '_Nullable' if the pointer may be null +char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:27: note: insert '_Nonnull' if the pointer should never be null +char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:46: note: insert '_Nullable' if the pointer may be null +char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:46: note: insert '_Nonnull' if the pointer should never be null +char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:6: note: insert '_Nullable' if the pointer may be null +char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:6: note: insert '_Nonnull' if the pointer should never be null +char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:24: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] + *seed48(unsigned short[3]); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:24: note: insert '_Nullable' if the array parameter may be null + *seed48(unsigned short[3]); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:24: note: insert '_Nonnull' if the array parameter should never be null + *seed48(unsigned short[3]); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:2: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + *seed48(unsigned short[3]); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:2: note: insert '_Nullable' if the pointer may be null + *seed48(unsigned short[3]); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:2: note: insert '_Nonnull' if the pointer should never be null + *seed48(unsigned short[3]); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:24: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:24: note: insert '_Nullable' if the pointer may be null +int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:24: note: insert '_Nonnull' if the pointer should never be null +int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:45: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:45: note: insert '_Nullable' if the pointer may be null +int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:45: note: insert '_Nonnull' if the pointer should never be null +int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:235:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void setkey(const char *) __DARWIN_ALIAS(setkey); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:235:25: note: insert '_Nullable' if the pointer may be null +void setkey(const char *) __DARWIN_ALIAS(setkey); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:235:25: note: insert '_Nonnull' if the pointer should never be null +void setkey(const char *) __DARWIN_ALIAS(setkey); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *setstate(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:27: note: insert '_Nullable' if the pointer may be null +char *setstate(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:27: note: insert '_Nonnull' if the pointer should never be null +char *setstate(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *setstate(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:6: note: insert '_Nullable' if the pointer may be null +char *setstate(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:6: note: insert '_Nonnull' if the pointer should never be null +char *setstate(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:248:26: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int unsetenv(const char *) __DARWIN_ALIAS(unsetenv); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:248:26: note: insert '_Nullable' if the pointer may be null +int unsetenv(const char *) __DARWIN_ALIAS(unsetenv); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:248:26: note: insert '_Nonnull' if the pointer should never be null +int unsetenv(const char *) __DARWIN_ALIAS(unsetenv); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:261:42: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void arc4random_addrandom(unsigned char * /*dat*/, int /*datlen*/) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:261:42: note: insert '_Nullable' if the pointer may be null +void arc4random_addrandom(unsigned char * /*dat*/, int /*datlen*/) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:261:42: note: insert '_Nonnull' if the pointer should never be null +void arc4random_addrandom(unsigned char * /*dat*/, int /*datlen*/) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:266:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:266:27: note: insert '_Nullable' if the pointer may be null +void arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:266:27: note: insert '_Nonnull' if the pointer should never be null +void arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *cgetcap(char *, const char *, int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:20: note: insert '_Nullable' if the pointer may be null +char *cgetcap(char *, const char *, int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:20: note: insert '_Nonnull' if the pointer should never be null +char *cgetcap(char *, const char *, int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:34: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *cgetcap(char *, const char *, int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:34: note: insert '_Nullable' if the pointer may be null +char *cgetcap(char *, const char *, int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:34: note: insert '_Nonnull' if the pointer should never be null +char *cgetcap(char *, const char *, int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *cgetcap(char *, const char *, int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:6: note: insert '_Nullable' if the pointer may be null +char *cgetcap(char *, const char *, int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:6: note: insert '_Nonnull' if the pointer should never be null +char *cgetcap(char *, const char *, int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetent(char **, char **, const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:19: note: insert '_Nullable' if the pointer may be null +int cgetent(char **, char **, const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:19: note: insert '_Nonnull' if the pointer should never be null +int cgetent(char **, char **, const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetent(char **, char **, const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:20: note: insert '_Nullable' if the pointer may be null +int cgetent(char **, char **, const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:20: note: insert '_Nonnull' if the pointer should never be null +int cgetent(char **, char **, const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:28: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetent(char **, char **, const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:28: note: insert '_Nullable' if the pointer may be null +int cgetent(char **, char **, const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:28: note: insert '_Nonnull' if the pointer should never be null +int cgetent(char **, char **, const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:29: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetent(char **, char **, const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:29: note: insert '_Nullable' if the pointer may be null +int cgetent(char **, char **, const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:29: note: insert '_Nonnull' if the pointer should never be null +int cgetent(char **, char **, const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetent(char **, char **, const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:43: note: insert '_Nullable' if the pointer may be null +int cgetent(char **, char **, const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:43: note: insert '_Nonnull' if the pointer should never be null +int cgetent(char **, char **, const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetfirst(char **, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:21: note: insert '_Nullable' if the pointer may be null +int cgetfirst(char **, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:21: note: insert '_Nonnull' if the pointer should never be null +int cgetfirst(char **, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetfirst(char **, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:22: note: insert '_Nullable' if the pointer may be null +int cgetfirst(char **, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:22: note: insert '_Nonnull' if the pointer should never be null +int cgetfirst(char **, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetfirst(char **, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:30: note: insert '_Nullable' if the pointer may be null +int cgetfirst(char **, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:30: note: insert '_Nonnull' if the pointer should never be null +int cgetfirst(char **, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:31: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetfirst(char **, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:31: note: insert '_Nullable' if the pointer may be null +int cgetfirst(char **, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:31: note: insert '_Nonnull' if the pointer should never be null +int cgetfirst(char **, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetmatch(const char *, const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:27: note: insert '_Nullable' if the pointer may be null +int cgetmatch(const char *, const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:27: note: insert '_Nonnull' if the pointer should never be null +int cgetmatch(const char *, const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetmatch(const char *, const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:41: note: insert '_Nullable' if the pointer may be null +int cgetmatch(const char *, const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:41: note: insert '_Nonnull' if the pointer should never be null +int cgetmatch(const char *, const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetnext(char **, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:20: note: insert '_Nullable' if the pointer may be null +int cgetnext(char **, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:20: note: insert '_Nonnull' if the pointer should never be null +int cgetnext(char **, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetnext(char **, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:21: note: insert '_Nullable' if the pointer may be null +int cgetnext(char **, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:21: note: insert '_Nonnull' if the pointer should never be null +int cgetnext(char **, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:29: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetnext(char **, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:29: note: insert '_Nullable' if the pointer may be null +int cgetnext(char **, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:29: note: insert '_Nonnull' if the pointer should never be null +int cgetnext(char **, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetnext(char **, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:30: note: insert '_Nullable' if the pointer may be null +int cgetnext(char **, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:30: note: insert '_Nonnull' if the pointer should never be null +int cgetnext(char **, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetnum(char *, const char *, long *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:19: note: insert '_Nullable' if the pointer may be null +int cgetnum(char *, const char *, long *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:19: note: insert '_Nonnull' if the pointer should never be null +int cgetnum(char *, const char *, long *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:33: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetnum(char *, const char *, long *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:33: note: insert '_Nullable' if the pointer may be null +int cgetnum(char *, const char *, long *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:33: note: insert '_Nonnull' if the pointer should never be null +int cgetnum(char *, const char *, long *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetnum(char *, const char *, long *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:41: note: insert '_Nullable' if the pointer may be null +int cgetnum(char *, const char *, long *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:41: note: insert '_Nonnull' if the pointer should never be null +int cgetnum(char *, const char *, long *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:293:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetset(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:293:25: note: insert '_Nullable' if the pointer may be null +int cgetset(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:293:25: note: insert '_Nonnull' if the pointer should never be null +int cgetset(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetstr(char *, const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:19: note: insert '_Nullable' if the pointer may be null +int cgetstr(char *, const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:19: note: insert '_Nonnull' if the pointer should never be null +int cgetstr(char *, const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:33: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetstr(char *, const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:33: note: insert '_Nullable' if the pointer may be null +int cgetstr(char *, const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:33: note: insert '_Nonnull' if the pointer should never be null +int cgetstr(char *, const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetstr(char *, const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:41: note: insert '_Nullable' if the pointer may be null +int cgetstr(char *, const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:41: note: insert '_Nonnull' if the pointer should never be null +int cgetstr(char *, const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:42: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetstr(char *, const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:42: note: insert '_Nullable' if the pointer may be null +int cgetstr(char *, const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:42: note: insert '_Nonnull' if the pointer should never be null +int cgetstr(char *, const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetustr(char *, const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:20: note: insert '_Nullable' if the pointer may be null +int cgetustr(char *, const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:20: note: insert '_Nonnull' if the pointer should never be null +int cgetustr(char *, const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:34: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetustr(char *, const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:34: note: insert '_Nullable' if the pointer may be null +int cgetustr(char *, const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:34: note: insert '_Nonnull' if the pointer should never be null +int cgetustr(char *, const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:42: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetustr(char *, const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:42: note: insert '_Nullable' if the pointer may be null +int cgetustr(char *, const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:42: note: insert '_Nonnull' if the pointer should never be null +int cgetustr(char *, const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int cgetustr(char *, const char *, char **); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:43: note: insert '_Nullable' if the pointer may be null +int cgetustr(char *, const char *, char **); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:43: note: insert '_Nonnull' if the pointer should never be null +int cgetustr(char *, const char *, char **); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:298:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *devname(dev_t, mode_t); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:298:6: note: insert '_Nullable' if the pointer may be null +char *devname(dev_t, mode_t); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:298:6: note: insert '_Nonnull' if the pointer should never be null +char *devname(dev_t, mode_t); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *devname_r(dev_t, mode_t, char *buf, int len); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:37: note: insert '_Nullable' if the pointer may be null +char *devname_r(dev_t, mode_t, char *buf, int len); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:37: note: insert '_Nonnull' if the pointer should never be null +char *devname_r(dev_t, mode_t, char *buf, int len); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *devname_r(dev_t, mode_t, char *buf, int len); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:6: note: insert '_Nullable' if the pointer may be null +char *devname_r(dev_t, mode_t, char *buf, int len); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:6: note: insert '_Nonnull' if the pointer should never be null +char *devname_r(dev_t, mode_t, char *buf, int len); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *getbsize(int *, long *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:20: note: insert '_Nullable' if the pointer may be null +char *getbsize(int *, long *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:20: note: insert '_Nonnull' if the pointer should never be null +char *getbsize(int *, long *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:28: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *getbsize(int *, long *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:28: note: insert '_Nullable' if the pointer may be null +char *getbsize(int *, long *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:28: note: insert '_Nonnull' if the pointer should never be null +char *getbsize(int *, long *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +char *getbsize(int *, long *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:6: note: insert '_Nullable' if the pointer may be null +char *getbsize(int *, long *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:6: note: insert '_Nonnull' if the pointer should never be null +char *getbsize(int *, long *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:301:24: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] +int getloadavg(double [], int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:301:24: note: insert '_Nullable' if the array parameter may be null +int getloadavg(double [], int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:301:24: note: insert '_Nonnull' if the array parameter should never be null +int getloadavg(double [], int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:303:2: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + *getprogname(void); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:303:2: note: insert '_Nullable' if the pointer may be null + *getprogname(void); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:303:2: note: insert '_Nonnull' if the pointer should never be null + *getprogname(void); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:304:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void setprogname(const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:304:30: note: insert '_Nullable' if the pointer may be null +void setprogname(const char *); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:304:30: note: insert '_Nonnull' if the pointer should never be null +void setprogname(const char *); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:314:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int heapsort(void *__base, size_t __nel, size_t __width, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:314:20: note: insert '_Nullable' if the pointer may be null +int heapsort(void *__base, size_t __nel, size_t __width, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:314:20: note: insert '_Nonnull' if the pointer should never be null +int heapsort(void *__base, size_t __nel, size_t __width, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:43: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:43: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:57: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:57: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:57: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:321:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int mergesort(void *__base, size_t __nel, size_t __width, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:321:21: note: insert '_Nullable' if the pointer may be null +int mergesort(void *__base, size_t __nel, size_t __width, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:321:21: note: insert '_Nonnull' if the pointer should never be null +int mergesort(void *__base, size_t __nel, size_t __width, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:43: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:43: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:57: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:57: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:57: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:328:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void psort(void *__base, size_t __nel, size_t __width, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:328:18: note: insert '_Nullable' if the pointer may be null +void psort(void *__base, size_t __nel, size_t __width, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:328:18: note: insert '_Nonnull' if the pointer should never be null +void psort(void *__base, size_t __nel, size_t __width, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(const void *, const void *)) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:43: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(const void *, const void *)) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:43: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(const void *, const void *)) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:57: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(const void *, const void *)) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:57: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(const void *, const void *)) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:57: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(const void *, const void *)) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void psort_r(void *__base, size_t __nel, size_t __width, void *, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:20: note: insert '_Nullable' if the pointer may be null +void psort_r(void *__base, size_t __nel, size_t __width, void *, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:20: note: insert '_Nonnull' if the pointer should never be null +void psort_r(void *__base, size_t __nel, size_t __width, void *, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:64: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void psort_r(void *__base, size_t __nel, size_t __width, void *, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:64: note: insert '_Nullable' if the pointer may be null +void psort_r(void *__base, size_t __nel, size_t __width, void *, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:64: note: insert '_Nonnull' if the pointer should never be null +void psort_r(void *__base, size_t __nel, size_t __width, void *, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(void *, const void *, const void *)) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:37: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(void *, const void *, const void *)) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:37: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(void *, const void *, const void *)) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:51: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(void *, const void *, const void *)) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:51: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(void *, const void *, const void *)) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:51: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(void *, const void *, const void *)) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:65: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(void *, const void *, const void *)) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:65: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(void *, const void *, const void *)) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:65: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(void *, const void *, const void *)) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void qsort_r(void *__base, size_t __nel, size_t __width, void *, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:20: note: insert '_Nullable' if the pointer may be null +void qsort_r(void *__base, size_t __nel, size_t __width, void *, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:20: note: insert '_Nonnull' if the pointer should never be null +void qsort_r(void *__base, size_t __nel, size_t __width, void *, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:64: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void qsort_r(void *__base, size_t __nel, size_t __width, void *, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:64: note: insert '_Nullable' if the pointer may be null +void qsort_r(void *__base, size_t __nel, size_t __width, void *, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:64: note: insert '_Nonnull' if the pointer should never be null +void qsort_r(void *__base, size_t __nel, size_t __width, void *, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(void *, const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:37: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(void *, const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:37: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(void *, const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:51: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(void *, const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:51: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(void *, const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:51: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(void *, const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:65: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nonnull __compar)(void *, const void *, const void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:65: note: insert '_Nullable' if the pointer may be null + int (* _Nonnull __compar)(void *, const void *, const void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:65: note: insert '_Nonnull' if the pointer should never be null + int (* _Nonnull __compar)(void *, const void *, const void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:36: note: insert '_Nullable' if the pointer may be null +int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:36: note: insert '_Nonnull' if the pointer should never be null +int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:37: note: insert '_Nullable' if the pointer may be null +int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:37: note: insert '_Nonnull' if the pointer should never be null +int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:77: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:77: note: insert '_Nullable' if the pointer may be null +int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:77: note: insert '_Nonnull' if the pointer should never be null +int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:348:24: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int rpmatch(const char *) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:348:24: note: insert '_Nullable' if the pointer may be null +int rpmatch(const char *) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:348:24: note: insert '_Nonnull' if the pointer should never be null +int rpmatch(const char *) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:37: note: insert '_Nullable' if the pointer may be null +int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:37: note: insert '_Nonnull' if the pointer should never be null +int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:38: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:38: note: insert '_Nullable' if the pointer may be null +int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:38: note: insert '_Nonnull' if the pointer should never be null +int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:78: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:78: note: insert '_Nullable' if the pointer may be null +int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:78: note: insert '_Nonnull' if the pointer should never be null +int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void *reallocf(void *__ptr, size_t __size) __alloc_size(2); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:21: note: insert '_Nullable' if the pointer may be null +void *reallocf(void *__ptr, size_t __size) __alloc_size(2); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:21: note: insert '_Nonnull' if the pointer should never be null +void *reallocf(void *__ptr, size_t __size) __alloc_size(2); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +void *reallocf(void *__ptr, size_t __size) __alloc_size(2); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:6: note: insert '_Nullable' if the pointer may be null +void *reallocf(void *__ptr, size_t __size) __alloc_size(2); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:6: note: insert '_Nonnull' if the pointer should never be null +void *reallocf(void *__ptr, size_t __size) __alloc_size(2); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:22: note: insert '_Nullable' if the pointer may be null + strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:22: note: insert '_Nonnull' if the pointer should never be null + strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:84: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:84: note: insert '_Nullable' if the pointer may be null + strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:84: note: insert '_Nonnull' if the pointer should never be null + strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:85: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:85: note: insert '_Nullable' if the pointer may be null + strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:85: note: insert '_Nonnull' if the pointer should never be null + strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoq(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:21: note: insert '_Nullable' if the pointer may be null + strtoq(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:21: note: insert '_Nonnull' if the pointer should never be null + strtoq(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:34: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoq(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:34: note: insert '_Nullable' if the pointer may be null + strtoq(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:34: note: insert '_Nonnull' if the pointer should never be null + strtoq(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtoq(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:35: note: insert '_Nullable' if the pointer may be null + strtoq(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:35: note: insert '_Nonnull' if the pointer should never be null + strtoq(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtouq(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:22: note: insert '_Nullable' if the pointer may be null + strtouq(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:22: note: insert '_Nonnull' if the pointer should never be null + strtouq(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtouq(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:35: note: insert '_Nullable' if the pointer may be null + strtouq(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:35: note: insert '_Nonnull' if the pointer should never be null + strtouq(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + strtouq(const char *__str, char **__endptr, int __base); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:36: note: insert '_Nullable' if the pointer may be null + strtouq(const char *__str, char **__endptr, int __base); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:36: note: insert '_Nonnull' if the pointer should never be null + strtouq(const char *__str, char **__endptr, int __base); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:364:13: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +extern char *suboptarg; /* getsubopt(3) external variable */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:364:13: note: insert '_Nullable' if the pointer may be null +extern char *suboptarg; /* getsubopt(3) external variable */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:364:13: note: insert '_Nonnull' if the pointer should never be null +extern char *suboptarg; /* getsubopt(3) external variable */ + ^ + _Nonnull +In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:99: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:9: +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:70:7: warning: incompatible redeclaration of library function 'memchr' [-Wincompatible-library-redeclaration] +void *memchr(const void *__s, int __c, size_t __n); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:70:7: note: 'memchr' is a builtin with type 'void *(const void *, int, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:71:6: warning: incompatible redeclaration of library function 'memcmp' [-Wincompatible-library-redeclaration] +int memcmp(const void *__s1, const void *__s2, size_t __n); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:71:6: note: 'memcmp' is a builtin with type 'int (const void *, const void *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:72:7: warning: incompatible redeclaration of library function 'memcpy' [-Wincompatible-library-redeclaration] +void *memcpy(void *__dst, const void *__src, size_t __n); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:72:7: note: 'memcpy' is a builtin with type 'void *(void *, const void *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:73:7: warning: incompatible redeclaration of library function 'memmove' [-Wincompatible-library-redeclaration] +void *memmove(void *__dst, const void *__src, size_t __len); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:73:7: note: 'memmove' is a builtin with type 'void *(void *, const void *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:75:7: warning: incompatible redeclaration of library function 'strcat' [-Wincompatible-library-redeclaration] +char *strcat(char *__s1, const char *__s2); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:75:7: note: 'strcat' is a builtin with type 'char *(char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:76:7: warning: incompatible redeclaration of library function 'strchr' [-Wincompatible-library-redeclaration] +char *strchr(const char *__s, int __c); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:76:7: note: 'strchr' is a builtin with type 'char *(const char *, int)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:77:6: warning: incompatible redeclaration of library function 'strcmp' [-Wincompatible-library-redeclaration] +int strcmp(const char *__s1, const char *__s2); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:77:6: note: 'strcmp' is a builtin with type 'int (const char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:79:7: warning: incompatible redeclaration of library function 'strcpy' [-Wincompatible-library-redeclaration] +char *strcpy(char *__dst, const char *__src); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:79:7: note: 'strcpy' is a builtin with type 'char *(char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:80:9: warning: incompatible redeclaration of library function 'strcspn' [-Wincompatible-library-redeclaration] +size_t strcspn(const char *__s, const char *__charset); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:80:9: note: 'strcspn' is a builtin with type 'unsigned long long (const char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:82:9: warning: incompatible redeclaration of library function 'strlen' [-Wincompatible-library-redeclaration] +size_t strlen(const char *__s); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:82:9: note: 'strlen' is a builtin with type 'unsigned long long (const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:83:7: warning: incompatible redeclaration of library function 'strncat' [-Wincompatible-library-redeclaration] +char *strncat(char *__s1, const char *__s2, size_t __n); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:83:7: note: 'strncat' is a builtin with type 'char *(char *, const char *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:84:6: warning: incompatible redeclaration of library function 'strncmp' [-Wincompatible-library-redeclaration] +int strncmp(const char *__s1, const char *__s2, size_t __n); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:84:6: note: 'strncmp' is a builtin with type 'int (const char *, const char *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:85:7: warning: incompatible redeclaration of library function 'strncpy' [-Wincompatible-library-redeclaration] +char *strncpy(char *__dst, const char *__src, size_t __n); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:85:7: note: 'strncpy' is a builtin with type 'char *(char *, const char *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:86:7: warning: incompatible redeclaration of library function 'strpbrk' [-Wincompatible-library-redeclaration] +char *strpbrk(const char *__s, const char *__charset); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:86:7: note: 'strpbrk' is a builtin with type 'char *(const char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:87:7: warning: incompatible redeclaration of library function 'strrchr' [-Wincompatible-library-redeclaration] +char *strrchr(const char *__s, int __c); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:87:7: note: 'strrchr' is a builtin with type 'char *(const char *, int)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:88:9: warning: incompatible redeclaration of library function 'strspn' [-Wincompatible-library-redeclaration] +size_t strspn(const char *__s, const char *__charset); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:88:9: note: 'strspn' is a builtin with type 'unsigned long long (const char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:89:7: warning: incompatible redeclaration of library function 'strstr' [-Wincompatible-library-redeclaration] +char *strstr(const char *__big, const char *__little); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:89:7: note: 'strstr' is a builtin with type 'char *(const char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:90:7: warning: incompatible redeclaration of library function 'strtok' [-Wincompatible-library-redeclaration] +char *strtok(char *__str, const char *__sep); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:90:7: note: 'strtok' is a builtin with type 'char *(char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:91:9: warning: incompatible redeclaration of library function 'strxfrm' [-Wincompatible-library-redeclaration] +size_t strxfrm(char *__s1, const char *__s2, size_t __n); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:91:9: note: 'strxfrm' is a builtin with type 'unsigned long long (char *, const char *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:117:7: warning: incompatible redeclaration of library function 'strdup' [-Wincompatible-library-redeclaration] +char *strdup(const char *__s1); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:117:7: note: 'strdup' is a builtin with type 'char *(const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:118:7: warning: incompatible redeclaration of library function 'memccpy' [-Wincompatible-library-redeclaration] +void *memccpy(void *__dst, const void *__src, int __c, size_t __n); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:118:7: note: 'memccpy' is a builtin with type 'void *(void *, const void *, int, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:130:7: warning: incompatible redeclaration of library function 'stpcpy' [-Wincompatible-library-redeclaration] +char *stpcpy(char *__dst, const char *__src); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:130:7: note: 'stpcpy' is a builtin with type 'char *(char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:131:10: warning: incompatible redeclaration of library function 'stpncpy' [-Wincompatible-library-redeclaration] +char *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:131:10: note: 'stpncpy' is a builtin with type 'char *(char *, const char *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:132:7: warning: incompatible redeclaration of library function 'strndup' [-Wincompatible-library-redeclaration] +char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:132:7: note: 'strndup' is a builtin with type 'char *(const char *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:162:9: warning: incompatible redeclaration of library function 'strlcat' [-Wincompatible-library-redeclaration] +size_t strlcat(char *__dst, const char *__source, size_t __size); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:162:9: note: 'strlcat' is a builtin with type 'unsigned long long (char *, const char *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:163:9: warning: incompatible redeclaration of library function 'strlcpy' [-Wincompatible-library-redeclaration] +size_t strlcpy(char *__dst, const char *__source, size_t __size); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:163:9: note: 'strlcpy' is a builtin with type 'unsigned long long (char *, const char *, unsigned long long)' +In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:99: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:9: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:184: +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:70:6: warning: incompatible redeclaration of library function 'bcmp' [-Wincompatible-library-redeclaration] +int bcmp(const void *, const void *, size_t) __POSIX_C_DEPRECATED(200112L); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:70:6: note: 'bcmp' is a builtin with type 'int (const void *, const void *, unsigned long long)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:73:7: warning: incompatible redeclaration of library function 'index' [-Wincompatible-library-redeclaration] +char *index(const char *, int) __POSIX_C_DEPRECATED(200112L); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:73:7: note: 'index' is a builtin with type 'char *(const char *, int)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:74:7: warning: incompatible redeclaration of library function 'rindex' [-Wincompatible-library-redeclaration] +char *rindex(const char *, int) __POSIX_C_DEPRECATED(200112L); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:74:7: note: 'rindex' is a builtin with type 'char *(const char *, int)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:78:6: warning: incompatible redeclaration of library function 'strcasecmp' [-Wincompatible-library-redeclaration] +int strcasecmp(const char *, const char *); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:78:6: note: 'strcasecmp' is a builtin with type 'int (const char *, const char *)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:79:6: warning: incompatible redeclaration of library function 'strncasecmp' [-Wincompatible-library-redeclaration] +int strncasecmp(const char *, const char *, size_t); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:79:6: note: 'strncasecmp' is a builtin with type 'int (const char *, const char *, unsigned long long)' +In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:99: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:10: +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/assert.h:71:6: warning: incompatible redeclaration of library function 'printf' [-Wincompatible-library-redeclaration] +int printf(const char * __restrict, ...); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/assert.h:71:6: note: 'printf' is a builtin with type 'int (const char *, ...)' +In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: +In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:99: +/Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:696:17: warning: cast to smaller integer type 'intptr_t' (aka 'long') from 'void *' [-Wvoid-pointer-to-int-cast] + out->of.i32 = (intptr_t)p; + ^~~~~~~~~~~ +/Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:705:10: warning: cast to 'void *' from smaller integer type 'intptr_t' (aka 'long') [-Wint-to-void-pointer-cast] + return (void*)(intptr_t)val->of.i32; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:3: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:64: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:75: +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/_types/_va_list.h:32:26: error: typedef redefinition with different types ('__darwin_va_list' (aka 'void *') vs '__builtin_va_list') +typedef __darwin_va_list va_list; + ^ +/Users/fs/.wasmer/utils/zig/0.11.0-dev.116+41b7e40d7/lib/include/stdarg.h:14:27: note: previous definition is here +typedef __builtin_va_list va_list; + ^ +In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:3: +In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:64: +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + unsigned char *_base; + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:93:16: note: insert '_Nullable' if the pointer may be null + unsigned char *_base; + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:93:16: note: insert '_Nonnull' if the pointer should never be null + unsigned char *_base; + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nullable _read) (void *, char *, int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:32: note: insert '_Nullable' if the pointer may be null + int (* _Nullable _read) (void *, char *, int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:32: note: insert '_Nonnull' if the pointer should never be null + int (* _Nullable _read) (void *, char *, int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:40: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nullable _read) (void *, char *, int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:40: note: insert '_Nullable' if the pointer may be null + int (* _Nullable _read) (void *, char *, int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:40: note: insert '_Nonnull' if the pointer should never be null + int (* _Nullable _read) (void *, char *, int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:139:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + fpos_t (* _Nullable _seek) (void *, fpos_t, int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:139:35: note: insert '_Nullable' if the pointer may be null + fpos_t (* _Nullable _seek) (void *, fpos_t, int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:139:35: note: insert '_Nonnull' if the pointer should never be null + fpos_t (* _Nullable _seek) (void *, fpos_t, int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nullable _write)(void *, const char *, int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:32: note: insert '_Nullable' if the pointer may be null + int (* _Nullable _write)(void *, const char *, int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:32: note: insert '_Nonnull' if the pointer should never be null + int (* _Nullable _write)(void *, const char *, int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nullable _write)(void *, const char *, int); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:46: note: insert '_Nullable' if the pointer may be null + int (* _Nullable _write)(void *, const char *, int); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:46: note: insert '_Nonnull' if the pointer should never be null + int (* _Nullable _write)(void *, const char *, int); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:144:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + struct __sFILEX *_extra; /* additions to FILE to not break ABI */ + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:144:18: note: insert '_Nullable' if the pointer may be null + struct __sFILEX *_extra; /* additions to FILE to not break ABI */ + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:144:18: note: insert '_Nonnull' if the pointer should never be null + struct __sFILEX *_extra; /* additions to FILE to not break ABI */ + ^ + _Nonnull +In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:3: +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:153:7: warning: incompatible redeclaration of library function 'fopen' [-Wincompatible-library-redeclaration] +FILE *fopen(const char * __restrict __filename, const char * __restrict __mode) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fopen)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:153:7: note: 'fopen' is a builtin with type 'FILE *(const char *, const char *)' (aka 'struct __sFILE *(const char *, const char *)') +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:155:6: warning: incompatible redeclaration of library function 'fprintf' [-Wincompatible-library-redeclaration] +int fprintf(FILE * __restrict, const char * __restrict, ...) __printflike(2, 3); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:155:6: note: 'fprintf' is a builtin with type 'int (FILE *, const char *, ...)' (aka 'int (struct __sFILE *, const char *, ...)') +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:161:6: warning: incompatible redeclaration of library function 'fscanf' [-Wincompatible-library-redeclaration] +int fscanf(FILE * __restrict, const char * __restrict, ...) __scanflike(2, 3); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:161:6: note: 'fscanf' is a builtin with type 'int (FILE *restrict, const char *restrict, ...)' (aka 'int (struct __sFILE *restrict, const char *restrict, ...)') +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:165:9: warning: incompatible redeclaration of library function 'fwrite' [-Wincompatible-library-redeclaration] +size_t fwrite(const void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:165:9: note: 'fwrite' is a builtin with type 'unsigned long long (const void *, unsigned long long, unsigned long long, FILE *)' (aka 'unsigned long long (const void *, unsigned long long, unsigned long long, struct __sFILE *)') +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:182:6: warning: incompatible redeclaration of library function 'scanf' [-Wincompatible-library-redeclaration] +int scanf(const char * __restrict, ...) __scanflike(1, 2); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:182:6: note: 'scanf' is a builtin with type 'int (const char *restrict, ...)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:190:6: warning: incompatible redeclaration of library function 'sprintf' [-Wincompatible-library-redeclaration] +int sprintf(char * __restrict, const char * __restrict, ...) __printflike(2, 3); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:190:6: note: 'sprintf' is a builtin with type 'int (char *, const char *, ...)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:192:6: warning: incompatible redeclaration of library function 'sscanf' [-Wincompatible-library-redeclaration] +int sscanf(const char * __restrict, const char * __restrict, ...) __scanflike(2, 3); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:192:6: note: 'sscanf' is a builtin with type 'int (const char *restrict, const char *restrict, ...)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:202:6: warning: incompatible redeclaration of library function 'vfprintf' [-Wincompatible-library-redeclaration] +int vfprintf(FILE * __restrict, const char * __restrict, va_list) __printflike(2, 0); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:202:6: note: 'vfprintf' is a builtin with type 'int (FILE *, const char *, __builtin_va_list)' (aka 'int (struct __sFILE *, const char *, char *)') +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:203:6: warning: incompatible redeclaration of library function 'vprintf' [-Wincompatible-library-redeclaration] +int vprintf(const char * __restrict, va_list) __printflike(1, 0); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:203:6: note: 'vprintf' is a builtin with type 'int (const char *, __builtin_va_list)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:209:6: warning: incompatible redeclaration of library function 'vsprintf' [-Wincompatible-library-redeclaration] +int vsprintf(char * __restrict, const char * __restrict, va_list) __printflike(2, 0); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:209:6: note: 'vsprintf' is a builtin with type 'int (char *, const char *, __builtin_va_list)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:344:6: warning: incompatible redeclaration of library function 'snprintf' [-Wincompatible-library-redeclaration] +int snprintf(char * __restrict __str, size_t __size, const char * __restrict __format, ...) __printflike(3, 4); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:344:6: note: 'snprintf' is a builtin with type 'int (char *, unsigned long long, const char *, ...)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:345:6: warning: incompatible redeclaration of library function 'vfscanf' [-Wincompatible-library-redeclaration] +int vfscanf(FILE * __restrict __stream, const char * __restrict __format, va_list) __scanflike(2, 0); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:345:6: note: 'vfscanf' is a builtin with type 'int (FILE *restrict, const char *restrict, __builtin_va_list)' (aka 'int (struct __sFILE *restrict, const char *restrict, char *)') +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:346:6: warning: incompatible redeclaration of library function 'vscanf' [-Wincompatible-library-redeclaration] +int vscanf(const char * __restrict __format, va_list) __scanflike(1, 0); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:346:6: note: 'vscanf' is a builtin with type 'int (const char *restrict, __builtin_va_list)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:347:6: warning: incompatible redeclaration of library function 'vsnprintf' [-Wincompatible-library-redeclaration] +int vsnprintf(char * __restrict __str, size_t __size, const char * __restrict __format, va_list) __printflike(3, 0); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:347:6: note: 'vsnprintf' is a builtin with type 'int (char *, unsigned long long, const char *, __builtin_va_list)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:348:6: warning: incompatible redeclaration of library function 'vsscanf' [-Wincompatible-library-redeclaration] +int vsscanf(const char * __restrict __str, const char * __restrict __format, va_list) __scanflike(2, 0); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:348:6: note: 'vsscanf' is a builtin with type 'int (const char *restrict, const char *restrict, __builtin_va_list)' +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:67:13: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +extern FILE *__stdinp; + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:67:13: note: insert '_Nullable' if the pointer may be null +extern FILE *__stdinp; + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:67:13: note: insert '_Nonnull' if the pointer should never be null +extern FILE *__stdinp; + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nullable)(void *, const char *, int), + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:41: note: insert '_Nullable' if the pointer may be null + int (* _Nullable)(void *, const char *, int), + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:41: note: insert '_Nonnull' if the pointer should never be null + int (* _Nullable)(void *, const char *, int), + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:55: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nullable)(void *, const char *, int), + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:55: note: insert '_Nullable' if the pointer may be null + int (* _Nullable)(void *, const char *, int), + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:55: note: insert '_Nonnull' if the pointer should never be null + int (* _Nullable)(void *, const char *, int), + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:396:44: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + fpos_t (* _Nullable)(void *, fpos_t, int), + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:396:44: note: insert '_Nullable' if the pointer may be null + fpos_t (* _Nullable)(void *, fpos_t, int), + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:396:44: note: insert '_Nonnull' if the pointer should never be null + fpos_t (* _Nullable)(void *, fpos_t, int), + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:397:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] + int (* _Nullable)(void *)); + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:397:41: note: insert '_Nullable' if the pointer may be null + int (* _Nullable)(void *)); + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:397:41: note: insert '_Nonnull' if the pointer should never be null + int (* _Nullable)(void *)); + ^ + _Nonnull +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:393:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] +FILE *funopen(const void *, + ^ +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:393:6: note: insert '_Nullable' if the pointer may be null +FILE *funopen(const void *, + ^ + _Nullable +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:393:6: note: insert '_Nonnull' if the pointer should never be null +FILE *funopen(const void *, + ^ + _Nonnull +/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:18:95: warning: attribute declaration must precede definition [-Wignored-attributes] +extern wasm_module_t* wasmer_object_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_object_module_new"); + ^ +/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/testpirita.pwDPW63XBkiG/atoms/python/static_defs.h:16084:16: note: previous definition is here +wasm_module_t* wasmer_object_module_new(wasm_store_t* store, const char* wasm_name) { + ^ +234 warnings and 3 errors generated. + + +thread 'test_cross_compile_python_windows' panicked at 'assertion failed: `(left == right)` + left: `1`, + right: `0`: the test returned a termination value with a non-zero status code (1) which indicates a failure', /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/test/src/lib.rs:186:5 +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +error: test failed, to rerun pass '-p wasmer-integration-tests-cli --test run' From 6f3b35668d266de077d5d15f57898c2e21811af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 11 Nov 2022 18:21:32 +0100 Subject: [PATCH 03/34] Debug issue on MacOS --- lib/cli/src/commands/create_exe.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index bf0796fbfe3..42d44feb4f4 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -258,6 +258,7 @@ impl CreateExe { )?; } } else { + println!("compiling non-pirita with object format {object_format:?}"); match object_format { ObjectFormat::Serialized => { let module = Module::from_file(&store, &wasm_module_path) @@ -569,6 +570,8 @@ impl CreateExe { .arg(&zig_triple) .arg(&format!("-L{}", libwasmer_path.display())) .arg(&format!("-l:{}", lib_filename)) + // xcrun --show-sdk-path + // .arg("-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include") .arg(&format!("-I{}", include_dir.display())) .arg(&format!("-I{}", header_code_path.display())); if !zig_triple.contains("windows") { @@ -580,6 +583,8 @@ impl CreateExe { cmd_mut = cmd_mut.arg(volume_obj.clone()); } + println!("cmd (zig cc): {:?}", cmd_mut); + cmd_mut .arg("-o") .arg(&output_path) From 97b1834c9c929edc8e2e72d05f461c5ffa8c0eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 11 Nov 2022 21:01:41 +0100 Subject: [PATCH 04/34] Fix target on Linux --- lib/cli/src/commands/create_exe.rs | 1 + out.txt | 2238 ---------------------------- tests/integration/cli/tests/run.rs | 2 +- 3 files changed, 2 insertions(+), 2239 deletions(-) delete mode 100644 out.txt diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 42d44feb4f4..e307d492ca2 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -572,6 +572,7 @@ impl CreateExe { .arg(&format!("-l:{}", lib_filename)) // xcrun --show-sdk-path // .arg("-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include") + .arg("-I/usr/include") .arg(&format!("-I{}", include_dir.display())) .arg(&format!("-I{}", header_code_path.display())); if !zig_triple.contains("windows") { diff --git a/out.txt b/out.txt deleted file mode 100644 index 5b50493a449..00000000000 --- a/out.txt +++ /dev/null @@ -1,2238 +0,0 @@ -warning: /Users/fs/Development/wasmer/lib/cli/Cargo.toml: unused manifest key: dependencies.reqwest.feature - Compiling wasmer-integration-tests-cli v3.0.0-rc.2 (/Users/fs/Development/wasmer/tests/integration/cli) - Finished test [unoptimized + debuginfo] target(s) in 0.77s - Running tests/run.rs (target/debug/deps/run-e931b5c818de0003) -Error: linking failed with: stdout: Downloading https://github.com/wasmerio/wasmer/releases/download/v3.0.0-rc.2/wasmer-windows-amd64.tar.gz to wasmer-windows-amd64.tar.gz -Library Path: /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/lib/wasmer.lib -Using zig binary: /Users/fs/.wasmer/utils/zig/0.11.0-dev.116+41b7e40d7/zig -Using zig target triple: x86_64-windows-none -cmd (zig cc): "/Users/fs/.wasmer/utils/zig/0.11.0-dev.116+41b7e40d7/zig" "cc" "-target" "x86_64-windows-none" -"-L/Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/lib" - "-l:wasmer.lib" "-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include" # - "-I/Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include" - "-I/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/testpirita.pwDPW63XBkiG/atoms/python" - "/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/testpirita.pwDPW63XBkiG/atoms/python.o" - "/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c" - "/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/link-exe-from-dir.dUU4cQpvxksO/volumes.o" - - -stderr: Cached tarball to cache path `/Users/fs/.wasmer/cache/wasmer-windows-amd64.tar.gz`. -error: In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:97: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdint.h:52: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/_types.h:32: -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/cdefs.h:81:2: warning: "Unsupported compiler detected" [-W#warnings] -#warning "Unsupported compiler detected" - ^ -In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:98: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:66: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/wait.h:186: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/machine/endian.h:35: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/i386/endian.h:101: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/_endian.h:130: -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/libkern/_OSByteOrder.h:97:1: error: unknown type name '__DARWIN_OS_INLINE' -__DARWIN_OS_INLINE -^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/libkern/_OSByteOrder.h:98:9: error: expected ';' after top level declarator -uint16_t - ^ - ; -In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:98: -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:134:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -double atof(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:134:25: note: insert '_Nullable' if the pointer may be null -double atof(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:134:25: note: insert '_Nonnull' if the pointer should never be null -double atof(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:135:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int atoi(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:135:22: note: insert '_Nullable' if the pointer may be null -int atoi(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:135:22: note: insert '_Nonnull' if the pointer should never be null -int atoi(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:136:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -long atol(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:136:23: note: insert '_Nullable' if the pointer may be null -long atol(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:136:23: note: insert '_Nonnull' if the pointer should never be null -long atol(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:139:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - atoll(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:139:20: note: insert '_Nullable' if the pointer may be null - atoll(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:139:20: note: insert '_Nonnull' if the pointer should never be null - atoll(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:26: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void *bsearch(const void *__key, const void *__base, size_t __nel, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:26: note: insert '_Nullable' if the pointer may be null -void *bsearch(const void *__key, const void *__base, size_t __nel, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:26: note: insert '_Nonnull' if the pointer should never be null -void *bsearch(const void *__key, const void *__base, size_t __nel, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:45: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void *bsearch(const void *__key, const void *__base, size_t __nel, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:45: note: insert '_Nullable' if the pointer may be null -void *bsearch(const void *__key, const void *__base, size_t __nel, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:45: note: insert '_Nonnull' if the pointer should never be null -void *bsearch(const void *__key, const void *__base, size_t __nel, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:59: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - size_t __width, int (* _Nonnull __compar)(const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:59: note: insert '_Nullable' if the pointer may be null - size_t __width, int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:59: note: insert '_Nonnull' if the pointer should never be null - size_t __width, int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:73: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - size_t __width, int (* _Nonnull __compar)(const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:73: note: insert '_Nullable' if the pointer may be null - size_t __width, int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:142:73: note: insert '_Nonnull' if the pointer should never be null - size_t __width, int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void *bsearch(const void *__key, const void *__base, size_t __nel, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:6: note: insert '_Nullable' if the pointer may be null -void *bsearch(const void *__key, const void *__base, size_t __nel, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:141:6: note: insert '_Nonnull' if the pointer should never be null -void *bsearch(const void *__key, const void *__base, size_t __nel, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *getenv(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:25: note: insert '_Nullable' if the pointer may be null -char *getenv(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:25: note: insert '_Nonnull' if the pointer should never be null -char *getenv(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *getenv(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:6: note: insert '_Nullable' if the pointer may be null -char *getenv(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:147:6: note: insert '_Nonnull' if the pointer should never be null -char *getenv(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:156:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int mblen(const char *__s, size_t __n); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:156:23: note: insert '_Nullable' if the pointer may be null -int mblen(const char *__s, size_t __n); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:156:23: note: insert '_Nonnull' if the pointer should never be null -int mblen(const char *__s, size_t __n); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:26: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:26: note: insert '_Nullable' if the pointer may be null -size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:26: note: insert '_Nonnull' if the pointer should never be null -size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:52: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:52: note: insert '_Nullable' if the pointer may be null -size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:157:52: note: insert '_Nonnull' if the pointer should never be null -size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:21: note: insert '_Nullable' if the pointer may be null -int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:21: note: insert '_Nonnull' if the pointer should never be null -int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:46: note: insert '_Nullable' if the pointer may be null -int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:158:46: note: insert '_Nonnull' if the pointer should never be null -int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:160:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void qsort(void *__base, size_t __nel, size_t __width, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:160:18: note: insert '_Nullable' if the pointer may be null -void qsort(void *__base, size_t __nel, size_t __width, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:160:18: note: insert '_Nonnull' if the pointer should never be null -void qsort(void *__base, size_t __nel, size_t __width, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:43: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:43: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:57: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:57: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:161:57: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:27: note: insert '_Nullable' if the pointer may be null -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:27: note: insert '_Nonnull' if the pointer should never be null -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:35: note: insert '_Nullable' if the pointer may be null -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:35: note: insert '_Nonnull' if the pointer should never be null -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:36: note: insert '_Nullable' if the pointer may be null -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:36: note: insert '_Nonnull' if the pointer should never be null -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:9: warning: incompatible redeclaration of library function 'strtod' [-Wincompatible-library-redeclaration] -double strtod(const char *, char **) __DARWIN_ALIAS(strtod); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:165:9: note: 'strtod' is a builtin with type 'double (const char *, char **)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:26: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:26: note: insert '_Nullable' if the pointer may be null -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:26: note: insert '_Nonnull' if the pointer should never be null -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:34: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:34: note: insert '_Nullable' if the pointer may be null -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:34: note: insert '_Nonnull' if the pointer should never be null -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:35: note: insert '_Nullable' if the pointer may be null -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:35: note: insert '_Nonnull' if the pointer should never be null -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:8: warning: incompatible redeclaration of library function 'strtof' [-Wincompatible-library-redeclaration] -float strtof(const char *, char **) __DARWIN_ALIAS(strtof); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:166:8: note: 'strtof' is a builtin with type 'float (const char *, char **)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -long strtol(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:25: note: insert '_Nullable' if the pointer may be null -long strtol(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:25: note: insert '_Nonnull' if the pointer should never be null -long strtol(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:38: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -long strtol(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:38: note: insert '_Nullable' if the pointer may be null -long strtol(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:38: note: insert '_Nonnull' if the pointer should never be null -long strtol(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:39: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -long strtol(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:39: note: insert '_Nullable' if the pointer may be null -long strtol(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:39: note: insert '_Nonnull' if the pointer should never be null -long strtol(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:7: warning: incompatible redeclaration of library function 'strtol' [-Wincompatible-library-redeclaration] -long strtol(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:167:7: note: 'strtol' is a builtin with type 'long (const char *, char **, int)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtold(const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:22: note: insert '_Nullable' if the pointer may be null - strtold(const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:22: note: insert '_Nonnull' if the pointer should never be null - strtold(const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtold(const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:30: note: insert '_Nullable' if the pointer may be null - strtold(const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:30: note: insert '_Nonnull' if the pointer should never be null - strtold(const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:31: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtold(const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:31: note: insert '_Nullable' if the pointer may be null - strtold(const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:31: note: insert '_Nonnull' if the pointer should never be null - strtold(const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:3: warning: incompatible redeclaration of library function 'strtold' [-Wincompatible-library-redeclaration] - strtold(const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:169:3: note: 'strtold' is a builtin with type 'long double (const char *, char **)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoll(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:22: note: insert '_Nullable' if the pointer may be null - strtoll(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:22: note: insert '_Nonnull' if the pointer should never be null - strtoll(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoll(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:35: note: insert '_Nullable' if the pointer may be null - strtoll(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:35: note: insert '_Nonnull' if the pointer should never be null - strtoll(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoll(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:36: note: insert '_Nullable' if the pointer may be null - strtoll(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:36: note: insert '_Nonnull' if the pointer should never be null - strtoll(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:3: warning: incompatible redeclaration of library function 'strtoll' [-Wincompatible-library-redeclaration] - strtoll(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:172:3: note: 'strtoll' is a builtin with type 'long long (const char *, char **, int)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoul(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:22: note: insert '_Nullable' if the pointer may be null - strtoul(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:22: note: insert '_Nonnull' if the pointer should never be null - strtoul(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoul(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:35: note: insert '_Nullable' if the pointer may be null - strtoul(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:35: note: insert '_Nonnull' if the pointer should never be null - strtoul(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoul(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:36: note: insert '_Nullable' if the pointer may be null - strtoul(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:36: note: insert '_Nonnull' if the pointer should never be null - strtoul(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:3: warning: incompatible redeclaration of library function 'strtoul' [-Wincompatible-library-redeclaration] - strtoul(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:175:3: note: 'strtoul' is a builtin with type 'unsigned long (const char *, char **, int)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoull(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:23: note: insert '_Nullable' if the pointer may be null - strtoull(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:23: note: insert '_Nonnull' if the pointer should never be null - strtoull(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoull(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:36: note: insert '_Nullable' if the pointer may be null - strtoull(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:36: note: insert '_Nonnull' if the pointer should never be null - strtoull(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoull(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:37: note: insert '_Nullable' if the pointer may be null - strtoull(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:37: note: insert '_Nonnull' if the pointer should never be null - strtoull(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:3: warning: incompatible redeclaration of library function 'strtoull' [-Wincompatible-library-redeclaration] - strtoull(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:178:3: note: 'strtoull' is a builtin with type 'unsigned long long (const char *, char **, int)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:184:24: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int system(const char *) __DARWIN_ALIAS_C(system); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:184:24: note: insert '_Nullable' if the pointer may be null -int system(const char *) __DARWIN_ALIAS_C(system); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:184:24: note: insert '_Nonnull' if the pointer should never be null -int system(const char *) __DARWIN_ALIAS_C(system); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:23: note: insert '_Nullable' if the pointer may be null -size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:23: note: insert '_Nonnull' if the pointer should never be null -size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:51: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:51: note: insert '_Nullable' if the pointer may be null -size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:187:51: note: insert '_Nonnull' if the pointer should never be null -size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:188:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int wctomb(char *, wchar_t); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:188:18: note: insert '_Nullable' if the pointer may be null -int wctomb(char *, wchar_t); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:188:18: note: insert '_Nonnull' if the pointer should never be null -int wctomb(char *, wchar_t); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:192:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -long a64l(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:192:23: note: insert '_Nullable' if the pointer may be null -long a64l(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:192:23: note: insert '_Nonnull' if the pointer should never be null -long a64l(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:29: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:29: note: insert '_Nullable' if the pointer may be null -char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:29: note: insert '_Nonnull' if the pointer should never be null -char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:46: note: insert '_Nullable' if the pointer may be null -char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:46: note: insert '_Nonnull' if the pointer should never be null -char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:6: note: insert '_Nullable' if the pointer may be null -char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:194:6: note: insert '_Nonnull' if the pointer should never be null -char *ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:195:31: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] -double erand48(unsigned short[3]); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:195:31: note: insert '_Nullable' if the array parameter may be null -double erand48(unsigned short[3]); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:195:31: note: insert '_Nonnull' if the array parameter should never be null -double erand48(unsigned short[3]); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:29: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:29: note: insert '_Nullable' if the pointer may be null -char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:29: note: insert '_Nonnull' if the pointer should never be null -char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:46: note: insert '_Nullable' if the pointer may be null -char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:46: note: insert '_Nonnull' if the pointer should never be null -char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:6: note: insert '_Nullable' if the pointer may be null -char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:196:6: note: insert '_Nonnull' if the pointer should never be null -char *fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *gcvt(double, int, char *); /* LEGACY */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:30: note: insert '_Nullable' if the pointer may be null -char *gcvt(double, int, char *); /* LEGACY */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:30: note: insert '_Nonnull' if the pointer should never be null -char *gcvt(double, int, char *); /* LEGACY */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *gcvt(double, int, char *); /* LEGACY */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:6: note: insert '_Nullable' if the pointer may be null -char *gcvt(double, int, char *); /* LEGACY */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:197:6: note: insert '_Nonnull' if the pointer should never be null -char *gcvt(double, int, char *); /* LEGACY */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int getsubopt(char **, char * const *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:21: note: insert '_Nullable' if the pointer may be null -int getsubopt(char **, char * const *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:21: note: insert '_Nonnull' if the pointer should never be null -int getsubopt(char **, char * const *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int getsubopt(char **, char * const *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:22: note: insert '_Nullable' if the pointer may be null -int getsubopt(char **, char * const *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:22: note: insert '_Nonnull' if the pointer should never be null -int getsubopt(char **, char * const *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int getsubopt(char **, char * const *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:30: note: insert '_Nullable' if the pointer may be null -int getsubopt(char **, char * const *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:30: note: insert '_Nonnull' if the pointer should never be null -int getsubopt(char **, char * const *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:38: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int getsubopt(char **, char * const *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:38: note: insert '_Nullable' if the pointer may be null -int getsubopt(char **, char * const *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:38: note: insert '_Nonnull' if the pointer should never be null -int getsubopt(char **, char * const *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int getsubopt(char **, char * const *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:46: note: insert '_Nullable' if the pointer may be null -int getsubopt(char **, char * const *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:46: note: insert '_Nonnull' if the pointer should never be null -int getsubopt(char **, char * const *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:47: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int getsubopt(char **, char * const *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:47: note: insert '_Nullable' if the pointer may be null -int getsubopt(char **, char * const *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:198:47: note: insert '_Nonnull' if the pointer should never be null -int getsubopt(char **, char * const *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:32: note: insert '_Nullable' if the pointer may be null -char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:32: note: insert '_Nonnull' if the pointer should never be null -char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:6: note: insert '_Nullable' if the pointer may be null -char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:201:6: note: insert '_Nonnull' if the pointer should never be null -char *initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:205:29: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] -long jrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:205:29: note: insert '_Nullable' if the array parameter may be null -long jrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:205:29: note: insert '_Nonnull' if the array parameter should never be null -long jrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:206:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *l64a(long); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:206:6: note: insert '_Nullable' if the pointer may be null -char *l64a(long); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:206:6: note: insert '_Nonnull' if the pointer should never be null -char *l64a(long); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:207:29: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] -void lcong48(unsigned short[7]); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:207:29: note: insert '_Nullable' if the array parameter may be null -void lcong48(unsigned short[7]); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:207:29: note: insert '_Nonnull' if the array parameter should never be null -void lcong48(unsigned short[7]); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *mktemp(char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:19: note: insert '_Nullable' if the pointer may be null -char *mktemp(char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:19: note: insert '_Nonnull' if the pointer should never be null -char *mktemp(char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *mktemp(char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:6: note: insert '_Nullable' if the pointer may be null -char *mktemp(char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:212:6: note: insert '_Nonnull' if the pointer should never be null -char *mktemp(char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:213:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int mkstemp(char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:213:19: note: insert '_Nullable' if the pointer may be null -int mkstemp(char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:213:19: note: insert '_Nonnull' if the pointer should never be null -int mkstemp(char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:215:29: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] -long nrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:215:29: note: insert '_Nullable' if the array parameter may be null -long nrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:215:29: note: insert '_Nonnull' if the array parameter should never be null -long nrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:217:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *ptsname(int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:217:6: note: insert '_Nullable' if the pointer may be null -char *ptsname(int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:217:6: note: insert '_Nonnull' if the pointer should never be null -char *ptsname(int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:220:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int ptsname_r(int fildes, char *buffer, size_t buflen) __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:220:32: note: insert '_Nullable' if the pointer may be null -int ptsname_r(int fildes, char *buffer, size_t buflen) __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:220:32: note: insert '_Nonnull' if the pointer should never be null -int ptsname_r(int fildes, char *buffer, size_t buflen) __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:223:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int putenv(char *) __DARWIN_ALIAS(putenv); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:223:18: note: insert '_Nullable' if the pointer may be null -int putenv(char *) __DARWIN_ALIAS(putenv); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:223:18: note: insert '_Nonnull' if the pointer should never be null -int putenv(char *) __DARWIN_ALIAS(putenv); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:225:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int rand_r(unsigned *) __swift_unavailable("Use arc4random instead."); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:225:22: note: insert '_Nullable' if the pointer may be null -int rand_r(unsigned *) __swift_unavailable("Use arc4random instead."); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:225:22: note: insert '_Nonnull' if the pointer should never be null -int rand_r(unsigned *) __swift_unavailable("Use arc4random instead."); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:27: note: insert '_Nullable' if the pointer may be null -char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:27: note: insert '_Nonnull' if the pointer should never be null -char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:46: note: insert '_Nullable' if the pointer may be null -char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:46: note: insert '_Nonnull' if the pointer should never be null -char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:6: note: insert '_Nullable' if the pointer may be null -char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:227:6: note: insert '_Nonnull' if the pointer should never be null -char *realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:24: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] - *seed48(unsigned short[3]); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:24: note: insert '_Nullable' if the array parameter may be null - *seed48(unsigned short[3]); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:24: note: insert '_Nonnull' if the array parameter should never be null - *seed48(unsigned short[3]); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:2: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - *seed48(unsigned short[3]); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:2: note: insert '_Nullable' if the pointer may be null - *seed48(unsigned short[3]); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:232:2: note: insert '_Nonnull' if the pointer should never be null - *seed48(unsigned short[3]); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:24: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:24: note: insert '_Nullable' if the pointer may be null -int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:24: note: insert '_Nonnull' if the pointer should never be null -int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:45: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:45: note: insert '_Nullable' if the pointer may be null -int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:233:45: note: insert '_Nonnull' if the pointer should never be null -int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:235:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void setkey(const char *) __DARWIN_ALIAS(setkey); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:235:25: note: insert '_Nullable' if the pointer may be null -void setkey(const char *) __DARWIN_ALIAS(setkey); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:235:25: note: insert '_Nonnull' if the pointer should never be null -void setkey(const char *) __DARWIN_ALIAS(setkey); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *setstate(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:27: note: insert '_Nullable' if the pointer may be null -char *setstate(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:27: note: insert '_Nonnull' if the pointer should never be null -char *setstate(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *setstate(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:6: note: insert '_Nullable' if the pointer may be null -char *setstate(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:239:6: note: insert '_Nonnull' if the pointer should never be null -char *setstate(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:248:26: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int unsetenv(const char *) __DARWIN_ALIAS(unsetenv); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:248:26: note: insert '_Nullable' if the pointer may be null -int unsetenv(const char *) __DARWIN_ALIAS(unsetenv); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:248:26: note: insert '_Nonnull' if the pointer should never be null -int unsetenv(const char *) __DARWIN_ALIAS(unsetenv); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:261:42: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void arc4random_addrandom(unsigned char * /*dat*/, int /*datlen*/) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:261:42: note: insert '_Nullable' if the pointer may be null -void arc4random_addrandom(unsigned char * /*dat*/, int /*datlen*/) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:261:42: note: insert '_Nonnull' if the pointer should never be null -void arc4random_addrandom(unsigned char * /*dat*/, int /*datlen*/) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:266:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:266:27: note: insert '_Nullable' if the pointer may be null -void arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:266:27: note: insert '_Nonnull' if the pointer should never be null -void arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *cgetcap(char *, const char *, int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:20: note: insert '_Nullable' if the pointer may be null -char *cgetcap(char *, const char *, int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:20: note: insert '_Nonnull' if the pointer should never be null -char *cgetcap(char *, const char *, int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:34: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *cgetcap(char *, const char *, int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:34: note: insert '_Nullable' if the pointer may be null -char *cgetcap(char *, const char *, int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:34: note: insert '_Nonnull' if the pointer should never be null -char *cgetcap(char *, const char *, int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *cgetcap(char *, const char *, int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:6: note: insert '_Nullable' if the pointer may be null -char *cgetcap(char *, const char *, int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:286:6: note: insert '_Nonnull' if the pointer should never be null -char *cgetcap(char *, const char *, int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetent(char **, char **, const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:19: note: insert '_Nullable' if the pointer may be null -int cgetent(char **, char **, const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:19: note: insert '_Nonnull' if the pointer should never be null -int cgetent(char **, char **, const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetent(char **, char **, const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:20: note: insert '_Nullable' if the pointer may be null -int cgetent(char **, char **, const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:20: note: insert '_Nonnull' if the pointer should never be null -int cgetent(char **, char **, const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:28: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetent(char **, char **, const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:28: note: insert '_Nullable' if the pointer may be null -int cgetent(char **, char **, const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:28: note: insert '_Nonnull' if the pointer should never be null -int cgetent(char **, char **, const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:29: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetent(char **, char **, const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:29: note: insert '_Nullable' if the pointer may be null -int cgetent(char **, char **, const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:29: note: insert '_Nonnull' if the pointer should never be null -int cgetent(char **, char **, const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetent(char **, char **, const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:43: note: insert '_Nullable' if the pointer may be null -int cgetent(char **, char **, const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:288:43: note: insert '_Nonnull' if the pointer should never be null -int cgetent(char **, char **, const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetfirst(char **, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:21: note: insert '_Nullable' if the pointer may be null -int cgetfirst(char **, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:21: note: insert '_Nonnull' if the pointer should never be null -int cgetfirst(char **, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetfirst(char **, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:22: note: insert '_Nullable' if the pointer may be null -int cgetfirst(char **, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:22: note: insert '_Nonnull' if the pointer should never be null -int cgetfirst(char **, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetfirst(char **, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:30: note: insert '_Nullable' if the pointer may be null -int cgetfirst(char **, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:30: note: insert '_Nonnull' if the pointer should never be null -int cgetfirst(char **, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:31: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetfirst(char **, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:31: note: insert '_Nullable' if the pointer may be null -int cgetfirst(char **, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:289:31: note: insert '_Nonnull' if the pointer should never be null -int cgetfirst(char **, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:27: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetmatch(const char *, const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:27: note: insert '_Nullable' if the pointer may be null -int cgetmatch(const char *, const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:27: note: insert '_Nonnull' if the pointer should never be null -int cgetmatch(const char *, const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetmatch(const char *, const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:41: note: insert '_Nullable' if the pointer may be null -int cgetmatch(const char *, const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:290:41: note: insert '_Nonnull' if the pointer should never be null -int cgetmatch(const char *, const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetnext(char **, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:20: note: insert '_Nullable' if the pointer may be null -int cgetnext(char **, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:20: note: insert '_Nonnull' if the pointer should never be null -int cgetnext(char **, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetnext(char **, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:21: note: insert '_Nullable' if the pointer may be null -int cgetnext(char **, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:21: note: insert '_Nonnull' if the pointer should never be null -int cgetnext(char **, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:29: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetnext(char **, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:29: note: insert '_Nullable' if the pointer may be null -int cgetnext(char **, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:29: note: insert '_Nonnull' if the pointer should never be null -int cgetnext(char **, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetnext(char **, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:30: note: insert '_Nullable' if the pointer may be null -int cgetnext(char **, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:291:30: note: insert '_Nonnull' if the pointer should never be null -int cgetnext(char **, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetnum(char *, const char *, long *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:19: note: insert '_Nullable' if the pointer may be null -int cgetnum(char *, const char *, long *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:19: note: insert '_Nonnull' if the pointer should never be null -int cgetnum(char *, const char *, long *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:33: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetnum(char *, const char *, long *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:33: note: insert '_Nullable' if the pointer may be null -int cgetnum(char *, const char *, long *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:33: note: insert '_Nonnull' if the pointer should never be null -int cgetnum(char *, const char *, long *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetnum(char *, const char *, long *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:41: note: insert '_Nullable' if the pointer may be null -int cgetnum(char *, const char *, long *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:292:41: note: insert '_Nonnull' if the pointer should never be null -int cgetnum(char *, const char *, long *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:293:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetset(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:293:25: note: insert '_Nullable' if the pointer may be null -int cgetset(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:293:25: note: insert '_Nonnull' if the pointer should never be null -int cgetset(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetstr(char *, const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:19: note: insert '_Nullable' if the pointer may be null -int cgetstr(char *, const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:19: note: insert '_Nonnull' if the pointer should never be null -int cgetstr(char *, const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:33: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetstr(char *, const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:33: note: insert '_Nullable' if the pointer may be null -int cgetstr(char *, const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:33: note: insert '_Nonnull' if the pointer should never be null -int cgetstr(char *, const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetstr(char *, const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:41: note: insert '_Nullable' if the pointer may be null -int cgetstr(char *, const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:41: note: insert '_Nonnull' if the pointer should never be null -int cgetstr(char *, const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:42: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetstr(char *, const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:42: note: insert '_Nullable' if the pointer may be null -int cgetstr(char *, const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:294:42: note: insert '_Nonnull' if the pointer should never be null -int cgetstr(char *, const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetustr(char *, const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:20: note: insert '_Nullable' if the pointer may be null -int cgetustr(char *, const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:20: note: insert '_Nonnull' if the pointer should never be null -int cgetustr(char *, const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:34: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetustr(char *, const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:34: note: insert '_Nullable' if the pointer may be null -int cgetustr(char *, const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:34: note: insert '_Nonnull' if the pointer should never be null -int cgetustr(char *, const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:42: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetustr(char *, const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:42: note: insert '_Nullable' if the pointer may be null -int cgetustr(char *, const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:42: note: insert '_Nonnull' if the pointer should never be null -int cgetustr(char *, const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int cgetustr(char *, const char *, char **); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:43: note: insert '_Nullable' if the pointer may be null -int cgetustr(char *, const char *, char **); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:295:43: note: insert '_Nonnull' if the pointer should never be null -int cgetustr(char *, const char *, char **); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:298:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *devname(dev_t, mode_t); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:298:6: note: insert '_Nullable' if the pointer may be null -char *devname(dev_t, mode_t); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:298:6: note: insert '_Nonnull' if the pointer should never be null -char *devname(dev_t, mode_t); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *devname_r(dev_t, mode_t, char *buf, int len); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:37: note: insert '_Nullable' if the pointer may be null -char *devname_r(dev_t, mode_t, char *buf, int len); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:37: note: insert '_Nonnull' if the pointer should never be null -char *devname_r(dev_t, mode_t, char *buf, int len); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *devname_r(dev_t, mode_t, char *buf, int len); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:6: note: insert '_Nullable' if the pointer may be null -char *devname_r(dev_t, mode_t, char *buf, int len); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:299:6: note: insert '_Nonnull' if the pointer should never be null -char *devname_r(dev_t, mode_t, char *buf, int len); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *getbsize(int *, long *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:20: note: insert '_Nullable' if the pointer may be null -char *getbsize(int *, long *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:20: note: insert '_Nonnull' if the pointer should never be null -char *getbsize(int *, long *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:28: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *getbsize(int *, long *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:28: note: insert '_Nullable' if the pointer may be null -char *getbsize(int *, long *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:28: note: insert '_Nonnull' if the pointer should never be null -char *getbsize(int *, long *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -char *getbsize(int *, long *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:6: note: insert '_Nullable' if the pointer may be null -char *getbsize(int *, long *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:300:6: note: insert '_Nonnull' if the pointer should never be null -char *getbsize(int *, long *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:301:24: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness-on-arrays] -int getloadavg(double [], int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:301:24: note: insert '_Nullable' if the array parameter may be null -int getloadavg(double [], int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:301:24: note: insert '_Nonnull' if the array parameter should never be null -int getloadavg(double [], int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:303:2: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - *getprogname(void); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:303:2: note: insert '_Nullable' if the pointer may be null - *getprogname(void); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:303:2: note: insert '_Nonnull' if the pointer should never be null - *getprogname(void); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:304:30: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void setprogname(const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:304:30: note: insert '_Nullable' if the pointer may be null -void setprogname(const char *); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:304:30: note: insert '_Nonnull' if the pointer should never be null -void setprogname(const char *); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:314:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int heapsort(void *__base, size_t __nel, size_t __width, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:314:20: note: insert '_Nullable' if the pointer may be null -int heapsort(void *__base, size_t __nel, size_t __width, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:314:20: note: insert '_Nonnull' if the pointer should never be null -int heapsort(void *__base, size_t __nel, size_t __width, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:43: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:43: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:57: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:57: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:315:57: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:321:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int mergesort(void *__base, size_t __nel, size_t __width, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:321:21: note: insert '_Nullable' if the pointer may be null -int mergesort(void *__base, size_t __nel, size_t __width, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:321:21: note: insert '_Nonnull' if the pointer should never be null -int mergesort(void *__base, size_t __nel, size_t __width, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:43: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:43: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:57: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:57: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:322:57: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:328:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void psort(void *__base, size_t __nel, size_t __width, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:328:18: note: insert '_Nullable' if the pointer may be null -void psort(void *__base, size_t __nel, size_t __width, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:328:18: note: insert '_Nonnull' if the pointer should never be null -void psort(void *__base, size_t __nel, size_t __width, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(const void *, const void *)) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:43: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(const void *, const void *)) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:43: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(const void *, const void *)) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:57: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(const void *, const void *)) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:57: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(const void *, const void *)) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:329:57: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(const void *, const void *)) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void psort_r(void *__base, size_t __nel, size_t __width, void *, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:20: note: insert '_Nullable' if the pointer may be null -void psort_r(void *__base, size_t __nel, size_t __width, void *, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:20: note: insert '_Nonnull' if the pointer should never be null -void psort_r(void *__base, size_t __nel, size_t __width, void *, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:64: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void psort_r(void *__base, size_t __nel, size_t __width, void *, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:64: note: insert '_Nullable' if the pointer may be null -void psort_r(void *__base, size_t __nel, size_t __width, void *, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:336:64: note: insert '_Nonnull' if the pointer should never be null -void psort_r(void *__base, size_t __nel, size_t __width, void *, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(void *, const void *, const void *)) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:37: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(void *, const void *, const void *)) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:37: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(void *, const void *, const void *)) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:51: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(void *, const void *, const void *)) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:51: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(void *, const void *, const void *)) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:51: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(void *, const void *, const void *)) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:65: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(void *, const void *, const void *)) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:65: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(void *, const void *, const void *)) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:337:65: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(void *, const void *, const void *)) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:20: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void qsort_r(void *__base, size_t __nel, size_t __width, void *, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:20: note: insert '_Nullable' if the pointer may be null -void qsort_r(void *__base, size_t __nel, size_t __width, void *, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:20: note: insert '_Nonnull' if the pointer should never be null -void qsort_r(void *__base, size_t __nel, size_t __width, void *, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:64: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void qsort_r(void *__base, size_t __nel, size_t __width, void *, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:64: note: insert '_Nullable' if the pointer may be null -void qsort_r(void *__base, size_t __nel, size_t __width, void *, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:344:64: note: insert '_Nonnull' if the pointer should never be null -void qsort_r(void *__base, size_t __nel, size_t __width, void *, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(void *, const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:37: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(void *, const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:37: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(void *, const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:51: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(void *, const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:51: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(void *, const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:51: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(void *, const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:65: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nonnull __compar)(void *, const void *, const void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:65: note: insert '_Nullable' if the pointer may be null - int (* _Nonnull __compar)(void *, const void *, const void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:345:65: note: insert '_Nonnull' if the pointer should never be null - int (* _Nonnull __compar)(void *, const void *, const void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:36: note: insert '_Nullable' if the pointer may be null -int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:36: note: insert '_Nonnull' if the pointer should never be null -int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:37: note: insert '_Nullable' if the pointer may be null -int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:37: note: insert '_Nonnull' if the pointer should never be null -int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:77: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:77: note: insert '_Nullable' if the pointer may be null -int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:346:77: note: insert '_Nonnull' if the pointer should never be null -int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:348:24: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int rpmatch(const char *) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:348:24: note: insert '_Nullable' if the pointer may be null -int rpmatch(const char *) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:348:24: note: insert '_Nonnull' if the pointer should never be null -int rpmatch(const char *) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:37: note: insert '_Nullable' if the pointer may be null -int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:37: note: insert '_Nonnull' if the pointer should never be null -int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:38: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:38: note: insert '_Nullable' if the pointer may be null -int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:38: note: insert '_Nonnull' if the pointer should never be null -int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:78: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:78: note: insert '_Nullable' if the pointer may be null -int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:350:78: note: insert '_Nonnull' if the pointer should never be null -int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void *reallocf(void *__ptr, size_t __size) __alloc_size(2); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:21: note: insert '_Nullable' if the pointer may be null -void *reallocf(void *__ptr, size_t __size) __alloc_size(2); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:21: note: insert '_Nonnull' if the pointer should never be null -void *reallocf(void *__ptr, size_t __size) __alloc_size(2); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -void *reallocf(void *__ptr, size_t __size) __alloc_size(2); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:6: note: insert '_Nullable' if the pointer may be null -void *reallocf(void *__ptr, size_t __size) __alloc_size(2); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:354:6: note: insert '_Nonnull' if the pointer should never be null -void *reallocf(void *__ptr, size_t __size) __alloc_size(2); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:22: note: insert '_Nullable' if the pointer may be null - strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:22: note: insert '_Nonnull' if the pointer should never be null - strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:84: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:84: note: insert '_Nullable' if the pointer may be null - strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:84: note: insert '_Nonnull' if the pointer should never be null - strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:85: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:85: note: insert '_Nullable' if the pointer may be null - strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:356:85: note: insert '_Nonnull' if the pointer should never be null - strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoq(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:21: note: insert '_Nullable' if the pointer may be null - strtoq(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:21: note: insert '_Nonnull' if the pointer should never be null - strtoq(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:34: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoq(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:34: note: insert '_Nullable' if the pointer may be null - strtoq(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:34: note: insert '_Nonnull' if the pointer should never be null - strtoq(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtoq(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:35: note: insert '_Nullable' if the pointer may be null - strtoq(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:360:35: note: insert '_Nonnull' if the pointer should never be null - strtoq(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:22: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtouq(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:22: note: insert '_Nullable' if the pointer may be null - strtouq(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:22: note: insert '_Nonnull' if the pointer should never be null - strtouq(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtouq(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:35: note: insert '_Nullable' if the pointer may be null - strtouq(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:35: note: insert '_Nonnull' if the pointer should never be null - strtouq(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - strtouq(const char *__str, char **__endptr, int __base); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:36: note: insert '_Nullable' if the pointer may be null - strtouq(const char *__str, char **__endptr, int __base); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:362:36: note: insert '_Nonnull' if the pointer should never be null - strtouq(const char *__str, char **__endptr, int __base); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:364:13: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -extern char *suboptarg; /* getsubopt(3) external variable */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:364:13: note: insert '_Nullable' if the pointer may be null -extern char *suboptarg; /* getsubopt(3) external variable */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:364:13: note: insert '_Nonnull' if the pointer should never be null -extern char *suboptarg; /* getsubopt(3) external variable */ - ^ - _Nonnull -In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:99: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:9: -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:70:7: warning: incompatible redeclaration of library function 'memchr' [-Wincompatible-library-redeclaration] -void *memchr(const void *__s, int __c, size_t __n); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:70:7: note: 'memchr' is a builtin with type 'void *(const void *, int, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:71:6: warning: incompatible redeclaration of library function 'memcmp' [-Wincompatible-library-redeclaration] -int memcmp(const void *__s1, const void *__s2, size_t __n); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:71:6: note: 'memcmp' is a builtin with type 'int (const void *, const void *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:72:7: warning: incompatible redeclaration of library function 'memcpy' [-Wincompatible-library-redeclaration] -void *memcpy(void *__dst, const void *__src, size_t __n); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:72:7: note: 'memcpy' is a builtin with type 'void *(void *, const void *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:73:7: warning: incompatible redeclaration of library function 'memmove' [-Wincompatible-library-redeclaration] -void *memmove(void *__dst, const void *__src, size_t __len); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:73:7: note: 'memmove' is a builtin with type 'void *(void *, const void *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:75:7: warning: incompatible redeclaration of library function 'strcat' [-Wincompatible-library-redeclaration] -char *strcat(char *__s1, const char *__s2); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:75:7: note: 'strcat' is a builtin with type 'char *(char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:76:7: warning: incompatible redeclaration of library function 'strchr' [-Wincompatible-library-redeclaration] -char *strchr(const char *__s, int __c); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:76:7: note: 'strchr' is a builtin with type 'char *(const char *, int)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:77:6: warning: incompatible redeclaration of library function 'strcmp' [-Wincompatible-library-redeclaration] -int strcmp(const char *__s1, const char *__s2); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:77:6: note: 'strcmp' is a builtin with type 'int (const char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:79:7: warning: incompatible redeclaration of library function 'strcpy' [-Wincompatible-library-redeclaration] -char *strcpy(char *__dst, const char *__src); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:79:7: note: 'strcpy' is a builtin with type 'char *(char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:80:9: warning: incompatible redeclaration of library function 'strcspn' [-Wincompatible-library-redeclaration] -size_t strcspn(const char *__s, const char *__charset); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:80:9: note: 'strcspn' is a builtin with type 'unsigned long long (const char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:82:9: warning: incompatible redeclaration of library function 'strlen' [-Wincompatible-library-redeclaration] -size_t strlen(const char *__s); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:82:9: note: 'strlen' is a builtin with type 'unsigned long long (const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:83:7: warning: incompatible redeclaration of library function 'strncat' [-Wincompatible-library-redeclaration] -char *strncat(char *__s1, const char *__s2, size_t __n); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:83:7: note: 'strncat' is a builtin with type 'char *(char *, const char *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:84:6: warning: incompatible redeclaration of library function 'strncmp' [-Wincompatible-library-redeclaration] -int strncmp(const char *__s1, const char *__s2, size_t __n); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:84:6: note: 'strncmp' is a builtin with type 'int (const char *, const char *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:85:7: warning: incompatible redeclaration of library function 'strncpy' [-Wincompatible-library-redeclaration] -char *strncpy(char *__dst, const char *__src, size_t __n); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:85:7: note: 'strncpy' is a builtin with type 'char *(char *, const char *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:86:7: warning: incompatible redeclaration of library function 'strpbrk' [-Wincompatible-library-redeclaration] -char *strpbrk(const char *__s, const char *__charset); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:86:7: note: 'strpbrk' is a builtin with type 'char *(const char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:87:7: warning: incompatible redeclaration of library function 'strrchr' [-Wincompatible-library-redeclaration] -char *strrchr(const char *__s, int __c); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:87:7: note: 'strrchr' is a builtin with type 'char *(const char *, int)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:88:9: warning: incompatible redeclaration of library function 'strspn' [-Wincompatible-library-redeclaration] -size_t strspn(const char *__s, const char *__charset); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:88:9: note: 'strspn' is a builtin with type 'unsigned long long (const char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:89:7: warning: incompatible redeclaration of library function 'strstr' [-Wincompatible-library-redeclaration] -char *strstr(const char *__big, const char *__little); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:89:7: note: 'strstr' is a builtin with type 'char *(const char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:90:7: warning: incompatible redeclaration of library function 'strtok' [-Wincompatible-library-redeclaration] -char *strtok(char *__str, const char *__sep); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:90:7: note: 'strtok' is a builtin with type 'char *(char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:91:9: warning: incompatible redeclaration of library function 'strxfrm' [-Wincompatible-library-redeclaration] -size_t strxfrm(char *__s1, const char *__s2, size_t __n); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:91:9: note: 'strxfrm' is a builtin with type 'unsigned long long (char *, const char *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:117:7: warning: incompatible redeclaration of library function 'strdup' [-Wincompatible-library-redeclaration] -char *strdup(const char *__s1); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:117:7: note: 'strdup' is a builtin with type 'char *(const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:118:7: warning: incompatible redeclaration of library function 'memccpy' [-Wincompatible-library-redeclaration] -void *memccpy(void *__dst, const void *__src, int __c, size_t __n); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:118:7: note: 'memccpy' is a builtin with type 'void *(void *, const void *, int, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:130:7: warning: incompatible redeclaration of library function 'stpcpy' [-Wincompatible-library-redeclaration] -char *stpcpy(char *__dst, const char *__src); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:130:7: note: 'stpcpy' is a builtin with type 'char *(char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:131:10: warning: incompatible redeclaration of library function 'stpncpy' [-Wincompatible-library-redeclaration] -char *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:131:10: note: 'stpncpy' is a builtin with type 'char *(char *, const char *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:132:7: warning: incompatible redeclaration of library function 'strndup' [-Wincompatible-library-redeclaration] -char *strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:132:7: note: 'strndup' is a builtin with type 'char *(const char *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:162:9: warning: incompatible redeclaration of library function 'strlcat' [-Wincompatible-library-redeclaration] -size_t strlcat(char *__dst, const char *__source, size_t __size); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:162:9: note: 'strlcat' is a builtin with type 'unsigned long long (char *, const char *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:163:9: warning: incompatible redeclaration of library function 'strlcpy' [-Wincompatible-library-redeclaration] -size_t strlcpy(char *__dst, const char *__source, size_t __size); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:163:9: note: 'strlcpy' is a builtin with type 'unsigned long long (char *, const char *, unsigned long long)' -In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:99: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:9: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/string.h:184: -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:70:6: warning: incompatible redeclaration of library function 'bcmp' [-Wincompatible-library-redeclaration] -int bcmp(const void *, const void *, size_t) __POSIX_C_DEPRECATED(200112L); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:70:6: note: 'bcmp' is a builtin with type 'int (const void *, const void *, unsigned long long)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:73:7: warning: incompatible redeclaration of library function 'index' [-Wincompatible-library-redeclaration] -char *index(const char *, int) __POSIX_C_DEPRECATED(200112L); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:73:7: note: 'index' is a builtin with type 'char *(const char *, int)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:74:7: warning: incompatible redeclaration of library function 'rindex' [-Wincompatible-library-redeclaration] -char *rindex(const char *, int) __POSIX_C_DEPRECATED(200112L); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:74:7: note: 'rindex' is a builtin with type 'char *(const char *, int)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:78:6: warning: incompatible redeclaration of library function 'strcasecmp' [-Wincompatible-library-redeclaration] -int strcasecmp(const char *, const char *); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:78:6: note: 'strcasecmp' is a builtin with type 'int (const char *, const char *)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:79:6: warning: incompatible redeclaration of library function 'strncasecmp' [-Wincompatible-library-redeclaration] -int strncasecmp(const char *, const char *, size_t); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/strings.h:79:6: note: 'strncasecmp' is a builtin with type 'int (const char *, const char *, unsigned long long)' -In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:99: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:10: -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/assert.h:71:6: warning: incompatible redeclaration of library function 'printf' [-Wincompatible-library-redeclaration] -int printf(const char * __restrict, ...); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/assert.h:71:6: note: 'printf' is a builtin with type 'int (const char *, ...)' -In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:1: -In file included from /Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasmer.h:99: -/Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:696:17: warning: cast to smaller integer type 'intptr_t' (aka 'long') from 'void *' [-Wvoid-pointer-to-int-cast] - out->of.i32 = (intptr_t)p; - ^~~~~~~~~~~ -/Users/fs/Development/wasmer/tests/integration/cli/wasmer-windows-amd64/include/wasm.h:705:10: warning: cast to 'void *' from smaller integer type 'intptr_t' (aka 'long') [-Wint-to-void-pointer-cast] - return (void*)(intptr_t)val->of.i32; - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:3: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:64: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:75: -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/_types/_va_list.h:32:26: error: typedef redefinition with different types ('__darwin_va_list' (aka 'void *') vs '__builtin_va_list') -typedef __darwin_va_list va_list; - ^ -/Users/fs/.wasmer/utils/zig/0.11.0-dev.116+41b7e40d7/lib/include/stdarg.h:14:27: note: previous definition is here -typedef __builtin_va_list va_list; - ^ -In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:3: -In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:64: -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - unsigned char *_base; - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:93:16: note: insert '_Nullable' if the pointer may be null - unsigned char *_base; - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:93:16: note: insert '_Nonnull' if the pointer should never be null - unsigned char *_base; - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nullable _read) (void *, char *, int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:32: note: insert '_Nullable' if the pointer may be null - int (* _Nullable _read) (void *, char *, int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:32: note: insert '_Nonnull' if the pointer should never be null - int (* _Nullable _read) (void *, char *, int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:40: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nullable _read) (void *, char *, int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:40: note: insert '_Nullable' if the pointer may be null - int (* _Nullable _read) (void *, char *, int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:138:40: note: insert '_Nonnull' if the pointer should never be null - int (* _Nullable _read) (void *, char *, int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:139:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - fpos_t (* _Nullable _seek) (void *, fpos_t, int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:139:35: note: insert '_Nullable' if the pointer may be null - fpos_t (* _Nullable _seek) (void *, fpos_t, int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:139:35: note: insert '_Nonnull' if the pointer should never be null - fpos_t (* _Nullable _seek) (void *, fpos_t, int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nullable _write)(void *, const char *, int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:32: note: insert '_Nullable' if the pointer may be null - int (* _Nullable _write)(void *, const char *, int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:32: note: insert '_Nonnull' if the pointer should never be null - int (* _Nullable _write)(void *, const char *, int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nullable _write)(void *, const char *, int); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:46: note: insert '_Nullable' if the pointer may be null - int (* _Nullable _write)(void *, const char *, int); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:140:46: note: insert '_Nonnull' if the pointer should never be null - int (* _Nullable _write)(void *, const char *, int); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:144:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - struct __sFILEX *_extra; /* additions to FILE to not break ABI */ - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:144:18: note: insert '_Nullable' if the pointer may be null - struct __sFILEX *_extra; /* additions to FILE to not break ABI */ - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/_stdio.h:144:18: note: insert '_Nonnull' if the pointer should never be null - struct __sFILEX *_extra; /* additions to FILE to not break ABI */ - ^ - _Nonnull -In file included from /var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:3: -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:153:7: warning: incompatible redeclaration of library function 'fopen' [-Wincompatible-library-redeclaration] -FILE *fopen(const char * __restrict __filename, const char * __restrict __mode) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fopen)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:153:7: note: 'fopen' is a builtin with type 'FILE *(const char *, const char *)' (aka 'struct __sFILE *(const char *, const char *)') -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:155:6: warning: incompatible redeclaration of library function 'fprintf' [-Wincompatible-library-redeclaration] -int fprintf(FILE * __restrict, const char * __restrict, ...) __printflike(2, 3); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:155:6: note: 'fprintf' is a builtin with type 'int (FILE *, const char *, ...)' (aka 'int (struct __sFILE *, const char *, ...)') -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:161:6: warning: incompatible redeclaration of library function 'fscanf' [-Wincompatible-library-redeclaration] -int fscanf(FILE * __restrict, const char * __restrict, ...) __scanflike(2, 3); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:161:6: note: 'fscanf' is a builtin with type 'int (FILE *restrict, const char *restrict, ...)' (aka 'int (struct __sFILE *restrict, const char *restrict, ...)') -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:165:9: warning: incompatible redeclaration of library function 'fwrite' [-Wincompatible-library-redeclaration] -size_t fwrite(const void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:165:9: note: 'fwrite' is a builtin with type 'unsigned long long (const void *, unsigned long long, unsigned long long, FILE *)' (aka 'unsigned long long (const void *, unsigned long long, unsigned long long, struct __sFILE *)') -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:182:6: warning: incompatible redeclaration of library function 'scanf' [-Wincompatible-library-redeclaration] -int scanf(const char * __restrict, ...) __scanflike(1, 2); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:182:6: note: 'scanf' is a builtin with type 'int (const char *restrict, ...)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:190:6: warning: incompatible redeclaration of library function 'sprintf' [-Wincompatible-library-redeclaration] -int sprintf(char * __restrict, const char * __restrict, ...) __printflike(2, 3); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:190:6: note: 'sprintf' is a builtin with type 'int (char *, const char *, ...)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:192:6: warning: incompatible redeclaration of library function 'sscanf' [-Wincompatible-library-redeclaration] -int sscanf(const char * __restrict, const char * __restrict, ...) __scanflike(2, 3); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:192:6: note: 'sscanf' is a builtin with type 'int (const char *restrict, const char *restrict, ...)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:202:6: warning: incompatible redeclaration of library function 'vfprintf' [-Wincompatible-library-redeclaration] -int vfprintf(FILE * __restrict, const char * __restrict, va_list) __printflike(2, 0); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:202:6: note: 'vfprintf' is a builtin with type 'int (FILE *, const char *, __builtin_va_list)' (aka 'int (struct __sFILE *, const char *, char *)') -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:203:6: warning: incompatible redeclaration of library function 'vprintf' [-Wincompatible-library-redeclaration] -int vprintf(const char * __restrict, va_list) __printflike(1, 0); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:203:6: note: 'vprintf' is a builtin with type 'int (const char *, __builtin_va_list)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:209:6: warning: incompatible redeclaration of library function 'vsprintf' [-Wincompatible-library-redeclaration] -int vsprintf(char * __restrict, const char * __restrict, va_list) __printflike(2, 0); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:209:6: note: 'vsprintf' is a builtin with type 'int (char *, const char *, __builtin_va_list)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:344:6: warning: incompatible redeclaration of library function 'snprintf' [-Wincompatible-library-redeclaration] -int snprintf(char * __restrict __str, size_t __size, const char * __restrict __format, ...) __printflike(3, 4); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:344:6: note: 'snprintf' is a builtin with type 'int (char *, unsigned long long, const char *, ...)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:345:6: warning: incompatible redeclaration of library function 'vfscanf' [-Wincompatible-library-redeclaration] -int vfscanf(FILE * __restrict __stream, const char * __restrict __format, va_list) __scanflike(2, 0); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:345:6: note: 'vfscanf' is a builtin with type 'int (FILE *restrict, const char *restrict, __builtin_va_list)' (aka 'int (struct __sFILE *restrict, const char *restrict, char *)') -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:346:6: warning: incompatible redeclaration of library function 'vscanf' [-Wincompatible-library-redeclaration] -int vscanf(const char * __restrict __format, va_list) __scanflike(1, 0); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:346:6: note: 'vscanf' is a builtin with type 'int (const char *restrict, __builtin_va_list)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:347:6: warning: incompatible redeclaration of library function 'vsnprintf' [-Wincompatible-library-redeclaration] -int vsnprintf(char * __restrict __str, size_t __size, const char * __restrict __format, va_list) __printflike(3, 0); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:347:6: note: 'vsnprintf' is a builtin with type 'int (char *, unsigned long long, const char *, __builtin_va_list)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:348:6: warning: incompatible redeclaration of library function 'vsscanf' [-Wincompatible-library-redeclaration] -int vsscanf(const char * __restrict __str, const char * __restrict __format, va_list) __scanflike(2, 0); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:348:6: note: 'vsscanf' is a builtin with type 'int (const char *restrict, const char *restrict, __builtin_va_list)' -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:67:13: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -extern FILE *__stdinp; - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:67:13: note: insert '_Nullable' if the pointer may be null -extern FILE *__stdinp; - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:67:13: note: insert '_Nonnull' if the pointer should never be null -extern FILE *__stdinp; - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nullable)(void *, const char *, int), - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:41: note: insert '_Nullable' if the pointer may be null - int (* _Nullable)(void *, const char *, int), - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:41: note: insert '_Nonnull' if the pointer should never be null - int (* _Nullable)(void *, const char *, int), - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:55: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nullable)(void *, const char *, int), - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:55: note: insert '_Nullable' if the pointer may be null - int (* _Nullable)(void *, const char *, int), - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:395:55: note: insert '_Nonnull' if the pointer should never be null - int (* _Nullable)(void *, const char *, int), - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:396:44: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - fpos_t (* _Nullable)(void *, fpos_t, int), - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:396:44: note: insert '_Nullable' if the pointer may be null - fpos_t (* _Nullable)(void *, fpos_t, int), - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:396:44: note: insert '_Nonnull' if the pointer should never be null - fpos_t (* _Nullable)(void *, fpos_t, int), - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:397:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] - int (* _Nullable)(void *)); - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:397:41: note: insert '_Nullable' if the pointer may be null - int (* _Nullable)(void *)); - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:397:41: note: insert '_Nonnull' if the pointer should never be null - int (* _Nullable)(void *)); - ^ - _Nonnull -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:393:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] -FILE *funopen(const void *, - ^ -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:393:6: note: insert '_Nullable' if the pointer may be null -FILE *funopen(const void *, - ^ - _Nullable -/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:393:6: note: insert '_Nonnull' if the pointer should never be null -FILE *funopen(const void *, - ^ - _Nonnull -/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/wasmer-static-compile-zig.7JvYAshNiD7Y/wasmer_main.c:18:95: warning: attribute declaration must precede definition [-Wignored-attributes] -extern wasm_module_t* wasmer_object_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_object_module_new"); - ^ -/var/folders/65/2zzy98b16xz254jccxjzqb8w0000gn/T/testpirita.pwDPW63XBkiG/atoms/python/static_defs.h:16084:16: note: previous definition is here -wasm_module_t* wasmer_object_module_new(wasm_store_t* store, const char* wasm_name) { - ^ -234 warnings and 3 errors generated. - - -thread 'test_cross_compile_python_windows' panicked at 'assertion failed: `(left == right)` - left: `1`, - right: `0`: the test returned a termination value with a non-zero status code (1) which indicates a failure', /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/test/src/lib.rs:186:5 -note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace -error: test failed, to rerun pass '-p wasmer-integration-tests-cli --test run' diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index 5d706b1fe9c..361fba82606 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -31,7 +31,7 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> { .arg("create-exe") .arg(wasi_test_python_path()) .arg("--target") - .arg("x86_64-windows") + .arg("x86_64-windows-gnu") .arg("-o") .arg(python_wasmer_path) .output()?; From cb6fda130f66a7875b77f1548d0279235d3f2b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Sat, 12 Nov 2022 13:03:03 +0100 Subject: [PATCH 05/34] Add gcc-multilib package to linux --- .github/workflows/test-sys.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-sys.yaml b/.github/workflows/test-sys.yaml index 46d4a769798..cc567bd15c0 100644 --- a/.github/workflows/test-sys.yaml +++ b/.github/workflows/test-sys.yaml @@ -103,10 +103,11 @@ jobs: sudo apt-get update -y sudo apt-get install -y --allow-downgrades libstdc++6=8.4.0-1ubuntu1~18.04 sudo apt-get install --reinstall g++-8 + sudo apt-get install -y gcc-multilib - name: Set up base deps on musl if: matrix.build == 'linux-musl-x64' run: | - apk add build-base bash musl-dev curl make libtool libffi-dev gcc automake autoconf git openssl-dev g++ + apk add build-base bash musl-dev curl make libtool libffi-dev gcc gcc-multilib automake autoconf git openssl-dev g++ - name: Install Rust uses: dtolnay/rust-toolchain@stable with: From ddf4b33d0b0266002dfbd2df0e79351f0a9ec3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Mon, 14 Nov 2022 10:53:49 +0100 Subject: [PATCH 06/34] Try to fix include paths for new wasmer-windows target --- .github/workflows/test-sys.yaml | 2 +- Cargo.lock | 1 + lib/cli/Cargo.toml | 5 +- lib/cli/src/commands/create_exe.rs | 155 +++++++++++++++++++++-------- tests/integration/cli/tests/run.rs | 3 +- 5 files changed, 120 insertions(+), 46 deletions(-) diff --git a/.github/workflows/test-sys.yaml b/.github/workflows/test-sys.yaml index cc567bd15c0..7d3f7f5b390 100644 --- a/.github/workflows/test-sys.yaml +++ b/.github/workflows/test-sys.yaml @@ -107,7 +107,7 @@ jobs: - name: Set up base deps on musl if: matrix.build == 'linux-musl-x64' run: | - apk add build-base bash musl-dev curl make libtool libffi-dev gcc gcc-multilib automake autoconf git openssl-dev g++ + apk add build-base bash musl-dev curl make libtool libffi-dev gcc build-base automake autoconf git openssl-dev g++ - name: Install Rust uses: dtolnay/rust-toolchain@stable with: diff --git a/Cargo.lock b/Cargo.lock index 7f7d22b5e6e..6cec277c8d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3951,6 +3951,7 @@ dependencies = [ "serde", "serde_json", "spinner", + "tar", "target-lexicon 0.12.4", "tempdir", "tempfile", diff --git a/lib/cli/Cargo.toml b/lib/cli/Cargo.toml index 4f18cf35864..e553b8f4135 100644 --- a/lib/cli/Cargo.toml +++ b/lib/cli/Cargo.toml @@ -68,9 +68,10 @@ regex = "1.6.0" toml = "0.5.9" url = "2.3.1" libc = { version = "^0.2", default-features = false } -nuke-dir = { version = "0.1.0", optional = true } +nuke-dir = "0.1.0" webc = { version = "3.0.1", optional = true } isatty = "0.1.9" +tar = "0.4" [build-dependencies] chrono = { version = "^0.4", default-features = false, features = [ "std", "clock" ] } @@ -98,7 +99,7 @@ wast = ["wasmer-wast"] wasi = ["wasmer-wasi"] emscripten = ["wasmer-emscripten"] wat = ["wasmer/wat"] -webc_runner = ["wasi", "wasmer-wasi/webc_runner", "wasmer-wasi/webc_runner_rt_wasi", "wasmer-wasi/webc_runner_rt_emscripten", "nuke-dir", "webc"] +webc_runner = ["wasi", "wasmer-wasi/webc_runner", "wasmer-wasi/webc_runner_rt_wasi", "wasmer-wasi/webc_runner_rt_emscripten", "webc"] compiler = [ "wasmer-compiler/translator", "wasmer-compiler/compiler", diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index e307d492ca2..f5fdfe1336f 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -8,6 +8,7 @@ use clap::Parser; use serde::{Deserialize, Serialize}; #[cfg(feature = "http")] use std::collections::BTreeMap; +use std::default; use std::env; use std::fs; use std::fs::File; @@ -563,31 +564,71 @@ impl CreateExe { include_dir.pop(); include_dir.push("include"); + let mut default_include_path = None; + + #[cfg(target_os = "macos")] + { + if let Ok(output) = Command::new("xcrun").arg("--show-sdk-path").output() { + default_include_path = + Some(String::from_utf8_lossy(&output.stdout).to_string()); + } + } + + #[cfg(target_os = "linux")] + { + default_include_path = Some("/usr/include".to_string()); + } + + #[cfg(target_os = "windows")] + { + // TODO: discover include path? + default_include_path = Some( + "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17134.0\\ucrt" + .to_string(), + ); + } + + let default_include_path = match default_include_path { + Some(s) => Some(s), + None => { + if zig_triple.contains("windows") { + return Err(anyhow::anyhow!( + "no default include path for target windows-x64" + )); + } else { + None + } + } + }; + let mut cmd = Command::new(zig_binary_path); - let mut cmd_mut: &mut Command = cmd - .arg("cc") - .arg("-target") - .arg(&zig_triple) - .arg(&format!("-L{}", libwasmer_path.display())) - .arg(&format!("-l:{}", lib_filename)) - // xcrun --show-sdk-path - // .arg("-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include") - .arg("-I/usr/include") - .arg(&format!("-I{}", include_dir.display())) - .arg(&format!("-I{}", header_code_path.display())); + cmd.arg("cc"); + cmd.arg("-target"); + cmd.arg(&zig_triple); + cmd.arg(&format!("-L{}", libwasmer_path.display())); + cmd.arg(&format!("-l:{}", lib_filename)); + + if let Some(default_include) = default_include_path { + cmd.arg(format!("-I{default_include}")); + } + + cmd.arg(&format!("-I{}", include_dir.display())); + cmd.arg(&format!("-I{}", header_code_path.display())); + if !zig_triple.contains("windows") { - cmd_mut = cmd_mut.arg("-lunwind"); + cmd.arg("-lunwind"); } - cmd_mut = cmd_mut.arg(&object_path).arg(&c_src_path); + + cmd.arg(&object_path); + cmd.arg(&c_src_path); if let Some(volume_obj) = pirita_volume_path.as_ref() { - cmd_mut = cmd_mut.arg(volume_obj.clone()); + cmd.arg(volume_obj.clone()); } - println!("cmd (zig cc): {:?}", cmd_mut); + println!("cmd (zig cc): {:?}", cmd); - cmd_mut - .arg("-o") + cmd.arg("-o") .arg(&output_path) .output() .context("Could not execute `zig`")? @@ -1363,6 +1404,8 @@ mod http_fetch { }; use std::convert::TryFrom; + use crate::commands::cache; + pub fn get_latest_release() -> Result { let mut writer = Vec::new(); let uri = Uri::try_from("https://api.github.com/repos/wasmerio/wasmer/releases").unwrap(); @@ -1404,6 +1447,7 @@ mod http_fetch { mut release: serde_json::Value, target_triple: wasmer::Triple, ) -> Result { + use std::path::Path; let check_arch = |name: &str| -> bool { match target_triple.architecture { wasmer_types::Architecture::X86_64 => { @@ -1443,10 +1487,14 @@ mod http_fetch { }; if let Ok(mut cache_path) = super::get_libwasmer_cache_path() { - match std::fs::read_dir(&cache_path).and_then(|r| { + println!("cache path: {}", cache_path.display()); + let paths = std::fs::read_dir(&cache_path).and_then(|r| { r.map(|res| res.map(|e| e.path())) .collect::, std::io::Error>>() - }) { + }); + + println!("paths: {:#?}", paths); + match paths { Ok(mut entries) => { entries.retain(|p| p.to_str().map(|p| check_arch(p)).unwrap_or(true)); entries.retain(|p| p.to_str().map(|p| check_vendor(p)).unwrap_or(true)); @@ -1454,7 +1502,13 @@ mod http_fetch { entries.retain(|p| p.to_str().map(|p| check_env(p)).unwrap_or(true)); if entries.len() > 0 { cache_path.push(&entries[0]); + println!("testing for cache path 2: {}", cache_path.display()); if cache_path.exists() { + let target = Path::new( + &format!("{}", cache_path.display()).replace(".tar.gz", ""), + ) + .to_path_buf(); + super::untar(cache_path.clone(), target)?; eprintln!( "Using cached tarball to cache path `{}`.", cache_path.display() @@ -1510,8 +1564,10 @@ mod http_fetch { .last() .unwrap_or("output") .to_string(); - let mut file = std::fs::File::create(&filename)?; - println!("Downloading {} to {}", browser_download_url, &filename); + let download_tempdir = tempdir::TempDir::new("wasmer-download")?; + let download_path = download_tempdir.path().to_path_buf().join(&filename); + let mut file = std::fs::File::create(&download_path)?; + println!("Downloading {} to {}", browser_download_url, download_path.display()); let download_thread: std::thread::JoinHandle> = std::thread::spawn(move || { let uri = Uri::try_from(browser_download_url.as_str())?; @@ -1536,13 +1592,17 @@ mod http_fetch { Ok(mut cache_path) => { cache_path.push(&filename); if !cache_path.exists() { - if let Err(err) = std::fs::copy(&filename, &cache_path) { + eprintln!("copying from {} to {}", download_path.display(), cache_path.display()); + if let Err(err) = std::fs::copy(&download_path, &cache_path) { eprintln!( "Could not store tarball to cache path `{}`: {}", cache_path.display(), err ); } else { + eprintln!("copying to /Development"); + std::fs::copy(&cache_path, "~/Development/wasmer-windows.tar.gz") + .unwrap(); eprintln!( "Cached tarball to cache path `{}`.", cache_path.display() @@ -1563,6 +1623,11 @@ mod http_fetch { match super::get_libwasmer_cache_path() { Ok(mut cache_path) => { cache_path.push(&filename); + println!( + "testing for cache path {}: {:?}", + cache_path.display(), + cache_path.exists() + ); if !cache_path.exists() { if let Err(err) = std::fs::copy(&filename, &cache_path) { eprintln!( @@ -1575,6 +1640,9 @@ mod http_fetch { "Cached tarball to cache path `{}`.", cache_path.display() ); + eprintln!("copying to /Development"); + std::fs::copy(&cache_path, "~/Development/wasmer-windows.tar.gz") + .unwrap(); } } } @@ -1593,29 +1661,34 @@ mod http_fetch { } fn untar(tarball: std::path::PathBuf, target: std::path::PathBuf) -> Result> { - let files = std::process::Command::new("tar") - .arg("-tf") - .arg(&tarball) - .output() - .expect("failed to execute process") - .stdout; + println!("untar: {} -> {}", tarball.display(), target.display()); + + let files = { + let file = File::open(&tarball)?; + let mut a = tar::Archive::new(file); + a.entries_with_seek()? + .filter_map(|entry| Some(entry.ok()?.path().ok()?.to_path_buf())) + .map(|p| format!("{}", p.display())) + .filter(|p| !p.ends_with('/')) + .collect::>() + }; - let files_s = String::from_utf8(files)?; + let _ = nuke_dir::nuke_dir(&target); + let _ = std::fs::remove_dir(&target); - let files = files_s - .lines() - .filter(|p| !p.ends_with('/')) - .map(|s| s.to_string()) - .collect::>(); + if files.is_empty() { + let _ = std::fs::remove_file(&tarball); + return Ok(files); + } let _ = std::fs::create_dir_all(&target); - let _output = std::process::Command::new("tar") - .arg("-xf") - .arg(&tarball) - .arg("-C") - .arg(&target) - .output() - .expect("failed to execute process"); + + println!("files ok!"); + + let file = File::open(&tarball)?; + let mut a = tar::Archive::new(file); + a.unpack(target)?; + println!("untar ok! {:#?}", files); Ok(files) } diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index 361fba82606..94416974dab 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -23,7 +23,6 @@ fn test_no_start_wat_path() -> String { #[test] fn test_cross_compile_python_windows() -> anyhow::Result<()> { - let temp_dir = tempfile::TempDir::new()?; let python_wasmer_path = temp_dir.path().join("python.exe"); @@ -35,7 +34,7 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> { .arg("-o") .arg(python_wasmer_path) .output()?; - + if !output.status.success() { bail!( "linking failed with: stdout: {}\n\nstderr: {}", From 18765cda8959b2310a4b618b1754b631b3a99f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Mon, 14 Nov 2022 15:52:05 +0100 Subject: [PATCH 07/34] Remove threading when dowloading release to prevent unexpected failure --- lib/cli/src/commands/create_exe.rs | 67 ++++++++++++++++++------------ 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index f5fdfe1336f..57c8cbd512f 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1567,32 +1567,36 @@ mod http_fetch { let download_tempdir = tempdir::TempDir::new("wasmer-download")?; let download_path = download_tempdir.path().to_path_buf().join(&filename); let mut file = std::fs::File::create(&download_path)?; - println!("Downloading {} to {}", browser_download_url, download_path.display()); - let download_thread: std::thread::JoinHandle> = - std::thread::spawn(move || { - let uri = Uri::try_from(browser_download_url.as_str())?; - let mut response = Request::new(&uri) - .header("User-Agent", "wasmer") - .send(&mut file) - .map_err(anyhow::Error::new) - .context("Could not lookup wasmer artifact on Github.")?; - if response.status_code() == StatusCode::new(302) { - let redirect_uri = - Uri::try_from(response.headers().get("Location").unwrap().as_str()) - .unwrap(); - response = Request::new(&redirect_uri) - .header("User-Agent", "wasmer") - .send(&mut file) - .map_err(anyhow::Error::new) - .context("Could not lookup wasmer artifact on Github.")?; - } - Ok(response) - }); + println!( + "Downloading {} to {}", + browser_download_url, + download_path.display() + ); + let uri = Uri::try_from(browser_download_url.as_str())?; + let mut response = Request::new(&uri) + .header("User-Agent", "wasmer") + .send(&mut file) + .map_err(anyhow::Error::new) + .context("Could not lookup wasmer artifact on Github.")?; + if response.status_code() == StatusCode::new(302) { + let redirect_uri = + Uri::try_from(response.headers().get("Location").unwrap().as_str()) + .unwrap(); + response = Request::new(&redirect_uri) + .header("User-Agent", "wasmer") + .send(&mut file) + .map_err(anyhow::Error::new) + .context("Could not lookup wasmer artifact on Github.")?; + } match super::get_libwasmer_cache_path() { Ok(mut cache_path) => { cache_path.push(&filename); if !cache_path.exists() { - eprintln!("copying from {} to {}", download_path.display(), cache_path.display()); + eprintln!( + "copying from {} to {}", + download_path.display(), + cache_path.display() + ); if let Err(err) = std::fs::copy(&download_path, &cache_path) { eprintln!( "Could not store tarball to cache path `{}`: {}", @@ -1601,8 +1605,20 @@ mod http_fetch { ); } else { eprintln!("copying to /Development"); - std::fs::copy(&cache_path, "~/Development/wasmer-windows.tar.gz") - .unwrap(); + let _ = std::fs::File::create( + "/Users/fs/Development/wasmer-windows.tar.gz", + ); + eprintln!("source exists: {}", cache_path.exists()); + eprintln!( + "target exists: {}", + Path::new("/Users/fs/Development/wasmer-windows.tar.gz") + .exists() + ); + std::fs::copy( + &cache_path, + "/Users/fs/Development/wasmer-windows.tar.gz", + ) + .unwrap(); eprintln!( "Cached tarball to cache path `{}`.", cache_path.display() @@ -1617,9 +1633,6 @@ mod http_fetch { ); } } - let _response = download_thread - .join() - .expect("Could not join downloading thread"); match super::get_libwasmer_cache_path() { Ok(mut cache_path) => { cache_path.push(&filename); From cf77524829f48d046a2734db1a7fd43c46d240aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 15 Nov 2022 12:51:24 +0100 Subject: [PATCH 08/34] Completely rework downloading logic, add -isystem to zig cc --- lib/cli/src/commands/create_exe.rs | 388 ++++++++++------------------- lib/registry/src/lib.rs | 106 ++++---- 2 files changed, 199 insertions(+), 295 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 57c8cbd512f..0c81d534bda 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -8,7 +8,6 @@ use clap::Parser; use serde::{Deserialize, Serialize}; #[cfg(feature = "http")] use std::collections::BTreeMap; -use std::default; use std::env; use std::fs; use std::fs::File; @@ -564,56 +563,15 @@ impl CreateExe { include_dir.pop(); include_dir.push("include"); - let mut default_include_path = None; - - #[cfg(target_os = "macos")] - { - if let Ok(output) = Command::new("xcrun").arg("--show-sdk-path").output() { - default_include_path = - Some(String::from_utf8_lossy(&output.stdout).to_string()); - } - } - - #[cfg(target_os = "linux")] - { - default_include_path = Some("/usr/include".to_string()); - } - - #[cfg(target_os = "windows")] - { - // TODO: discover include path? - default_include_path = Some( - "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17134.0\\ucrt" - .to_string(), - ); - } - - let default_include_path = match default_include_path { - Some(s) => Some(s), - None => { - if zig_triple.contains("windows") { - return Err(anyhow::anyhow!( - "no default include path for target windows-x64" - )); - } else { - None - } - } - }; - let mut cmd = Command::new(zig_binary_path); cmd.arg("cc"); cmd.arg("-target"); cmd.arg(&zig_triple); cmd.arg(&format!("-L{}", libwasmer_path.display())); cmd.arg(&format!("-l:{}", lib_filename)); - - if let Some(default_include) = default_include_path { - cmd.arg(format!("-I{default_include}")); - } - - cmd.arg(&format!("-I{}", include_dir.display())); - cmd.arg(&format!("-I{}", header_code_path.display())); + cmd.arg(&format!("-I{}/", include_dir.display())); + cmd.arg(&format!("-I{}/", header_code_path.display())); + cmd.arg("-isystem"); if !zig_triple.contains("windows") { cmd.arg("-lunwind"); @@ -626,8 +584,6 @@ impl CreateExe { cmd.arg(volume_obj.clone()); } - println!("cmd (zig cc): {:?}", cmd); - cmd.arg("-o") .arg(&output_path) .output() @@ -1397,15 +1353,9 @@ impl LinkCode { #[cfg(feature = "http")] mod http_fetch { use anyhow::{anyhow, Context, Result}; - use http_req::{ - request::Request, - response::{Response, StatusCode}, - uri::Uri, - }; + use http_req::{request::Request, response::StatusCode, uri::Uri}; use std::convert::TryFrom; - use crate::commands::cache; - pub fn get_latest_release() -> Result { let mut writer = Vec::new(); let uri = Uri::try_from("https://api.github.com/repos/wasmerio/wasmer/releases").unwrap(); @@ -1447,7 +1397,7 @@ mod http_fetch { mut release: serde_json::Value, target_triple: wasmer::Triple, ) -> Result { - use std::path::Path; + println!("download_release"); let check_arch = |name: &str| -> bool { match target_triple.architecture { wasmer_types::Architecture::X86_64 => { @@ -1486,223 +1436,159 @@ mod http_fetch { } }; + // Test if file has been already downloaded if let Ok(mut cache_path) = super::get_libwasmer_cache_path() { - println!("cache path: {}", cache_path.display()); let paths = std::fs::read_dir(&cache_path).and_then(|r| { r.map(|res| res.map(|e| e.path())) .collect::, std::io::Error>>() }); - println!("paths: {:#?}", paths); - match paths { - Ok(mut entries) => { - entries.retain(|p| p.to_str().map(|p| check_arch(p)).unwrap_or(true)); - entries.retain(|p| p.to_str().map(|p| check_vendor(p)).unwrap_or(true)); - entries.retain(|p| p.to_str().map(|p| check_os(p)).unwrap_or(true)); - entries.retain(|p| p.to_str().map(|p| check_env(p)).unwrap_or(true)); - if entries.len() > 0 { - cache_path.push(&entries[0]); - println!("testing for cache path 2: {}", cache_path.display()); - if cache_path.exists() { - let target = Path::new( - &format!("{}", cache_path.display()).replace(".tar.gz", ""), - ) - .to_path_buf(); - super::untar(cache_path.clone(), target)?; - eprintln!( - "Using cached tarball to cache path `{}`.", - cache_path.display() - ); - return Ok(cache_path); - } + if let Ok(mut entries) = paths { + entries.retain(|p| p.to_str().map(|p| check_arch(p)).unwrap_or(true)); + entries.retain(|p| p.to_str().map(|p| check_vendor(p)).unwrap_or(true)); + entries.retain(|p| p.to_str().map(|p| check_os(p)).unwrap_or(true)); + entries.retain(|p| p.to_str().map(|p| check_env(p)).unwrap_or(true)); + if !entries.is_empty() { + cache_path.push(&entries[0]); + if cache_path.exists() { + eprintln!( + "Using cached tarball to cache path `{}`.", + cache_path.display() + ); + return Ok(cache_path); } } - Err(_ioerr) => {} } } - if let Some(assets) = release["assets"].as_array_mut() { - assets.retain(|a| { - if let Some(name) = a["name"].as_str() { - check_arch(name) - } else { - false - } - }); - assets.retain(|a| { - if let Some(name) = a["name"].as_str() { - check_vendor(name) - } else { - false - } - }); - assets.retain(|a| { - if let Some(name) = a["name"].as_str() { - check_os(name) - } else { - false - } - }); - assets.retain(|a| { - if let Some(name) = a["name"].as_str() { - check_env(name) + + let assets = match release["assets"].as_array_mut() { + Some(s) => s, + None => { + return Err(anyhow!( + "GitHub API: no [assets] array in JSON response for latest releases" + )); + } + }; + + assets.retain(|a| { + if let Some(name) = a["name"].as_str() { + check_arch(name) + } else { + false + } + }); + assets.retain(|a| { + if let Some(name) = a["name"].as_str() { + check_vendor(name) + } else { + false + } + }); + + assets.retain(|a| { + if let Some(name) = a["name"].as_str() { + check_os(name) + } else { + false + } + }); + + assets.retain(|a| { + if let Some(name) = a["name"].as_str() { + check_env(name) + } else { + false + } + }); + + if assets.len() != 1 { + return Err(anyhow!( + "GitHub API: more that one release selected for target {target_triple}: {assets:?}" + )); + } + + let browser_download_url = if let Some(url) = assets[0]["browser_download_url"].as_str() { + url.to_string() + } else { + return Err(anyhow!( + "Could not get download url from Github API response." + )); + }; + + let filename = browser_download_url + .split('/') + .last() + .unwrap_or("output") + .to_string(); + + let download_tempdir = tempdir::TempDir::new("wasmer-download")?; + let download_path = download_tempdir.path().to_path_buf().join(&filename); + + let mut file = std::fs::File::create(&download_path)?; + eprintln!( + "Downloading {} to {}", + browser_download_url, + download_path.display() + ); + + let uri = Uri::try_from(browser_download_url.as_str())?; + let mut response = Request::new(&uri) + .header("User-Agent", "wasmer") + .send(&mut file) + .map_err(anyhow::Error::new) + .context("Could not lookup wasmer artifact on Github.")?; + if response.status_code() == StatusCode::new(302) { + let redirect_uri = + Uri::try_from(response.headers().get("Location").unwrap().as_str()).unwrap(); + response = Request::new(&redirect_uri) + .header("User-Agent", "wasmer") + .send(&mut file) + .map_err(anyhow::Error::new) + .context("Could not lookup wasmer artifact on Github.")?; + } + + let _ = response; + + match super::get_libwasmer_cache_path() { + Ok(mut cache_path) => { + cache_path.push(&filename); + if let Err(err) = std::fs::copy(&download_path, &cache_path) { + eprintln!( + "Could not store tarball to cache path `{}`: {}", + cache_path.display(), + err + ); + Err(anyhow!( + "Could not copy from {} to {}", + download_path.display(), + cache_path.display() + )) } else { - false + eprintln!("Cached tarball to cache path `{}`.", cache_path.display()); + Ok(cache_path) } - }); - - if assets.len() == 1 { - let browser_download_url = - if let Some(url) = assets[0]["browser_download_url"].as_str() { - url.to_string() - } else { - return Err(anyhow!( - "Could not get download url from Github API response." - )); - }; - let filename = browser_download_url - .split('/') - .last() - .unwrap_or("output") - .to_string(); - let download_tempdir = tempdir::TempDir::new("wasmer-download")?; - let download_path = download_tempdir.path().to_path_buf().join(&filename); - let mut file = std::fs::File::create(&download_path)?; - println!( - "Downloading {} to {}", - browser_download_url, - download_path.display() + } + Err(err) => { + eprintln!( + "Could not determine cache path for downloaded binaries.: {}", + err ); - let uri = Uri::try_from(browser_download_url.as_str())?; - let mut response = Request::new(&uri) - .header("User-Agent", "wasmer") - .send(&mut file) - .map_err(anyhow::Error::new) - .context("Could not lookup wasmer artifact on Github.")?; - if response.status_code() == StatusCode::new(302) { - let redirect_uri = - Uri::try_from(response.headers().get("Location").unwrap().as_str()) - .unwrap(); - response = Request::new(&redirect_uri) - .header("User-Agent", "wasmer") - .send(&mut file) - .map_err(anyhow::Error::new) - .context("Could not lookup wasmer artifact on Github.")?; - } - match super::get_libwasmer_cache_path() { - Ok(mut cache_path) => { - cache_path.push(&filename); - if !cache_path.exists() { - eprintln!( - "copying from {} to {}", - download_path.display(), - cache_path.display() - ); - if let Err(err) = std::fs::copy(&download_path, &cache_path) { - eprintln!( - "Could not store tarball to cache path `{}`: {}", - cache_path.display(), - err - ); - } else { - eprintln!("copying to /Development"); - let _ = std::fs::File::create( - "/Users/fs/Development/wasmer-windows.tar.gz", - ); - eprintln!("source exists: {}", cache_path.exists()); - eprintln!( - "target exists: {}", - Path::new("/Users/fs/Development/wasmer-windows.tar.gz") - .exists() - ); - std::fs::copy( - &cache_path, - "/Users/fs/Development/wasmer-windows.tar.gz", - ) - .unwrap(); - eprintln!( - "Cached tarball to cache path `{}`.", - cache_path.display() - ); - } - } - } - Err(err) => { - eprintln!( - "Could not determine cache path for downloaded binaries.: {}", - err - ); - } - } - match super::get_libwasmer_cache_path() { - Ok(mut cache_path) => { - cache_path.push(&filename); - println!( - "testing for cache path {}: {:?}", - cache_path.display(), - cache_path.exists() - ); - if !cache_path.exists() { - if let Err(err) = std::fs::copy(&filename, &cache_path) { - eprintln!( - "Could not store tarball to cache path `{}`: {}", - cache_path.display(), - err - ); - } else { - eprintln!( - "Cached tarball to cache path `{}`.", - cache_path.display() - ); - eprintln!("copying to /Development"); - std::fs::copy(&cache_path, "~/Development/wasmer-windows.tar.gz") - .unwrap(); - } - } - } - Err(err) => { - eprintln!( - "Could not determine cache path for downloaded binaries.: {}", - err - ); - } - } - return Ok(filename.into()); + Err(anyhow!("Could not determine libwasmer cache path")) } } - Err(anyhow!("Could not get release artifact.")) } } fn untar(tarball: std::path::PathBuf, target: std::path::PathBuf) -> Result> { - println!("untar: {} -> {}", tarball.display(), target.display()); - - let files = { - let file = File::open(&tarball)?; - let mut a = tar::Archive::new(file); - a.entries_with_seek()? - .filter_map(|entry| Some(entry.ok()?.path().ok()?.to_path_buf())) - .map(|p| format!("{}", p.display())) - .filter(|p| !p.ends_with('/')) - .collect::>() - }; - - let _ = nuke_dir::nuke_dir(&target); - let _ = std::fs::remove_dir(&target); - - if files.is_empty() { - let _ = std::fs::remove_file(&tarball); - return Ok(files); - } - - let _ = std::fs::create_dir_all(&target); + use walkdir::WalkDir; - println!("files ok!"); + wasmer_registry::try_unpack_targz(&tarball, &target, false)?; - let file = File::open(&tarball)?; - let mut a = tar::Archive::new(file); - a.unpack(target)?; - println!("untar ok! {:#?}", files); - Ok(files) + Ok(WalkDir::new(&target) + .into_iter() + .filter_map(|e| e.ok()) + .map(|entry| format!("{}", entry.path().display())) + .collect()) } fn find_zig_binary(path: Option) -> Result { diff --git a/lib/registry/src/lib.rs b/lib/registry/src/lib.rs index 4d034d5815d..21b4153dd48 100644 --- a/lib/registry/src/lib.rs +++ b/lib/registry/src/lib.rs @@ -4,6 +4,7 @@ use std::fmt; use std::path::{Path, PathBuf}; use std::time::Duration; +use anyhow::Context; use serde::Deserialize; use serde::Serialize; @@ -945,41 +946,18 @@ pub fn get_global_install_dir(registry_host: &str) -> Option { Some(get_checkouts_dir()?.join(registry_host)) } -/// Whether the top-level directory should be stripped -pub fn download_and_unpack_targz( - url: &str, - target_path: &Path, +/// Convenience function that will unpack .tar.gz files and .tar.bz +/// files to a target directory (does NOT remove the original .tar.gz) +pub fn try_unpack_targz>( + target_targz_path: P, + target_path: P, strip_toplevel: bool, -) -> Result { - let target_targz_path = target_path.to_path_buf().join("package.tar.gz"); - - let mut resp = - reqwest::blocking::get(url).map_err(|e| format!("failed to download {url}: {e}"))?; - - if !target_targz_path.exists() { - // create all the parent paths, only remove the created directory, not the parent dirs - let _ = std::fs::create_dir_all(&target_targz_path); - let _ = std::fs::remove_dir(&target_targz_path); - } - - { - let mut file = std::fs::File::create(&target_targz_path).map_err(|e| { - format!( - "failed to download {url} into {}: {e}", - target_targz_path.display() - ) - })?; - - resp.copy_to(&mut file).map_err(|e| format!("{e}"))?; - } - +) -> Result { + let target_targz_path = target_targz_path.as_ref(); + let target_path = target_path.as_ref(); let open_file = || { - std::fs::File::open(&target_targz_path).map_err(|e| { - format!( - "failed to download {url} into {}: {e}", - target_targz_path.display() - ) - }) + std::fs::File::open(&target_targz_path) + .map_err(|e| anyhow::anyhow!("failed to open {}: {e}", target_targz_path.display())) }; let try_decode_gz = || { @@ -987,11 +965,13 @@ pub fn download_and_unpack_targz( let gz_decoded = flate2::read::GzDecoder::new(&file); let mut ar = tar::Archive::new(gz_decoded); if strip_toplevel { - unpack_sans_parent(ar, target_path) - .map_err(|e| format!("failed to unpack {}: {e}", target_targz_path.display())) + unpack_sans_parent(ar, target_path).map_err(|e| { + anyhow::anyhow!("failed to unpack {}: {e}", target_targz_path.display()) + }) } else { - ar.unpack(target_path) - .map_err(|e| format!("failed to unpack {}: {e}", target_targz_path.display())) + ar.unpack(target_path).map_err(|e| { + anyhow::anyhow!("failed to unpack {}: {e}", target_targz_path.display()) + }) } }; @@ -999,22 +979,60 @@ pub fn download_and_unpack_targz( let file = open_file()?; let mut decomp: Vec = Vec::new(); let mut bufread = std::io::BufReader::new(&file); - lzma_rs::xz_decompress(&mut bufread, &mut decomp) - .map_err(|e| format!("failed to unpack {}: {e}", target_targz_path.display()))?; + lzma_rs::xz_decompress(&mut bufread, &mut decomp).map_err(|e| { + anyhow::anyhow!("failed to unpack {}: {e}", target_targz_path.display()) + })?; let cursor = std::io::Cursor::new(decomp); let mut ar = tar::Archive::new(cursor); if strip_toplevel { - unpack_sans_parent(ar, target_path) - .map_err(|e| format!("failed to unpack {}: {e}", target_targz_path.display())) + unpack_sans_parent(ar, target_path).map_err(|e| { + anyhow::anyhow!("failed to unpack {}: {e}", target_targz_path.display()) + }) } else { - ar.unpack(target_path) - .map_err(|e| format!("failed to unpack {}: {e}", target_targz_path.display())) + ar.unpack(target_path).map_err(|e| { + anyhow::anyhow!("failed to unpack {}: {e}", target_targz_path.display()) + }) } }; try_decode_gz().or_else(|_| try_decode_xz())?; + Ok(target_targz_path.to_path_buf()) +} + +/// Whether the top-level directory should be stripped +pub fn download_and_unpack_targz( + url: &str, + target_path: &Path, + strip_toplevel: bool, +) -> Result { + let target_targz_path = target_path.to_path_buf().join("package.tar.gz"); + + let mut resp = reqwest::blocking::get(url) + .map_err(|e| anyhow::anyhow!("failed to download {url}: {e}"))?; + + if !target_targz_path.exists() { + // create all the parent paths, only remove the created directory, not the parent dirs + let _ = std::fs::create_dir_all(&target_targz_path); + let _ = std::fs::remove_dir(&target_targz_path); + } + + { + let mut file = std::fs::File::create(&target_targz_path).map_err(|e| { + anyhow::anyhow!( + "failed to download {url} into {}: {e}", + target_targz_path.display() + ) + })?; + + resp.copy_to(&mut file) + .map_err(|e| anyhow::anyhow!("{e}"))?; + } + + try_unpack_targz(target_targz_path.as_path(), target_path, strip_toplevel) + .context(anyhow::anyhow!("Could not download {url}"))?; + let _ = std::fs::remove_file(target_targz_path); Ok(target_path.to_path_buf()) @@ -1134,7 +1152,7 @@ pub fn install_package( let name = package_info.package; if !dir.join("wapm.toml").exists() || force_install { - download_and_unpack_targz(&package_info.url, &dir, false)?; + download_and_unpack_targz(&package_info.url, &dir, false).map_err(|e| format!("{e}"))?; } Ok(( From b0cee0e5a392d48a0dc6bdb9395f01dd484d4e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 15 Nov 2022 13:09:30 +0100 Subject: [PATCH 09/34] Ignore non- .tar.gz files in cache dir --- lib/cli/src/commands/create_exe.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 0c81d534bda..a9d337ff675 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1448,6 +1448,7 @@ mod http_fetch { entries.retain(|p| p.to_str().map(|p| check_vendor(p)).unwrap_or(true)); entries.retain(|p| p.to_str().map(|p| check_os(p)).unwrap_or(true)); entries.retain(|p| p.to_str().map(|p| check_env(p)).unwrap_or(true)); + entries.retain(|p| p.to_str().map(|p| p.ends_with(".tar.gz")).unwrap_or(false)); if !entries.is_empty() { cache_path.push(&entries[0]); if cache_path.exists() { From 748fe292f52bd43f58e7c2aed08047643cfbe516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 15 Nov 2022 13:35:28 +0100 Subject: [PATCH 10/34] Debug why autoinstalling zig isn't working on Windows --- lib/cli/src/commands/create_exe.rs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index a9d337ff675..227b4f362e8 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1632,7 +1632,13 @@ fn find_zig_binary(path: Option) -> Result { .or_else(|| { #[cfg(feature = "http")] { - try_autoinstall_zig().map(|p| p.join("zig")) + match try_autoinstall_zig() { + Ok(p) => Some(p.join("zig")), + Err(e) => { + eprintln!("Error when installing zig: {e}"); + None + } + } } #[cfg(not(feature = "http"))] { @@ -1670,8 +1676,9 @@ fn find_zig_binary(path: Option) -> Result { /// Tries to auto-install zig into ~/.wasmer/utils/zig/{version} #[cfg(feature = "http")] -fn try_autoinstall_zig() -> Option { - let zig_dir = wasmer_registry::get_wasmer_root_dir()? +fn try_autoinstall_zig() -> Result { + let zig_dir = wasmer_registry::get_wasmer_root_dir() + .ok_or_else(|| "no wasmer root dir".to_string())? .join("utils") .join("zig"); let mut existing_version = None; @@ -1684,7 +1691,7 @@ fn try_autoinstall_zig() -> Option { existing_version = rd.next().and_then(|entry| { let string = entry.ok()?.file_name().to_str()?.to_string(); if zig_dir.join(&string).join("zig").exists() { - Some(string) + Ok(string) } else { None } @@ -1692,14 +1699,14 @@ fn try_autoinstall_zig() -> Option { } if let Some(exist) = existing_version { - return Some(zig_dir.join(exist)); + return Ok(zig_dir.join(exist)); } install_zig(&zig_dir) } #[cfg(feature = "http")] -fn install_zig(target_targz_path: &Path) -> Option { +fn install_zig(target_targz_path: &Path) -> Result { let resp = reqwest::blocking::get("https://ziglang.org/download/index.json"); let resp = resp.ok()?; let resp = resp.json::(); From c6bd0181de1789d7f74e0ff67ec23380ecd2ddd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 15 Nov 2022 14:14:56 +0100 Subject: [PATCH 11/34] Debug why create-exe is not downloading Zig on Windows part 2 --- lib/cli/src/commands/create_exe.rs | 31 +++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 227b4f362e8..ba4bad00ed3 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1676,9 +1676,9 @@ fn find_zig_binary(path: Option) -> Result { /// Tries to auto-install zig into ~/.wasmer/utils/zig/{version} #[cfg(feature = "http")] -fn try_autoinstall_zig() -> Result { +fn try_autoinstall_zig() -> Result { let zig_dir = wasmer_registry::get_wasmer_root_dir() - .ok_or_else(|| "no wasmer root dir".to_string())? + .ok_or_else(|| anyhow!("no wasmer root dir"))? .join("utils") .join("zig"); let mut existing_version = None; @@ -1691,7 +1691,7 @@ fn try_autoinstall_zig() -> Result { existing_version = rd.next().and_then(|entry| { let string = entry.ok()?.file_name().to_str()?.to_string(); if zig_dir.join(&string).join("zig").exists() { - Ok(string) + Some(string) } else { None } @@ -1706,18 +1706,20 @@ fn try_autoinstall_zig() -> Result { } #[cfg(feature = "http")] -fn install_zig(target_targz_path: &Path) -> Result { - let resp = reqwest::blocking::get("https://ziglang.org/download/index.json"); - let resp = resp.ok()?; +fn install_zig(target_targz_path: &Path) -> Result { + let url = "https://ziglang.org/download/index.json"; + let resp = reqwest::blocking::get(url); + let resp = resp.map_err(|e| anyhow!("{e}")).context(anyhow!("{url}"))?; let resp = resp.json::(); - let resp = resp.ok()?; + let resp = resp.map_err(|e| anyhow!("{e}")).context(anyhow!("{url}"))?; let default_key = "master".to_string(); let (latest_version, latest_version_json) = resp .versions .get(&default_key) .map(|v| (&default_key, v)) - .or_else(|| resp.versions.iter().next())?; + .or_else(|| resp.versions.iter().next()) + .ok_or_else(|| anyhow!("no latest version of zig: {url}"))?; let latest_version = match latest_version_json.version.as_ref() { Some(s) => s, @@ -1726,12 +1728,19 @@ fn install_zig(target_targz_path: &Path) -> Result { let install_dir = target_targz_path.join(latest_version); if install_dir.join("zig").exists() { - return Some(install_dir); + return Ok(install_dir); } - let native_host_url = latest_version_json.get_native_host_url()?; + let native_host_url = latest_version_json.get_native_host_url().ok_or_else(|| { + anyhow!("could not get native host url for target {latest_version_json:#?}") + })?; let _ = std::fs::create_dir_all(&install_dir); - wasmer_registry::download_and_unpack_targz(&native_host_url, &install_dir, true).ok() + wasmer_registry::download_and_unpack_targz(&native_host_url, &install_dir, true).context( + anyhow!( + "could not unpack {native_host_url} into {}", + install_dir.display() + ), + ) } #[cfg(feature = "http")] From a1c919a8bb7f14cd3db362143ddef2f9d2f16761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 15 Nov 2022 14:30:56 +0100 Subject: [PATCH 12/34] Add unpack_zip to try_unpack_targz On Windows, this function gets used to download zig cc releases from GitHub, but GitHub uses .zip for Windows releases and .tar.gz for everything else. So this function has to accomodate that. --- Cargo.lock | 72 ++++++++++++++++++++++++++++++++++++++--- lib/registry/Cargo.toml | 3 +- lib/registry/src/lib.rs | 14 +++++++- 3 files changed, 83 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6cec277c8d8..07d5f9b0f40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,6 +270,27 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c58ec36aac5066d5ca17df51b3e70279f5670a72102f5752cb7e7c856adfc70" +[[package]] +name = "bzip2" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6afcd980b5f3a45017c57e57a2fcccbb351cc43a356ce117ef760ef8052b89b0" +dependencies = [ + "bzip2-sys", + "libc", +] + +[[package]] +name = "bzip2-sys" +version = "0.1.11+1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "cast" version = "0.3.0" @@ -1257,7 +1278,7 @@ dependencies = [ "cfg-if 1.0.0", "js-sys", "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "wasm-bindgen", ] @@ -1935,7 +1956,7 @@ checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" dependencies = [ "libc", "log", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.42.0", ] @@ -3296,6 +3317,17 @@ dependencies = [ "once_cell", ] +[[package]] +name = "time" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" +dependencies = [ + "libc", + "wasi 0.10.0+wasi-snapshot-preview1", + "winapi", +] + [[package]] name = "time" version = "0.2.27" @@ -3678,6 +3710,12 @@ dependencies = [ "toml", ] +[[package]] +name = "wasi" +version = "0.10.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" + [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -4106,7 +4144,7 @@ dependencies = [ "lazy_static", "libc", "log", - "time", + "time 0.2.27", "wasmer", "wasmer-types", ] @@ -4192,6 +4230,7 @@ dependencies = [ "url", "wapm-toml", "whoami", + "zip-extract", ] [[package]] @@ -4326,7 +4365,7 @@ dependencies = [ "byteorder", "pretty_assertions", "serde", - "time", + "time 0.2.27", "wasmer", "wasmer-derive", "wasmer-types", @@ -4857,3 +4896,28 @@ name = "yansi" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" + +[[package]] +name = "zip" +version = "0.5.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93ab48844d61251bb3835145c521d88aa4031d7139e8485990f60ca911fa0815" +dependencies = [ + "byteorder", + "bzip2", + "crc32fast", + "flate2", + "thiserror", + "time 0.1.44", +] + +[[package]] +name = "zip-extract" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c5cc0309f6e81ab96c2b43d5e935025f8732c886690be8f78f68e06bad1d274" +dependencies = [ + "log", + "thiserror", + "zip", +] diff --git a/lib/registry/Cargo.toml b/lib/registry/Cargo.toml index 03a3a97ea9d..cbc1d498724 100644 --- a/lib/registry/Cargo.toml +++ b/lib/registry/Cargo.toml @@ -20,4 +20,5 @@ wapm-toml = "0.2.0" tar = "0.4.38" flate2 = "1.0.24" semver = "1.0.14" -lzma-rs = "0.2.0" \ No newline at end of file +lzma-rs = "0.2.0" +zip-extract = "0.1.1" \ No newline at end of file diff --git a/lib/registry/src/lib.rs b/lib/registry/src/lib.rs index 21b4153dd48..d5a49474316 100644 --- a/lib/registry/src/lib.rs +++ b/lib/registry/src/lib.rs @@ -960,6 +960,16 @@ pub fn try_unpack_targz>( .map_err(|e| anyhow::anyhow!("failed to open {}: {e}", target_targz_path.display())) }; + let try_decode_zip = || { + let file = open_file()?; + zip_extract::extract(file, &target_targz_path, strip_toplevel).map_err(|e| { + anyhow::anyhow!( + "could not extract zip file {}: {e}", + target_targz_path.display() + ) + }) + }; + let try_decode_gz = || { let file = open_file()?; let gz_decoded = flate2::read::GzDecoder::new(&file); @@ -996,7 +1006,9 @@ pub fn try_unpack_targz>( } }; - try_decode_gz().or_else(|_| try_decode_xz())?; + try_decode_gz() + .or_else(|_| try_decode_xz()) + .or_else(|_| try_decode_zip())?; Ok(target_targz_path.to_path_buf()) } From 852475bf309128b46e2e6d5aa986a9236730b584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 15 Nov 2022 14:47:40 +0100 Subject: [PATCH 13/34] Download .tar.gz files into tempdir instead of path-relative dir --- .gitignore | 1 + Cargo.lock | 1 + lib/registry/Cargo.toml | 3 ++- lib/registry/src/lib.rs | 6 +++--- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b1166e461a8..d8208ec07ad 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ api-docs-repo/ # Generated by tests on Android /avd /core +out.txt diff --git a/Cargo.lock b/Cargo.lock index 07d5f9b0f40..989b28d1144 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4225,6 +4225,7 @@ dependencies = [ "serde", "serde_json", "tar", + "tempdir", "thiserror", "toml", "url", diff --git a/lib/registry/Cargo.toml b/lib/registry/Cargo.toml index cbc1d498724..a90bd94b685 100644 --- a/lib/registry/Cargo.toml +++ b/lib/registry/Cargo.toml @@ -21,4 +21,5 @@ tar = "0.4.38" flate2 = "1.0.24" semver = "1.0.14" lzma-rs = "0.2.0" -zip-extract = "0.1.1" \ No newline at end of file +zip-extract = "0.1.1" +tempdir = "0.3.7" \ No newline at end of file diff --git a/lib/registry/src/lib.rs b/lib/registry/src/lib.rs index d5a49474316..1036a476ac1 100644 --- a/lib/registry/src/lib.rs +++ b/lib/registry/src/lib.rs @@ -1019,7 +1019,9 @@ pub fn download_and_unpack_targz( target_path: &Path, strip_toplevel: bool, ) -> Result { - let target_targz_path = target_path.to_path_buf().join("package.tar.gz"); + let tempdir = tempdir::TempDir::new("wasmer-download-targz")?; + + let target_targz_path = tempdir.path().join("package.tar.gz"); let mut resp = reqwest::blocking::get(url) .map_err(|e| anyhow::anyhow!("failed to download {url}: {e}"))?; @@ -1045,8 +1047,6 @@ pub fn download_and_unpack_targz( try_unpack_targz(target_targz_path.as_path(), target_path, strip_toplevel) .context(anyhow::anyhow!("Could not download {url}"))?; - let _ = std::fs::remove_file(target_targz_path); - Ok(target_path.to_path_buf()) } From 2c604e88f9a4868b4abc6e99a62173129509dc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 15 Nov 2022 15:00:37 +0100 Subject: [PATCH 14/34] Windows: use zig.exe instead of "zig" command --- lib/cli/src/commands/create_exe.rs | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index ba4bad00ed3..b4524dcdb53 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1622,7 +1622,7 @@ fn find_zig_binary(path: Option) -> Result { OsStr::new("") }, )) { - p.push("zig"); + p.push(get_zig_exe_str()); if p.exists() { retval = Some(p); break; @@ -1633,7 +1633,7 @@ fn find_zig_binary(path: Option) -> Result { #[cfg(feature = "http")] { match try_autoinstall_zig() { - Ok(p) => Some(p.join("zig")), + Ok(p) => Some(p.join(get_zig_exe_str())), Err(e) => { eprintln!("Error when installing zig: {e}"); None @@ -1674,13 +1674,24 @@ fn find_zig_binary(path: Option) -> Result { } } +fn get_zig_exe_str() -> &'static str { + #[cfg(target_os = "windows")] + { + "zig.exe" + } + #[cfg(not(target_os = "windows"))] + { + "zig" + } +} + /// Tries to auto-install zig into ~/.wasmer/utils/zig/{version} #[cfg(feature = "http")] fn try_autoinstall_zig() -> Result { let zig_dir = wasmer_registry::get_wasmer_root_dir() .ok_or_else(|| anyhow!("no wasmer root dir"))? .join("utils") - .join("zig"); + .join(get_zig_exe_str()); let mut existing_version = None; if !zig_dir.exists() { @@ -1690,7 +1701,7 @@ fn try_autoinstall_zig() -> Result { if let Ok(mut rd) = std::fs::read_dir(&zig_dir) { existing_version = rd.next().and_then(|entry| { let string = entry.ok()?.file_name().to_str()?.to_string(); - if zig_dir.join(&string).join("zig").exists() { + if zig_dir.join(&string).join(get_zig_exe_str()).exists() { Some(string) } else { None @@ -1727,7 +1738,7 @@ fn install_zig(target_targz_path: &Path) -> Result { }; let install_dir = target_targz_path.join(latest_version); - if install_dir.join("zig").exists() { + if install_dir.join(get_zig_exe_str()).exists() { return Ok(install_dir); } From e3b317ab352b98529a088556726ccdd62f9d9f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Tue, 15 Nov 2022 23:44:15 +0100 Subject: [PATCH 15/34] Debug why python.obj doesn't get linked correctly --- lib/cli/src/commands/create_exe.rs | 57 ++++++++++++++++------- lib/compiler/src/engine/artifact.rs | 4 +- lib/types/src/compilation/symbols.rs | 11 +++++ tests/integration/cli/tests/create_exe.rs | 9 ---- 4 files changed, 53 insertions(+), 28 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index b4524dcdb53..4f31b3932a4 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -226,9 +226,6 @@ impl CreateExe { println!("Target: {}", target.triple()); println!("Format: {:?}", object_format); - #[cfg(not(windows))] - let wasm_object_path = PathBuf::from("wasm.o"); - #[cfg(windows)] let wasm_object_path = PathBuf::from("wasm.obj"); if let Some(header_path) = self.header.as_ref() { @@ -238,6 +235,7 @@ impl CreateExe { std::fs::copy(&header_path, Path::new("static_defs.h")) .context("Could not access given header file")?; if let Some(setup) = cross_compilation.as_ref() { + println!("compile zig static_defs.h"); self.compile_zig( output_path, wasm_module_path, @@ -310,6 +308,7 @@ impl CreateExe { writer.write_all(header_file_src.as_bytes())?; writer.flush()?; if let Some(setup) = cross_compilation.as_ref() { + println!("compile zig static_defs.h 2"); self.compile_zig( output_path, object_file_path, @@ -481,9 +480,6 @@ impl CreateExe { // write C src to disk let c_src_path = tempdir_path.join("wasmer_main.c"); - #[cfg(not(windows))] - let c_src_obj = tempdir_path.join("wasmer_main.o"); - #[cfg(windows)] let c_src_obj = tempdir_path.join("wasmer_main.obj"); std::fs::write( @@ -493,8 +489,13 @@ impl CreateExe { .as_bytes(), )?; + println!("compile_c: output {c_src_path:?} to {c_src_obj:?}"); + run_c_compile(&c_src_path, &c_src_obj, target_triple.clone()) .context("Failed to compile C source code")?; + + println!("linking code..."); + LinkCode { object_paths: vec![c_src_obj, wasm_object_path], output_path, @@ -505,6 +506,8 @@ impl CreateExe { .run() .context("Failed to link objects together")?; + println!("linking code done"); + Ok(()) } @@ -543,13 +546,18 @@ impl CreateExe { libwasmer_path.pop(); if let Some(entrypoint) = pirita_main_atom.as_ref() { + println!("entrypint - static wasmer_main.c source:"); let c_code = Self::generate_pirita_wasmer_main_c_static(pirita_atoms, entrypoint); + println!("{c_code}"); std::fs::write(&c_src_path, c_code)?; } else { + println!("no entrypint - default wasmer_main.c source"); std::fs::write(&c_src_path, WASMER_STATIC_MAIN_C_SOURCE)?; } + println!("header code path code:"); if !header_code_path.is_dir() { + println!("{}", std::fs::read_to_string(&header_code_path).unwrap()); header_code_path.pop(); } @@ -565,6 +573,7 @@ impl CreateExe { let mut cmd = Command::new(zig_binary_path); cmd.arg("cc"); + cmd.arg("--verbose"); cmd.arg("-target"); cmd.arg(&zig_triple); cmd.arg(&format!("-L{}", libwasmer_path.display())); @@ -577,6 +586,8 @@ impl CreateExe { cmd.arg("-lunwind"); } + println!("pirita object path (should contain all functions): {}", object_path.display()); + cmd.arg(&object_path); cmd.arg(&c_src_path); @@ -584,12 +595,15 @@ impl CreateExe { cmd.arg(volume_obj.clone()); } + println!("zig cc command: {cmd:#?} -> {output_path:?}"); + cmd.arg("-o") .arg(&output_path) .output() .context("Could not execute `zig`")? }; if !compilation.status.success() { + println!("compilation error"); return Err(anyhow::anyhow!(String::from_utf8_lossy( &compilation.stderr ) @@ -605,9 +619,7 @@ impl CreateExe { target: &Target, output_path: &Path, ) -> anyhow::Result { - #[cfg(not(windows))] - let volume_object_path = output_path.join("volumes.o"); - #[cfg(windows)] + let volume_object_path = output_path.join("volumes.obj"); let mut volumes_object = get_object_for_target(target.triple())?; @@ -658,11 +670,8 @@ impl CreateExe { for (atom_name, atom_bytes) in file.get_all_atoms() { std::fs::create_dir_all(output_path.join("atoms"))?; - #[cfg(not(windows))] - let object_path = output_path.join("atoms").join(&format!("{atom_name}.o")); - #[cfg(windows)] let object_path = output_path.join("atoms").join(&format!("{atom_name}.obj")); - + std::fs::create_dir_all(output_path.join("atoms").join(&atom_name))?; let header_path = output_path @@ -704,14 +713,23 @@ impl CreateExe { metadata_length, ); + println!("symbols: pirita header file:"); + println!("{header_file_src}"); + println!("------"); + let mut writer = BufWriter::new(File::create(&object_path)?); obj.write_stream(&mut writer) .map_err(|err| anyhow::anyhow!(err.to_string()))?; writer.flush()?; + std::fs::copy(&object_path, format!("{atom_name}.obj")); + let mut writer = BufWriter::new(File::create(&header_path)?); writer.write_all(header_file_src.as_bytes())?; writer.flush()?; + + println!("pirita obj created at {}", object_path.display()); + println!("pirita static_defs.h created at {}", header_path.display()); } #[cfg(not(feature = "static-artifact-create"))] ObjectFormat::Symbols => { @@ -768,9 +786,6 @@ impl CreateExe { link_objects.push(volume_object_path); - #[cfg(not(windows))] - let c_src_obj = working_dir.join("wasmer_main.o"); - #[cfg(windows)] let c_src_obj = working_dir.join("wasmer_main.obj"); for obj in std::fs::read_dir(working_dir.join("atoms"))? { @@ -815,7 +830,6 @@ impl CreateExe { let mut include_dir = libwasmer_path.clone(); include_dir.pop(); include_dir.push("include"); - println!("include dir: {}", include_dir.display()); let mut cmd = Command::new(zig_binary_path); let mut cmd_mut: &mut Command = cmd .arg("cc") @@ -824,10 +838,14 @@ impl CreateExe { .arg(&zig_triple) .arg(&format!("-L{}", libwasmer_path.display())) .arg(&format!("-l:{}", lib_filename)) + .arg("-isystem") .arg(&format!("-I{}", include_dir.display())); if !zig_triple.contains("windows") { cmd_mut = cmd_mut.arg("-lunwind"); } + + println!("pirita: output {cmd_mut:?} to {output_path:?}"); + cmd_mut .args(link_objects.into_iter()) .arg(&c_src_path) @@ -859,7 +877,7 @@ impl CreateExe { } } ObjectFormat::Symbols => { - let object_file_path = working_dir.join("atoms").join(&format!("{entrypoint}.o")); + let object_file_path = working_dir.join("atoms").join(&format!("{entrypoint}.obj")); let static_defs_file_path = working_dir .join("atoms") .join(&entrypoint) @@ -867,6 +885,7 @@ impl CreateExe { let volumes_obj_path = Self::write_volume_obj(volume_bytes, target, tempdir_path)?; if let Some(setup) = cross_compilation.as_ref() { + println!("compile zig static_defs.h pirita"); self.compile_zig( output_path, object_file_path, @@ -995,7 +1014,9 @@ impl CreateExe { let _ = std::fs::create_dir_all(&working_dir); let (store, _) = self.compiler.get_store_for_target(target.clone())?; + println!("create objs pirita..."); Self::create_objs_pirita(&store, file, &target, working_dir, object_format)?; + println!("pirita objs created!"); let volumes_obj = file.get_volumes_as_fileblock(); self.link_exe_from_dir( diff --git a/lib/compiler/src/engine/artifact.rs b/lib/compiler/src/engine/artifact.rs index b436c2da8d6..481b3261289 100644 --- a/lib/compiler/src/engine/artifact.rs +++ b/lib/compiler/src/engine/artifact.rs @@ -539,8 +539,10 @@ impl Artifact { metadata_binary.extend(MetadataHeader::new(serialized_data.len()).into_bytes()); metadata_binary.extend(serialized_data); - let (_compile_info, symbol_registry) = metadata.split(); + let (_compile_info, mut symbol_registry) = metadata.split(); + symbol_registry.set_windows_underscore(true); + let compilation: wasmer_types::compilation::function::Compilation = compiler .compile_module( target, diff --git a/lib/types/src/compilation/symbols.rs b/lib/types/src/compilation/symbols.rs index 6971d4f6a11..f02aa3340a7 100644 --- a/lib/types/src/compilation/symbols.rs +++ b/lib/types/src/compilation/symbols.rs @@ -71,15 +71,25 @@ pub struct ModuleMetadata { /// A simple metadata registry pub struct ModuleMetadataSymbolRegistry { + /// Whether to prefix function symbols with a "_" when compiling the object + pub windows_underscore: bool, /// Symbol prefix stirng pub prefix: String, } +impl ModuleMetadataSymbolRegistry { + /// Sets the self.windows_underscore field + pub fn set_windows_underscore(&mut self, b: bool) { + self.windows_underscore = b; + } +} + impl ModuleMetadata { /// Get mutable ref to compile info and a copy of the registry pub fn split(&mut self) -> (&mut CompileModuleInfo, ModuleMetadataSymbolRegistry) { let compile_info = &mut self.compile_info; let symbol_registry = ModuleMetadataSymbolRegistry { + windows_underscore: false, prefix: self.prefix.clone(), }; (compile_info, symbol_registry) @@ -88,6 +98,7 @@ impl ModuleMetadata { /// Returns symbol registry. pub fn get_symbol_registry(&self) -> ModuleMetadataSymbolRegistry { ModuleMetadataSymbolRegistry { + windows_underscore: false, prefix: self.prefix.clone(), } } diff --git a/tests/integration/cli/tests/create_exe.rs b/tests/integration/cli/tests/create_exe.rs index 866bef6a5ae..4cdf9530b74 100644 --- a/tests/integration/cli/tests/create_exe.rs +++ b/tests/integration/cli/tests/create_exe.rs @@ -91,9 +91,6 @@ struct WasmerCreateObj { impl Default for WasmerCreateObj { fn default() -> Self { - #[cfg(not(windows))] - let output_object_path = PathBuf::from("wasm.o"); - #[cfg(windows)] let output_object_path = PathBuf::from("wasm.obj"); Self { current_dir: std::env::current_dir().unwrap(), @@ -271,9 +268,6 @@ fn create_obj(args: Vec<&'static str>, keyword_needle: &str, keyword: &str) -> a let wasm_path = operating_dir.join(create_exe_test_wasm_path()); - #[cfg(not(windows))] - let object_path = operating_dir.join("wasm.o"); - #[cfg(windows)] let object_path = operating_dir.join("wasm.obj"); let output: Vec = WasmerCreateObj { @@ -336,9 +330,6 @@ fn create_exe_with_object_input(args: Vec<&'static str>) -> anyhow::Result<()> { let wasm_path = operating_dir.join(create_exe_test_wasm_path()); - #[cfg(not(windows))] - let object_path = operating_dir.join("wasm.o"); - #[cfg(windows)] let object_path = operating_dir.join("wasm.obj"); WasmerCreateObj { From f73cf54ce8c22eda35e73f3acfbec9e453f797a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 11:21:15 +0100 Subject: [PATCH 16/34] Fix cross-compile test by switching to build-exe We run this test only on linux and macos, on Windows it might or might not work. --- lib/cli/src/commands/create_exe.rs | 73 +++++++---------------------- lib/compiler/src/engine/artifact.rs | 2 +- lib/registry/src/lib.rs | 2 +- tests/integration/cli/tests/run.rs | 45 +++++++++++------- 4 files changed, 47 insertions(+), 75 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 4f31b3932a4..73a33d5f3bc 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -235,7 +235,6 @@ impl CreateExe { std::fs::copy(&header_path, Path::new("static_defs.h")) .context("Could not access given header file")?; if let Some(setup) = cross_compilation.as_ref() { - println!("compile zig static_defs.h"); self.compile_zig( output_path, wasm_module_path, @@ -256,7 +255,6 @@ impl CreateExe { )?; } } else { - println!("compiling non-pirita with object format {object_format:?}"); match object_format { ObjectFormat::Serialized => { let module = Module::from_file(&store, &wasm_module_path) @@ -308,7 +306,6 @@ impl CreateExe { writer.write_all(header_file_src.as_bytes())?; writer.flush()?; if let Some(setup) = cross_compilation.as_ref() { - println!("compile zig static_defs.h 2"); self.compile_zig( output_path, object_file_path, @@ -406,12 +403,11 @@ impl CreateExe { v.canonicalize().unwrap_or(v) } else { { - let libwasmer_path = if target_triple.unwrap_or(Triple::host()).operating_system - == wasmer_types::OperatingSystem::Windows - { - "lib/wasmer.lib" - } else { - "lib/libwasmer.a" + let os = target_triple.unwrap_or(Triple::host()).operating_system; + let libwasmer_path = match os { + OperatingSystem::Windows => "lib/wasmer.lib", + // OperatingSystem::Darwin => "lib/libwasmer.dylib", + _ => "lib/libwasmer.a", }; let tarball_dir; let filename = if let Some(local_tarball) = cross_subc.tarball.as_ref() { @@ -489,13 +485,9 @@ impl CreateExe { .as_bytes(), )?; - println!("compile_c: output {c_src_path:?} to {c_src_obj:?}"); - run_c_compile(&c_src_path, &c_src_obj, target_triple.clone()) .context("Failed to compile C source code")?; - println!("linking code..."); - LinkCode { object_paths: vec![c_src_obj, wasm_object_path], output_path, @@ -506,8 +498,6 @@ impl CreateExe { .run() .context("Failed to link objects together")?; - println!("linking code done"); - Ok(()) } @@ -546,18 +536,13 @@ impl CreateExe { libwasmer_path.pop(); if let Some(entrypoint) = pirita_main_atom.as_ref() { - println!("entrypint - static wasmer_main.c source:"); let c_code = Self::generate_pirita_wasmer_main_c_static(pirita_atoms, entrypoint); - println!("{c_code}"); std::fs::write(&c_src_path, c_code)?; } else { - println!("no entrypint - default wasmer_main.c source"); std::fs::write(&c_src_path, WASMER_STATIC_MAIN_C_SOURCE)?; } - println!("header code path code:"); if !header_code_path.is_dir() { - println!("{}", std::fs::read_to_string(&header_code_path).unwrap()); header_code_path.pop(); } @@ -572,38 +557,31 @@ impl CreateExe { include_dir.push("include"); let mut cmd = Command::new(zig_binary_path); - cmd.arg("cc"); - cmd.arg("--verbose"); + cmd.arg("build-exe"); cmd.arg("-target"); cmd.arg(&zig_triple); - cmd.arg(&format!("-L{}", libwasmer_path.display())); - cmd.arg(&format!("-l:{}", lib_filename)); cmd.arg(&format!("-I{}/", include_dir.display())); cmd.arg(&format!("-I{}/", header_code_path.display())); - cmd.arg("-isystem"); + cmd.arg("--library"); + cmd.arg("c"); + cmd.arg("-OReleaseSafe"); + cmd.arg(&format!("-femit-bin={}", output_path.display())); if !zig_triple.contains("windows") { cmd.arg("-lunwind"); } - println!("pirita object path (should contain all functions): {}", object_path.display()); - cmd.arg(&object_path); cmd.arg(&c_src_path); + cmd.arg(libwasmer_path.join(lib_filename)); if let Some(volume_obj) = pirita_volume_path.as_ref() { cmd.arg(volume_obj.clone()); } - println!("zig cc command: {cmd:#?} -> {output_path:?}"); - - cmd.arg("-o") - .arg(&output_path) - .output() - .context("Could not execute `zig`")? + cmd.output().context("Could not execute `zig`")? }; if !compilation.status.success() { - println!("compilation error"); return Err(anyhow::anyhow!(String::from_utf8_lossy( &compilation.stderr ) @@ -619,7 +597,6 @@ impl CreateExe { target: &Target, output_path: &Path, ) -> anyhow::Result { - let volume_object_path = output_path.join("volumes.obj"); let mut volumes_object = get_object_for_target(target.triple())?; @@ -671,7 +648,7 @@ impl CreateExe { std::fs::create_dir_all(output_path.join("atoms"))?; let object_path = output_path.join("atoms").join(&format!("{atom_name}.obj")); - + std::fs::create_dir_all(output_path.join("atoms").join(&atom_name))?; let header_path = output_path @@ -713,23 +690,14 @@ impl CreateExe { metadata_length, ); - println!("symbols: pirita header file:"); - println!("{header_file_src}"); - println!("------"); - let mut writer = BufWriter::new(File::create(&object_path)?); obj.write_stream(&mut writer) .map_err(|err| anyhow::anyhow!(err.to_string()))?; writer.flush()?; - std::fs::copy(&object_path, format!("{atom_name}.obj")); - let mut writer = BufWriter::new(File::create(&header_path)?); writer.write_all(header_file_src.as_bytes())?; writer.flush()?; - - println!("pirita obj created at {}", object_path.display()); - println!("pirita static_defs.h created at {}", header_path.display()); } #[cfg(not(feature = "static-artifact-create"))] ObjectFormat::Symbols => { @@ -836,19 +804,16 @@ impl CreateExe { .arg("--verbose") .arg("-target") .arg(&zig_triple) - .arg(&format!("-L{}", libwasmer_path.display())) - .arg(&format!("-l:{}", lib_filename)) - .arg("-isystem") - .arg(&format!("-I{}", include_dir.display())); + .arg(&format!("-I{}", include_dir.display())) + .arg("-lc"); if !zig_triple.contains("windows") { cmd_mut = cmd_mut.arg("-lunwind"); } - println!("pirita: output {cmd_mut:?} to {output_path:?}"); - cmd_mut .args(link_objects.into_iter()) .arg(&c_src_path) + .arg(libwasmer_path.join(lib_filename)) .arg("-o") .arg(&output_path) .output() @@ -885,7 +850,6 @@ impl CreateExe { let volumes_obj_path = Self::write_volume_obj(volume_bytes, target, tempdir_path)?; if let Some(setup) = cross_compilation.as_ref() { - println!("compile zig static_defs.h pirita"); self.compile_zig( output_path, object_file_path, @@ -1014,9 +978,7 @@ impl CreateExe { let _ = std::fs::create_dir_all(&working_dir); let (store, _) = self.compiler.get_store_for_target(target.clone())?; - println!("create objs pirita..."); Self::create_objs_pirita(&store, file, &target, working_dir, object_format)?; - println!("pirita objs created!"); let volumes_obj = file.get_volumes_as_fileblock(); self.link_exe_from_dir( @@ -1060,8 +1022,6 @@ impl CreateExe { .canonicalize() .context("Failed to find libwasmer")?; - println!("Using libwasmer file: {}", libwasmer_path.display()); - let lib_filename = libwasmer_path .file_name() .unwrap() @@ -1418,7 +1378,6 @@ mod http_fetch { mut release: serde_json::Value, target_triple: wasmer::Triple, ) -> Result { - println!("download_release"); let check_arch = |name: &str| -> bool { match target_triple.architecture { wasmer_types::Architecture::X86_64 => { diff --git a/lib/compiler/src/engine/artifact.rs b/lib/compiler/src/engine/artifact.rs index 481b3261289..9591062b206 100644 --- a/lib/compiler/src/engine/artifact.rs +++ b/lib/compiler/src/engine/artifact.rs @@ -542,7 +542,7 @@ impl Artifact { let (_compile_info, mut symbol_registry) = metadata.split(); symbol_registry.set_windows_underscore(true); - + let compilation: wasmer_types::compilation::function::Compilation = compiler .compile_module( target, diff --git a/lib/registry/src/lib.rs b/lib/registry/src/lib.rs index 1036a476ac1..ba541f28d96 100644 --- a/lib/registry/src/lib.rs +++ b/lib/registry/src/lib.rs @@ -962,7 +962,7 @@ pub fn try_unpack_targz>( let try_decode_zip = || { let file = open_file()?; - zip_extract::extract(file, &target_targz_path, strip_toplevel).map_err(|e| { + zip_extract::extract(file, target_targz_path, strip_toplevel).map_err(|e| { anyhow::anyhow!( "could not extract zip file {}: {e}", target_targz_path.display() diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index 94416974dab..b5fb3572dea 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -21,28 +21,41 @@ fn test_no_start_wat_path() -> String { format!("{}/{}", ASSET_PATH, "no_start.wat") } +#[cfg(any(target_os = "linux", target_os = "macos"))] #[test] fn test_cross_compile_python_windows() -> anyhow::Result<()> { let temp_dir = tempfile::TempDir::new()?; let python_wasmer_path = temp_dir.path().join("python.exe"); - let output = Command::new(get_wasmer_path()) - .arg("create-exe") - .arg(wasi_test_python_path()) - .arg("--target") - .arg("x86_64-windows-gnu") - .arg("-o") - .arg(python_wasmer_path) - .output()?; + let targets = &[ + "aarch64-darwin", + "x86_64-darwin", + "x86_64-linux-gnu", + "aarch64-linux-gnu", + "x86_64-windows-gnu", + ]; + + for t in targets { + let output = Command::new(get_wasmer_path()) + .arg("create-exe") + .arg(wasi_test_python_path()) + .arg("--target") + .arg(t) + .arg("-o") + .arg(python_wasmer_path.clone()) + .output()?; + + if !output.status.success() { + bail!( + "linking failed with: stdout: {}\n\nstderr: {}", + std::str::from_utf8(&output.stdout) + .expect("stdout is not utf8! need to handle arbitrary bytes"), + std::str::from_utf8(&output.stderr) + .expect("stderr is not utf8! need to handle arbitrary bytes") + ); + } - if !output.status.success() { - bail!( - "linking failed with: stdout: {}\n\nstderr: {}", - std::str::from_utf8(&output.stdout) - .expect("stdout is not utf8! need to handle arbitrary bytes"), - std::str::from_utf8(&output.stderr) - .expect("stderr is not utf8! need to handle arbitrary bytes") - ); + assert!(python_wasmer_path.exists()); } Ok(()) From 493f393abc320d529e92d966c217fa78753d2064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 12:29:07 +0100 Subject: [PATCH 17/34] Update debug output to debug why create-exe on Windows doesn't output anything --- lib/cli/src/commands/create_exe.rs | 7 +++++++ tests/integration/cli/tests/run.rs | 28 +++++++++++++++++++--------- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 73a33d5f3bc..da1e53942d3 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -550,6 +550,8 @@ impl CreateExe { header_code_path = std::env::current_dir()?; } + println!("Output result to: {}", output_path.display()); + /* Compile main function */ let compilation = { let mut include_dir = libwasmer_path.clone(); @@ -565,6 +567,10 @@ impl CreateExe { cmd.arg("--library"); cmd.arg("c"); cmd.arg("-OReleaseSafe"); + cmd.arg("-fstrip"); + cmd.arg("-dead_strip"); + cmd.arg("-dead_strip_dylibs"); + cmd.arg("--verbose-cc"); cmd.arg(&format!("-femit-bin={}", output_path.display())); if !zig_triple.contains("windows") { @@ -579,6 +585,7 @@ impl CreateExe { cmd.arg(volume_obj.clone()); } + println!("{:?}", cmd); cmd.output().context("Could not execute `zig`")? }; if !compilation.status.success() { diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index b5fb3572dea..6954095ac6d 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -25,7 +25,6 @@ fn test_no_start_wat_path() -> String { #[test] fn test_cross_compile_python_windows() -> anyhow::Result<()> { let temp_dir = tempfile::TempDir::new()?; - let python_wasmer_path = temp_dir.path().join("python.exe"); let targets = &[ "aarch64-darwin", @@ -36,6 +35,8 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> { ]; for t in targets { + let python_wasmer_path = temp_dir.path().join(format!("{t}-python")); + let output = Command::new(get_wasmer_path()) .arg("create-exe") .arg(wasi_test_python_path()) @@ -45,17 +46,26 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> { .arg(python_wasmer_path.clone()) .output()?; + let stdout = std::str::from_utf8(&output.stdout) + .expect("stdout is not utf8! need to handle arbitrary bytes"); + + let stderr = std::str::from_utf8(&output.stderr) + .expect("stderr is not utf8! need to handle arbitrary bytes"); + if !output.status.success() { - bail!( - "linking failed with: stdout: {}\n\nstderr: {}", - std::str::from_utf8(&output.stdout) - .expect("stdout is not utf8! need to handle arbitrary bytes"), - std::str::from_utf8(&output.stderr) - .expect("stderr is not utf8! need to handle arbitrary bytes") - ); + bail!("linking failed with: stdout: {stdout}\n\nstderr: {stderr}"); } - assert!(python_wasmer_path.exists()); + println!("stdout: {stdout}"); + println!("stderr: {stderr}"); + + if !python_wasmer_path.exists() { + let p = std::fs::read_dir(temp_dir.path()) + .unwrap() + .filter_map(|e| Some(e.ok()?.path())) + .collect::>(); + println!("p: {:#?}", p); + } } Ok(()) From c60a04c8843041ee76ffe08f9846c29d43c95b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 13:43:00 +0100 Subject: [PATCH 18/34] Add more debug to the zig autoinstallation --- lib/cli/src/commands/create_exe.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index da1e53942d3..5e685b3abdc 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1730,7 +1730,8 @@ fn install_zig(target_targz_path: &Path) -> Result { } let native_host_url = latest_version_json.get_native_host_url().ok_or_else(|| { - anyhow!("could not get native host url for target {latest_version_json:#?}") + let native_host = format!("{}", target_lexicon::HOST); + anyhow!("could not get native host url for target {native_host:?}: {latest_version_json:#?}") })?; let _ = std::fs::create_dir_all(&install_dir); wasmer_registry::download_and_unpack_targz(&native_host_url, &install_dir, true).context( From ec13f470712f77474c7b04d467fa019be0473c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 13:50:08 +0100 Subject: [PATCH 19/34] Remove try_autoinstall_zig function --- lib/cli/src/commands/create_exe.rs | 161 ----------------------------- 1 file changed, 161 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 5e685b3abdc..3e6f000bbbf 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1616,22 +1616,6 @@ fn find_zig_binary(path: Option) -> Result { } } retval - .or_else(|| { - #[cfg(feature = "http")] - { - match try_autoinstall_zig() { - Ok(p) => Some(p.join(get_zig_exe_str())), - Err(e) => { - eprintln!("Error when installing zig: {e}"); - None - } - } - } - #[cfg(not(feature = "http"))] - { - None - } - }) .ok_or_else(|| anyhow!("Could not find `zig` binary in PATH."))? }; @@ -1660,148 +1644,3 @@ fn find_zig_binary(path: Option) -> Result { Ok(retval) } } - -fn get_zig_exe_str() -> &'static str { - #[cfg(target_os = "windows")] - { - "zig.exe" - } - #[cfg(not(target_os = "windows"))] - { - "zig" - } -} - -/// Tries to auto-install zig into ~/.wasmer/utils/zig/{version} -#[cfg(feature = "http")] -fn try_autoinstall_zig() -> Result { - let zig_dir = wasmer_registry::get_wasmer_root_dir() - .ok_or_else(|| anyhow!("no wasmer root dir"))? - .join("utils") - .join(get_zig_exe_str()); - let mut existing_version = None; - - if !zig_dir.exists() { - return install_zig(&zig_dir); - } - - if let Ok(mut rd) = std::fs::read_dir(&zig_dir) { - existing_version = rd.next().and_then(|entry| { - let string = entry.ok()?.file_name().to_str()?.to_string(); - if zig_dir.join(&string).join(get_zig_exe_str()).exists() { - Some(string) - } else { - None - } - }) - } - - if let Some(exist) = existing_version { - return Ok(zig_dir.join(exist)); - } - - install_zig(&zig_dir) -} - -#[cfg(feature = "http")] -fn install_zig(target_targz_path: &Path) -> Result { - let url = "https://ziglang.org/download/index.json"; - let resp = reqwest::blocking::get(url); - let resp = resp.map_err(|e| anyhow!("{e}")).context(anyhow!("{url}"))?; - let resp = resp.json::(); - let resp = resp.map_err(|e| anyhow!("{e}")).context(anyhow!("{url}"))?; - - let default_key = "master".to_string(); - let (latest_version, latest_version_json) = resp - .versions - .get(&default_key) - .map(|v| (&default_key, v)) - .or_else(|| resp.versions.iter().next()) - .ok_or_else(|| anyhow!("no latest version of zig: {url}"))?; - - let latest_version = match latest_version_json.version.as_ref() { - Some(s) => s, - None => latest_version, - }; - - let install_dir = target_targz_path.join(latest_version); - if install_dir.join(get_zig_exe_str()).exists() { - return Ok(install_dir); - } - - let native_host_url = latest_version_json.get_native_host_url().ok_or_else(|| { - let native_host = format!("{}", target_lexicon::HOST); - anyhow!("could not get native host url for target {native_host:?}: {latest_version_json:#?}") - })?; - let _ = std::fs::create_dir_all(&install_dir); - wasmer_registry::download_and_unpack_targz(&native_host_url, &install_dir, true).context( - anyhow!( - "could not unpack {native_host_url} into {}", - install_dir.display() - ), - ) -} - -#[cfg(feature = "http")] -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] -struct ZiglangOrgJson { - #[serde(flatten)] - versions: BTreeMap, -} - -#[cfg(feature = "http")] -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] -struct ZiglangOrgJsonTarget { - version: Option, - date: String, - src: ZiglangOrgJsonBuildTarget, - #[serde(rename = "x86_64-freebsd")] - x86_64_freebsd: Option, - #[serde(rename = "x86_64-macos")] - x86_64_macos: Option, - #[serde(rename = "aarch64-macos")] - aarch64_macos: Option, - #[serde(rename = "x86_64-windows")] - x86_64_windows: Option, - #[serde(rename = "x86_64-linux")] - x86_64_linux: Option, - #[serde(rename = "aarch64-linux")] - aarch64_linux: Option, -} - -impl ZiglangOrgJsonTarget { - pub fn get_native_host_url(&self) -> Option { - let native_host = format!("{}", target_lexicon::HOST); - if native_host.starts_with("x86_64") { - if native_host.contains("freebsd") { - Some(self.x86_64_freebsd.as_ref()?.tarball.clone()) - } else if native_host.contains("darwin") || native_host.contains("macos") { - Some(self.x86_64_macos.as_ref()?.tarball.clone()) - } else if native_host.contains("windows") { - Some(self.x86_64_windows.as_ref()?.tarball.clone()) - } else if native_host.contains("linux") { - Some(self.x86_64_linux.as_ref()?.tarball.clone()) - } else { - None - } - } else if native_host.starts_with("aarch64") { - if native_host.contains("darwin") || native_host.contains("macos") { - Some(self.aarch64_macos.as_ref()?.tarball.clone()) - } else if native_host.contains("linux") { - Some(self.aarch64_linux.as_ref()?.tarball.clone()) - } else { - None - } - } else { - None - } - } -} - -#[cfg(feature = "http")] -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] -struct ZiglangOrgJsonBuildTarget { - tarball: String, - shasum: String, - size: String, -} From e97118a71cb9b87dd8e0e491e2a0f2a4bb73065a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 13:51:14 +0100 Subject: [PATCH 20/34] Remove windows_underscore specialcase Sebastien suggested this to resolve issues on windows 32 bit, but it didn't help anything --- lib/compiler/src/engine/artifact.rs | 2 -- lib/types/src/compilation/symbols.rs | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/lib/compiler/src/engine/artifact.rs b/lib/compiler/src/engine/artifact.rs index 9591062b206..7d61b543acc 100644 --- a/lib/compiler/src/engine/artifact.rs +++ b/lib/compiler/src/engine/artifact.rs @@ -541,8 +541,6 @@ impl Artifact { let (_compile_info, mut symbol_registry) = metadata.split(); - symbol_registry.set_windows_underscore(true); - let compilation: wasmer_types::compilation::function::Compilation = compiler .compile_module( target, diff --git a/lib/types/src/compilation/symbols.rs b/lib/types/src/compilation/symbols.rs index f02aa3340a7..6971d4f6a11 100644 --- a/lib/types/src/compilation/symbols.rs +++ b/lib/types/src/compilation/symbols.rs @@ -71,25 +71,15 @@ pub struct ModuleMetadata { /// A simple metadata registry pub struct ModuleMetadataSymbolRegistry { - /// Whether to prefix function symbols with a "_" when compiling the object - pub windows_underscore: bool, /// Symbol prefix stirng pub prefix: String, } -impl ModuleMetadataSymbolRegistry { - /// Sets the self.windows_underscore field - pub fn set_windows_underscore(&mut self, b: bool) { - self.windows_underscore = b; - } -} - impl ModuleMetadata { /// Get mutable ref to compile info and a copy of the registry pub fn split(&mut self) -> (&mut CompileModuleInfo, ModuleMetadataSymbolRegistry) { let compile_info = &mut self.compile_info; let symbol_registry = ModuleMetadataSymbolRegistry { - windows_underscore: false, prefix: self.prefix.clone(), }; (compile_info, symbol_registry) @@ -98,7 +88,6 @@ impl ModuleMetadata { /// Returns symbol registry. pub fn get_symbol_registry(&self) -> ModuleMetadataSymbolRegistry { ModuleMetadataSymbolRegistry { - windows_underscore: false, prefix: self.prefix.clone(), } } From 6375a8d19ba6244ed7c6ad9e5e746c62c3aa212b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 13:55:06 +0100 Subject: [PATCH 21/34] Remove unnecessary configuration --- .github/workflows/test-sys.yaml | 3 +-- lib/cli/Cargo.toml | 4 ++-- lib/cli/src/commands/create_exe.rs | 3 +-- lib/compiler/src/engine/artifact.rs | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-sys.yaml b/.github/workflows/test-sys.yaml index 7d3f7f5b390..46d4a769798 100644 --- a/.github/workflows/test-sys.yaml +++ b/.github/workflows/test-sys.yaml @@ -103,11 +103,10 @@ jobs: sudo apt-get update -y sudo apt-get install -y --allow-downgrades libstdc++6=8.4.0-1ubuntu1~18.04 sudo apt-get install --reinstall g++-8 - sudo apt-get install -y gcc-multilib - name: Set up base deps on musl if: matrix.build == 'linux-musl-x64' run: | - apk add build-base bash musl-dev curl make libtool libffi-dev gcc build-base automake autoconf git openssl-dev g++ + apk add build-base bash musl-dev curl make libtool libffi-dev gcc automake autoconf git openssl-dev g++ - name: Install Rust uses: dtolnay/rust-toolchain@stable with: diff --git a/lib/cli/Cargo.toml b/lib/cli/Cargo.toml index e553b8f4135..f58358bd44d 100644 --- a/lib/cli/Cargo.toml +++ b/lib/cli/Cargo.toml @@ -68,7 +68,7 @@ regex = "1.6.0" toml = "0.5.9" url = "2.3.1" libc = { version = "^0.2", default-features = false } -nuke-dir = "0.1.0" +nuke-dir = { version = "0.1.0", optional = true } webc = { version = "3.0.1", optional = true } isatty = "0.1.9" tar = "0.4" @@ -99,7 +99,7 @@ wast = ["wasmer-wast"] wasi = ["wasmer-wasi"] emscripten = ["wasmer-emscripten"] wat = ["wasmer/wat"] -webc_runner = ["wasi", "wasmer-wasi/webc_runner", "wasmer-wasi/webc_runner_rt_wasi", "wasmer-wasi/webc_runner_rt_emscripten", "webc"] +webc_runner = ["wasi", "wasmer-wasi/webc_runner", "wasmer-wasi/webc_runner_rt_wasi", "wasmer-wasi/webc_runner_rt_emscripten", "nuke-dir", "webc"] compiler = [ "wasmer-compiler/translator", "wasmer-compiler/compiler", diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 3e6f000bbbf..ce7cbbfa1e5 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1615,8 +1615,7 @@ fn find_zig_binary(path: Option) -> Result { break; } } - retval - .ok_or_else(|| anyhow!("Could not find `zig` binary in PATH."))? + retval.ok_or_else(|| anyhow!("Could not find `zig` binary in PATH."))? }; let version = std::process::Command::new(&retval) diff --git a/lib/compiler/src/engine/artifact.rs b/lib/compiler/src/engine/artifact.rs index 7d61b543acc..b436c2da8d6 100644 --- a/lib/compiler/src/engine/artifact.rs +++ b/lib/compiler/src/engine/artifact.rs @@ -539,7 +539,7 @@ impl Artifact { metadata_binary.extend(MetadataHeader::new(serialized_data.len()).into_bytes()); metadata_binary.extend(serialized_data); - let (_compile_info, mut symbol_registry) = metadata.split(); + let (_compile_info, symbol_registry) = metadata.split(); let compilation: wasmer_types::compilation::function::Compilation = compiler .compile_module( From aafd57ca9ecf508cde1aac786d32a5bf9c27df4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 13:58:37 +0100 Subject: [PATCH 22/34] Remove unpack zip functionality from unpack_tar_gz --- Cargo.lock | 72 ++---------------------------- lib/cli/Cargo.toml | 2 +- lib/cli/src/commands/create_exe.rs | 11 +++++ lib/registry/Cargo.toml | 1 - lib/registry/src/lib.rs | 14 +----- 5 files changed, 17 insertions(+), 83 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 989b28d1144..d43d2adc70a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,27 +270,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c58ec36aac5066d5ca17df51b3e70279f5670a72102f5752cb7e7c856adfc70" -[[package]] -name = "bzip2" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6afcd980b5f3a45017c57e57a2fcccbb351cc43a356ce117ef760ef8052b89b0" -dependencies = [ - "bzip2-sys", - "libc", -] - -[[package]] -name = "bzip2-sys" -version = "0.1.11+1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" -dependencies = [ - "cc", - "libc", - "pkg-config", -] - [[package]] name = "cast" version = "0.3.0" @@ -1278,7 +1257,7 @@ dependencies = [ "cfg-if 1.0.0", "js-sys", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "wasm-bindgen", ] @@ -1956,7 +1935,7 @@ checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" dependencies = [ "libc", "log", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys 0.42.0", ] @@ -3317,17 +3296,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "time" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi", -] - [[package]] name = "time" version = "0.2.27" @@ -3710,12 +3678,6 @@ dependencies = [ "toml", ] -[[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -4144,7 +4106,7 @@ dependencies = [ "lazy_static", "libc", "log", - "time 0.2.27", + "time", "wasmer", "wasmer-types", ] @@ -4231,7 +4193,6 @@ dependencies = [ "url", "wapm-toml", "whoami", - "zip-extract", ] [[package]] @@ -4366,7 +4327,7 @@ dependencies = [ "byteorder", "pretty_assertions", "serde", - "time 0.2.27", + "time", "wasmer", "wasmer-derive", "wasmer-types", @@ -4897,28 +4858,3 @@ name = "yansi" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" - -[[package]] -name = "zip" -version = "0.5.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93ab48844d61251bb3835145c521d88aa4031d7139e8485990f60ca911fa0815" -dependencies = [ - "byteorder", - "bzip2", - "crc32fast", - "flate2", - "thiserror", - "time 0.1.44", -] - -[[package]] -name = "zip-extract" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c5cc0309f6e81ab96c2b43d5e935025f8732c886690be8f78f68e06bad1d274" -dependencies = [ - "log", - "thiserror", - "zip", -] diff --git a/lib/cli/Cargo.toml b/lib/cli/Cargo.toml index f58358bd44d..6205b6f7f0c 100644 --- a/lib/cli/Cargo.toml +++ b/lib/cli/Cargo.toml @@ -59,7 +59,7 @@ http_req = { version="^0.8", default-features = false, features = ["rust-tls"], reqwest = { version = "^0.11", default-features = false, feature = ["rustls-tls", "json"], optional = true } serde = { version = "1.0.147", features = ["derive"], optional = true } dirs = { version = "4.0", optional = true } -serde_json = { version = "1.0", optional = true } +serde_json = { version = "1.0", optional = true } target-lexicon = { version = "0.12", features = ["std"] } prettytable-rs = "0.9.0" wapm-toml = "0.2.0" diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index ce7cbbfa1e5..7dc959714c4 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1579,6 +1579,17 @@ fn untar(tarball: std::path::PathBuf, target: std::path::PathBuf) -> Result &'static str { + #[cfg(target_os = "windows")] + { + "zig.exe" + } + #[cfg(not(target_os = "windows"))] + { + "zig" + } +} + fn find_zig_binary(path: Option) -> Result { use std::env::split_paths; use std::ffi::OsStr; diff --git a/lib/registry/Cargo.toml b/lib/registry/Cargo.toml index a90bd94b685..a354ae20ba4 100644 --- a/lib/registry/Cargo.toml +++ b/lib/registry/Cargo.toml @@ -21,5 +21,4 @@ tar = "0.4.38" flate2 = "1.0.24" semver = "1.0.14" lzma-rs = "0.2.0" -zip-extract = "0.1.1" tempdir = "0.3.7" \ No newline at end of file diff --git a/lib/registry/src/lib.rs b/lib/registry/src/lib.rs index ba541f28d96..f79d89e1383 100644 --- a/lib/registry/src/lib.rs +++ b/lib/registry/src/lib.rs @@ -960,16 +960,6 @@ pub fn try_unpack_targz>( .map_err(|e| anyhow::anyhow!("failed to open {}: {e}", target_targz_path.display())) }; - let try_decode_zip = || { - let file = open_file()?; - zip_extract::extract(file, target_targz_path, strip_toplevel).map_err(|e| { - anyhow::anyhow!( - "could not extract zip file {}: {e}", - target_targz_path.display() - ) - }) - }; - let try_decode_gz = || { let file = open_file()?; let gz_decoded = flate2::read::GzDecoder::new(&file); @@ -1006,9 +996,7 @@ pub fn try_unpack_targz>( } }; - try_decode_gz() - .or_else(|_| try_decode_xz()) - .or_else(|_| try_decode_zip())?; + try_decode_gz().or_else(|_| try_decode_xz())?; Ok(target_targz_path.to_path_buf()) } From 0778ddf99f77c0aa618b51d50d63ef2c1c3d43b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 14:00:55 +0100 Subject: [PATCH 23/34] Revert renaming wasm.o / wasm.obj differences --- tests/integration/cli/tests/create_exe.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/integration/cli/tests/create_exe.rs b/tests/integration/cli/tests/create_exe.rs index 4cdf9530b74..f99b035fd66 100644 --- a/tests/integration/cli/tests/create_exe.rs +++ b/tests/integration/cli/tests/create_exe.rs @@ -91,6 +91,9 @@ struct WasmerCreateObj { impl Default for WasmerCreateObj { fn default() -> Self { + #[cfg(not(windows))] + let output_object_path = PathBuf::from("wasm.o"); + #[cfg(windows)] let output_object_path = PathBuf::from("wasm.obj"); Self { current_dir: std::env::current_dir().unwrap(), @@ -268,6 +271,9 @@ fn create_obj(args: Vec<&'static str>, keyword_needle: &str, keyword: &str) -> a let wasm_path = operating_dir.join(create_exe_test_wasm_path()); + #[cfg(not(windows))] + let object_path = operating_dir.join("wasm.o"); + #[cfg(windows)] let object_path = operating_dir.join("wasm.obj"); let output: Vec = WasmerCreateObj { @@ -330,6 +336,9 @@ fn create_exe_with_object_input(args: Vec<&'static str>) -> anyhow::Result<()> { let wasm_path = operating_dir.join(create_exe_test_wasm_path()); + #[cfg(not(windows))] + let object_path = operating_dir.join("wasm.o"); + #[cfg(windows)] let object_path = operating_dir.join("wasm.obj"); WasmerCreateObj { From 676e1cc0d6b60d04e859260b084f102b9ce72b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 14:04:29 +0100 Subject: [PATCH 24/34] Revert more .o / .obj renaming --- lib/cli/Cargo.toml | 4 ++-- lib/cli/src/commands/create_exe.rs | 23 +++++++++++++++++++---- tests/integration/cli/tests/create_exe.rs | 12 ++++++------ 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/lib/cli/Cargo.toml b/lib/cli/Cargo.toml index 6205b6f7f0c..3c203a5a3ec 100644 --- a/lib/cli/Cargo.toml +++ b/lib/cli/Cargo.toml @@ -59,7 +59,7 @@ http_req = { version="^0.8", default-features = false, features = ["rust-tls"], reqwest = { version = "^0.11", default-features = false, feature = ["rustls-tls", "json"], optional = true } serde = { version = "1.0.147", features = ["derive"], optional = true } dirs = { version = "4.0", optional = true } -serde_json = { version = "1.0", optional = true } +serde_json = { version = "1.0", optional = true } target-lexicon = { version = "0.12", features = ["std"] } prettytable-rs = "0.9.0" wapm-toml = "0.2.0" @@ -68,7 +68,7 @@ regex = "1.6.0" toml = "0.5.9" url = "2.3.1" libc = { version = "^0.2", default-features = false } -nuke-dir = { version = "0.1.0", optional = true } +nuke-dir = { version = "0.1.0", optional = true } webc = { version = "3.0.1", optional = true } isatty = "0.1.9" tar = "0.4" diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 7dc959714c4..04e13b1bde0 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -226,6 +226,9 @@ impl CreateExe { println!("Target: {}", target.triple()); println!("Format: {:?}", object_format); + #[cfg(not(windows))] + let wasm_object_path = PathBuf::from("wasm.o"); + #[cfg(windows)] let wasm_object_path = PathBuf::from("wasm.obj"); if let Some(header_path) = self.header.as_ref() { @@ -404,10 +407,10 @@ impl CreateExe { } else { { let os = target_triple.unwrap_or(Triple::host()).operating_system; - let libwasmer_path = match os { - OperatingSystem::Windows => "lib/wasmer.lib", - // OperatingSystem::Darwin => "lib/libwasmer.dylib", - _ => "lib/libwasmer.a", + let libwasmer_path = if os == OperatingSystem::Windows { + "lib/wasmer.lib" + } else { + "lib/libwasmer.a" }; let tarball_dir; let filename = if let Some(local_tarball) = cross_subc.tarball.as_ref() { @@ -476,6 +479,9 @@ impl CreateExe { // write C src to disk let c_src_path = tempdir_path.join("wasmer_main.c"); + #[cfg(not(windows))] + let c_src_obj = tempdir_path.join("wasmer_main.o"); + #[cfg(windows)] let c_src_obj = tempdir_path.join("wasmer_main.obj"); std::fs::write( @@ -604,6 +610,9 @@ impl CreateExe { target: &Target, output_path: &Path, ) -> anyhow::Result { + #[cfg(not(windows))] + let volume_object_path = output_path.join("volumes.o"); + #[cfg(windows)] let volume_object_path = output_path.join("volumes.obj"); let mut volumes_object = get_object_for_target(target.triple())?; @@ -654,6 +663,9 @@ impl CreateExe { for (atom_name, atom_bytes) in file.get_all_atoms() { std::fs::create_dir_all(output_path.join("atoms"))?; + #[cfg(not(windows))] + let object_path = output_path.join("atoms").join(&format!("{atom_name}.o")); + #[cfg(windows)] let object_path = output_path.join("atoms").join(&format!("{atom_name}.obj")); std::fs::create_dir_all(output_path.join("atoms").join(&atom_name))?; @@ -761,6 +773,9 @@ impl CreateExe { link_objects.push(volume_object_path); + #[cfg(not(windows))] + let c_src_obj = tempdir_path.join("wasmer_main.o"); + #[cfg(windows)] let c_src_obj = working_dir.join("wasmer_main.obj"); for obj in std::fs::read_dir(working_dir.join("atoms"))? { diff --git a/tests/integration/cli/tests/create_exe.rs b/tests/integration/cli/tests/create_exe.rs index f99b035fd66..866bef6a5ae 100644 --- a/tests/integration/cli/tests/create_exe.rs +++ b/tests/integration/cli/tests/create_exe.rs @@ -91,8 +91,8 @@ struct WasmerCreateObj { impl Default for WasmerCreateObj { fn default() -> Self { - #[cfg(not(windows))] - let output_object_path = PathBuf::from("wasm.o"); + #[cfg(not(windows))] + let output_object_path = PathBuf::from("wasm.o"); #[cfg(windows)] let output_object_path = PathBuf::from("wasm.obj"); Self { @@ -271,8 +271,8 @@ fn create_obj(args: Vec<&'static str>, keyword_needle: &str, keyword: &str) -> a let wasm_path = operating_dir.join(create_exe_test_wasm_path()); - #[cfg(not(windows))] - let object_path = operating_dir.join("wasm.o"); + #[cfg(not(windows))] + let object_path = operating_dir.join("wasm.o"); #[cfg(windows)] let object_path = operating_dir.join("wasm.obj"); @@ -336,8 +336,8 @@ fn create_exe_with_object_input(args: Vec<&'static str>) -> anyhow::Result<()> { let wasm_path = operating_dir.join(create_exe_test_wasm_path()); - #[cfg(not(windows))] - let object_path = operating_dir.join("wasm.o"); + #[cfg(not(windows))] + let object_path = operating_dir.join("wasm.o"); #[cfg(windows)] let object_path = operating_dir.join("wasm.obj"); From a854775227186ca1a433f371f21fc12ad3c74a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 14:08:32 +0100 Subject: [PATCH 25/34] Last .o / .obj renaming --- lib/cli/src/commands/create_exe.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 04e13b1bde0..755bef43d28 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -774,7 +774,7 @@ impl CreateExe { link_objects.push(volume_object_path); #[cfg(not(windows))] - let c_src_obj = tempdir_path.join("wasmer_main.o"); + let c_src_obj = working_dir.join("wasmer_main.o"); #[cfg(windows)] let c_src_obj = working_dir.join("wasmer_main.obj"); @@ -864,7 +864,7 @@ impl CreateExe { } } ObjectFormat::Symbols => { - let object_file_path = working_dir.join("atoms").join(&format!("{entrypoint}.obj")); + let object_file_path = working_dir.join("atoms").join(&format!("{entrypoint}.o")); let static_defs_file_path = working_dir .join("atoms") .join(&entrypoint) From 87e00f735bccd4171f711a58c8c442e6871d0eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 16 Nov 2022 14:10:10 +0100 Subject: [PATCH 26/34] Panic in integration test --- tests/integration/cli/tests/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index 6954095ac6d..4fc396ccbfa 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -64,7 +64,7 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> { .unwrap() .filter_map(|e| Some(e.ok()?.path())) .collect::>(); - println!("p: {:#?}", p); + panic!("target {t} was not compiled correctly {stdout} {stderr}, tempdir: {:#?}", p); } } From 9bedc0a8f72313257cdf07a9a18f26c183b2aae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 18 Nov 2022 11:35:47 +0100 Subject: [PATCH 27/34] Fix merge issues --- lib/registry/src/lib.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/registry/src/lib.rs b/lib/registry/src/lib.rs index 00d9b1bed83..3e8349e3fb8 100644 --- a/lib/registry/src/lib.rs +++ b/lib/registry/src/lib.rs @@ -8,6 +8,8 @@ //! curl -sSfL https://registry.wapm.io/graphql/schema.graphql > lib/registry/graphql/schema.graphql //! ``` +use crate::config::Registries; +use anyhow::Context; use std::fmt; use std::path::{Path, PathBuf}; use std::time::Duration; @@ -15,9 +17,6 @@ use std::{ collections::BTreeMap, fmt::{Display, Formatter}, }; -use anyhow::Context; -use serde::Deserialize; -use serde::Serialize; pub mod config; pub mod graphql; @@ -29,9 +28,6 @@ pub use crate::{ graphql::get_bindings_query::ProgrammingLanguage, }; -use crate::config::Registries; -use anyhow::Context; - pub static GLOBAL_CONFIG_FILE_NAME: &str = if cfg!(target_os = "wasi") { "/.private/wapm.toml" } else { From a81344e29dbb0ec324ffe36a15087bdcdaea3286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 18 Nov 2022 11:35:57 +0100 Subject: [PATCH 28/34] Fix windows-gnu create-exe --- lib/cli/src/commands/create_exe.rs | 33 ++++++++++++++++-------------- tests/integration/cli/tests/run.rs | 22 ++++++++++++-------- 2 files changed, 31 insertions(+), 24 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 59a1921053e..d86bcee7137 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -407,12 +407,7 @@ impl CreateExe { v.canonicalize().unwrap_or(v) } else { { - let os = target_triple.unwrap_or(Triple::host()).operating_system; - let libwasmer_path = if os == OperatingSystem::Windows { - "lib/wasmer.lib" - } else { - "lib/libwasmer.a" - }; + let libwasmer_path = "lib/libwasmer.a"; let tarball_dir; let filename = if let Some(local_tarball) = cross_subc.tarball.as_ref() { let target_file_path = local_tarball @@ -571,23 +566,31 @@ impl CreateExe { cmd.arg(&zig_triple); cmd.arg(&format!("-I{}/", include_dir.display())); cmd.arg(&format!("-I{}/", header_code_path.display())); - cmd.arg("--library"); - cmd.arg("c"); + if zig_triple.contains("windows") { + cmd.arg("-lc++"); + } else { + cmd.arg("-lc"); + } + cmd.arg("-lunwind"); cmd.arg("-OReleaseSafe"); cmd.arg("-fstrip"); cmd.arg("-dead_strip"); cmd.arg("-dead_strip_dylibs"); - cmd.arg("--verbose-cc"); + cmd.arg("-fno-compiler-rt"); cmd.arg(&format!("-femit-bin={}", output_path.display())); - if !zig_triple.contains("windows") { - cmd.arg("-lunwind"); - } - cmd.arg(&object_path); cmd.arg(&c_src_path); - cmd.arg(libwasmer_path.join(lib_filename)); - + cmd.arg(libwasmer_path.join(&lib_filename)); + if zig_triple.contains("windows") { + let mut libwasmer_parent = libwasmer_path.clone(); + libwasmer_parent.pop(); + cmd.arg(libwasmer_parent.join("winsdk/ADVAPI32.lib")); + cmd.arg(libwasmer_parent.join("winsdk/BCRYPT.lib")); + cmd.arg(libwasmer_parent.join("winsdk/KERNEL32.lib")); + cmd.arg(libwasmer_parent.join("winsdk/USERENV.lib")); + cmd.arg(libwasmer_parent.join("winsdk/WS2_32.lib")); + } if let Some(volume_obj) = pirita_volume_path.as_ref() { cmd.arg(volume_obj.clone()); } diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index 4fc396ccbfa..2ef9187d606 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -37,14 +37,15 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> { for t in targets { let python_wasmer_path = temp_dir.path().join(format!("{t}-python")); - let output = Command::new(get_wasmer_path()) - .arg("create-exe") - .arg(wasi_test_python_path()) - .arg("--target") - .arg(t) - .arg("-o") - .arg(python_wasmer_path.clone()) - .output()?; + let mut output = Command::new(get_wasmer_path()); + + output.arg("create-exe"); + output.arg(wasi_test_python_path()); + output.arg("--target"); + output.arg(t); + output.arg("-o"); + output.arg(python_wasmer_path.clone()); + let output = output.output()?; let stdout = std::str::from_utf8(&output.stdout) .expect("stdout is not utf8! need to handle arbitrary bytes"); @@ -64,7 +65,10 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> { .unwrap() .filter_map(|e| Some(e.ok()?.path())) .collect::>(); - panic!("target {t} was not compiled correctly {stdout} {stderr}, tempdir: {:#?}", p); + panic!( + "target {t} was not compiled correctly {stdout} {stderr}, tempdir: {:#?}", + p + ); } } From 195ec847eed80f0e85e4f05125ff18e55ce1fdfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 18 Nov 2022 11:50:10 +0100 Subject: [PATCH 29/34] Download -gnu64.tar.gz on Windows, fix make lint --- lib/cli/src/commands/create_exe.rs | 95 ++++++++++++++++++------------ 1 file changed, 58 insertions(+), 37 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index d86bcee7137..d8bfd5e2d87 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -4,10 +4,6 @@ use super::ObjectFormat; use crate::store::CompilerOptions; use anyhow::{Context, Result}; use clap::Parser; -#[cfg(feature = "http")] -use serde::{Deserialize, Serialize}; -#[cfg(feature = "http")] -use std::collections::BTreeMap; use std::env; use std::fmt::Write as _; use std::fs; @@ -372,7 +368,7 @@ impl CreateExe { )); } - let target = if let Some(target_triple) = target_triple.clone() { + let target = if let Some(target_triple) = target_triple { target_triple } else { return Err(anyhow!( @@ -1368,6 +1364,7 @@ mod http_fetch { use anyhow::{anyhow, Context, Result}; use http_req::{request::Request, response::StatusCode, uri::Uri}; use std::convert::TryFrom; + use target_lexicon::OperatingSystem; pub fn get_latest_release() -> Result { let mut writer = Vec::new(); @@ -1456,11 +1453,23 @@ mod http_fetch { }); if let Ok(mut entries) = paths { - entries.retain(|p| p.to_str().map(|p| check_arch(p)).unwrap_or(true)); - entries.retain(|p| p.to_str().map(|p| check_vendor(p)).unwrap_or(true)); - entries.retain(|p| p.to_str().map(|p| check_os(p)).unwrap_or(true)); - entries.retain(|p| p.to_str().map(|p| check_env(p)).unwrap_or(true)); entries.retain(|p| p.to_str().map(|p| p.ends_with(".tar.gz")).unwrap_or(false)); + + // create-exe on Windows is special: we use the windows-gnu64.tar.gz (GNU ABI) + // to link, not the windows-amd64.tar.gz (MSVC ABI) + if target_triple.operating_system == OperatingSystem::Windows { + entries.retain(|p| { + p.to_str() + .map(|p| p.contains("windows") && p.contains("gnu64")) + .unwrap_or(false) + }); + } else { + entries.retain(|p| p.to_str().map(|p| check_arch(p)).unwrap_or(true)); + entries.retain(|p| p.to_str().map(|p| check_vendor(p)).unwrap_or(true)); + entries.retain(|p| p.to_str().map(|p| check_os(p)).unwrap_or(true)); + entries.retain(|p| p.to_str().map(|p| check_env(p)).unwrap_or(true)); + } + if !entries.is_empty() { cache_path.push(&entries[0]); if cache_path.exists() { @@ -1483,36 +1492,48 @@ mod http_fetch { } }; - assets.retain(|a| { - if let Some(name) = a["name"].as_str() { - check_arch(name) - } else { - false - } - }); - assets.retain(|a| { - if let Some(name) = a["name"].as_str() { - check_vendor(name) - } else { - false - } - }); + // create-exe on Windows is special: we use the windows-gnu64.tar.gz (GNU ABI) + // to link, not the windows-amd64.tar.gz (MSVC ABI) + if target_triple.operating_system == OperatingSystem::Windows { + assets.retain(|a| { + if let Some(name) = a["name"].as_str() { + name.contains("windows") && name.contains("gnu64") + } else { + false + } + }); + } else { + assets.retain(|a| { + if let Some(name) = a["name"].as_str() { + check_arch(name) + } else { + false + } + }); + assets.retain(|a| { + if let Some(name) = a["name"].as_str() { + check_vendor(name) + } else { + false + } + }); - assets.retain(|a| { - if let Some(name) = a["name"].as_str() { - check_os(name) - } else { - false - } - }); + assets.retain(|a| { + if let Some(name) = a["name"].as_str() { + check_os(name) + } else { + false + } + }); - assets.retain(|a| { - if let Some(name) = a["name"].as_str() { - check_env(name) - } else { - false - } - }); + assets.retain(|a| { + if let Some(name) = a["name"].as_str() { + check_env(name) + } else { + false + } + }); + } if assets.len() != 1 { return Err(anyhow!( From a6acb6b0224911c576453b9221978f93205e02ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 18 Nov 2022 11:51:55 +0100 Subject: [PATCH 30/34] Remove windows target for the -rc.5 release --- tests/integration/cli/tests/run.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index 2ef9187d606..6e2a3f17fb4 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -31,7 +31,13 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> { "x86_64-darwin", "x86_64-linux-gnu", "aarch64-linux-gnu", - "x86_64-windows-gnu", + // TODO: this test depends on the latest release -gnu64.tar.gz + // to be present, but we can't release the next release before + // the integration tests are passing, so this test depends on itself + // + // We need to first release a version without -windows being tested + // then do a second PR to test that Windows works. + // "x86_64-windows-gnu", ]; for t in targets { From b5d089649294716f00bafbbcb008f78bff481a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 18 Nov 2022 11:58:52 +0100 Subject: [PATCH 31/34] Fix make lint --- tests/integration/cli/tests/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index 6e2a3f17fb4..c43fe52b396 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -34,7 +34,7 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> { // TODO: this test depends on the latest release -gnu64.tar.gz // to be present, but we can't release the next release before // the integration tests are passing, so this test depends on itself - // + // // We need to first release a version without -windows being tested // then do a second PR to test that Windows works. // "x86_64-windows-gnu", From be6f63f41a9c26eedc547046b0657423d3a26433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 18 Nov 2022 12:21:55 +0100 Subject: [PATCH 32/34] Add zig to integration-tests --- .github/workflows/test-sys.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-sys.yaml b/.github/workflows/test-sys.yaml index 9808452ce91..760fd801972 100644 --- a/.github/workflows/test-sys.yaml +++ b/.github/workflows/test-sys.yaml @@ -97,6 +97,9 @@ jobs: SCCACHE_AZURE_CONNECTION_STRING: ${{ secrets.SCCACHE_AZURE_CONNECTION_STRING }} steps: - uses: actions/checkout@v3 + - uses: goto-bus-stop/setup-zig@v2 + with: + version: 0.10.0 - name: Set up libstdc++ on Linux if: matrix.build == 'linux-x64' run: | From 71563bc21f5c4f4b7919e3bfa6522a3388dbe508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 18 Nov 2022 16:35:38 +0100 Subject: [PATCH 33/34] Turn error into warning for failing GH API fetch, print response --- lib/cli/src/commands/create_exe.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index d8bfd5e2d87..72107fdce3c 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1379,10 +1379,11 @@ mod http_fetch { .context("Could not lookup wasmer repository on Github.")?; if response.status_code() != StatusCode::new(200) { - return Err(anyhow!( - "Github API replied with non-200 status code: {}", - response.status_code() - )); + eprintln!( + "Warning: Github API replied with non-200 status code: {}. Response: {}", + response.status_code(), + String::from_utf8_lossy(&writer), + ); } let v: std::result::Result = serde_json::from_reader(&*writer); From db299b895d1b1ef3cd82ba4e92045be4f7bf8f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 18 Nov 2022 17:34:17 +0100 Subject: [PATCH 34/34] Authenticate requests to /release page with GITHUB_TOKEN in CI --- .github/workflows/test-sys.yaml | 1 + lib/cli/src/commands/create_exe.rs | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-sys.yaml b/.github/workflows/test-sys.yaml index 760fd801972..73f8df84cea 100644 --- a/.github/workflows/test-sys.yaml +++ b/.github/workflows/test-sys.yaml @@ -214,6 +214,7 @@ jobs: TARGET_DIR: target/${{ matrix.target }}/release CARGO_TARGET: --target ${{ matrix.target }} WAPM_DEV_TOKEN: ${{ secrets.WAPM_DEV_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #- name: Test integration CLI # if: matrix.run_test && matrix.os == 'windows-2019' diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 72107fdce3c..bc69b5c0be2 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -1370,8 +1370,16 @@ mod http_fetch { let mut writer = Vec::new(); let uri = Uri::try_from("https://api.github.com/repos/wasmerio/wasmer/releases").unwrap(); - let response = Request::new(&uri) - .header("User-Agent", "wasmer") + // Increases rate-limiting in GitHub CI + let auth = std::env::var("GITHUB_TOKEN"); + let mut response = Request::new(&uri); + + if let Ok(token) = auth { + response.header("Authorization", &format!("Bearer {token}")); + } + + let response = response + .header("User-Agent", "wasmerio") .header("Accept", "application/vnd.github.v3+json") .timeout(Some(std::time::Duration::new(30, 0))) .send(&mut writer)