$ cmake .. -GNinja -DCMAKE_TOOLCHAIN_FILE=$HOME/Library/Android/sdk/ndk/25.2.9519653/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-27 -DBUILD_SHARED_LIBS=YES -- The C compiler identification is Clang 14.0.7 -- The CXX compiler identification is Clang 14.0.7 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Looking for __GNU_LIBRARY__ -- Looking for __GNU_LIBRARY__ - not found -- Performing Test __BUILTIN_TRAP -- Performing Test __BUILTIN_TRAP - Success -- Looking for _pthread_workqueue_init -- Looking for _pthread_workqueue_init - not found -- Looking for getprogname -- Looking for getprogname - found -- Looking for mach_absolute_time -- Looking for mach_absolute_time - not found -- Looking for mach_approximate_time -- Looking for mach_approximate_time - not found -- Looking for mach_port_construct -- Looking for mach_port_construct - not found -- Looking for malloc_create_zone -- Looking for malloc_create_zone - not found -- Looking for posix_fadvise -- Looking for posix_fadvise - found -- Looking for posix_spawnp -- Looking for posix_spawnp - not found -- Looking for pthread_key_init_np -- Looking for pthread_key_init_np - not found -- Looking for pthread_attr_setcpupercent_np -- Looking for pthread_attr_setcpupercent_np - not found -- Looking for pthread_yield_np -- Looking for pthread_yield_np - not found -- Looking for pthread_main_np -- Looking for pthread_main_np - not found -- Looking for pthread_workqueue_setdispatch_np -- Looking for pthread_workqueue_setdispatch_np - not found -- Looking for strlcpy -- Looking for strlcpy - found -- Looking for sysconf -- Looking for sysconf - found -- Looking for arc4random -- Looking for arc4random - found -- Looking for include file TargetConditionals.h -- Looking for include file TargetConditionals.h - not found -- Looking for include file dlfcn.h -- Looking for include file dlfcn.h - found -- Looking for include file fcntl.h -- Looking for include file fcntl.h - found -- Looking for include file inttypes.h -- Looking for include file inttypes.h - found -- Looking for include file libkern/OSAtomic.h -- Looking for include file libkern/OSAtomic.h - not found -- Looking for include file libkern/OSCrossEndian.h -- Looking for include file libkern/OSCrossEndian.h - not found -- Looking for include file libproc_internal.h -- Looking for include file libproc_internal.h - not found -- Looking for include file mach/mach.h -- Looking for include file mach/mach.h - not found -- Looking for include file malloc/malloc.h -- Looking for include file malloc/malloc.h - not found -- Looking for include file memory.h -- Looking for include file memory.h - found -- Looking for include file pthread/qos.h -- Looking for include file pthread/qos.h - not found -- Looking for include file pthread/workqueue_private.h -- Looking for include file pthread/workqueue_private.h - not found -- Looking for include file pthread_machdep.h -- Looking for include file pthread_machdep.h - not found -- Looking for include file pthread_np.h -- Looking for include file pthread_np.h - not found -- Looking for include file pthread_workqueue.h -- Looking for include file pthread_workqueue.h - not found -- Looking for include file stdint.h -- Looking for include file stdint.h - found -- Looking for include file stdlib.h -- Looking for include file stdlib.h - found -- Looking for include file string.h -- Looking for include file string.h - found -- Looking for include file strings.h -- Looking for include file strings.h - found -- Looking for include file sys/guarded.h -- Looking for include file sys/guarded.h - not found -- Looking for include file sys/stat.h -- Looking for include file sys/stat.h - found -- Looking for include file sys/types.h -- Looking for include file sys/types.h - found -- Looking for include file objc/objc-internal.h -- Looking for include file objc/objc-internal.h - not found -- Looking for sem_init in pthread -- Looking for sem_init in pthread - not found -- Looking for CLOCK_UPTIME -- Looking for CLOCK_UPTIME - not found -- Looking for CLOCK_UPTIME_FAST -- Looking for CLOCK_UPTIME_FAST - not found -- Looking for CLOCK_MONOTONIC -- Looking for CLOCK_MONOTONIC - found -- Looking for CLOCK_REALTIME -- Looking for CLOCK_REALTIME - found -- Looking for CLOCK_MONOTONIC_COARSE -- Looking for CLOCK_MONOTONIC_COARSE - found -- Looking for FD_COPY -- Looking for FD_COPY - not found -- Looking for NOTE_LOWAT -- Looking for NOTE_LOWAT - not found -- Looking for NOTE_NONE -- Looking for NOTE_NONE - not found -- Looking for NOTE_REAP -- Looking for NOTE_REAP - not found -- Looking for NOTE_REVOKE -- Looking for NOTE_REVOKE - not found -- Looking for NOTE_SIGNAL -- Looking for NOTE_SIGNAL - not found -- Looking for POSIX_SPAWN_START_SUSPENDED -- Looking for POSIX_SPAWN_START_SUSPENDED - not found -- Looking for SIGEMT -- Looking for SIGEMT - not found -- Looking for VQ_DESIRED_DISK -- Looking for VQ_DESIRED_DISK - not found -- Looking for VQ_NEARLOWDISK -- Looking for VQ_NEARLOWDISK - not found -- Looking for VQ_QUOTA -- Looking for VQ_QUOTA - not found -- Looking for VQ_UPDATE -- Looking for VQ_UPDATE - not found -- Looking for VQ_VERYLOWDISK -- Looking for VQ_VERYLOWDISK - not found -- Looking for VQ_FREE_SPACE_CHANGE -- Looking for VQ_FREE_SPACE_CHANGE - not found -- Looking for program_invocation_name -- Looking for program_invocation_name - not found -- Looking for __printflike -- Looking for __printflike - not found -- Performing Test C_SUPPORTS_OMIT_LEAF_FRAME_POINTER -- Performing Test C_SUPPORTS_OMIT_LEAF_FRAME_POINTER - Success -- Configuring done (3.9s) -- Generating done (0.0s) -- Build files have been written to: /path/to/libdispatch/build $ ninja [2/78] Building C object src/CMakeFiles/dispatch.dir/apply.c.o FAILED: src/CMakeFiles/dispatch.dir/apply.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/apply.c.o -MF src/CMakeFiles/dispatch.dir/apply.c.o.d -o src/CMakeFiles/dispatch.dir/apply.c.o -c /path/to/libdispatch/src/apply.c In file included from /path/to/libdispatch/src/apply.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/apply.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/apply.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [3/78] Building C object src/CMakeFiles/dispatch.dir/benchmark.c.o FAILED: src/CMakeFiles/dispatch.dir/benchmark.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/benchmark.c.o -MF src/CMakeFiles/dispatch.dir/benchmark.c.o.d -o src/CMakeFiles/dispatch.dir/benchmark.c.o -c /path/to/libdispatch/src/benchmark.c In file included from /path/to/libdispatch/src/benchmark.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/benchmark.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/benchmark.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [4/78] Building C object src/CMakeFiles/dispatch.dir/source.c.o FAILED: src/CMakeFiles/dispatch.dir/source.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/source.c.o -MF src/CMakeFiles/dispatch.dir/source.c.o.d -o src/CMakeFiles/dispatch.dir/source.c.o -c /path/to/libdispatch/src/source.c In file included from /path/to/libdispatch/src/source.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/source.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/source.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [5/78] Building C object src/CMakeFiles/dispatch.dir/data.c.o FAILED: src/CMakeFiles/dispatch.dir/data.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/data.c.o -MF src/CMakeFiles/dispatch.dir/data.c.o.d -o src/CMakeFiles/dispatch.dir/data.c.o -c /path/to/libdispatch/src/data.c In file included from /path/to/libdispatch/src/data.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/data.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/data.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [6/78] Building C object src/CMakeFiles/dispatch.dir/allocator.c.o FAILED: src/CMakeFiles/dispatch.dir/allocator.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/allocator.c.o -MF src/CMakeFiles/dispatch.dir/allocator.c.o.d -o src/CMakeFiles/dispatch.dir/allocator.c.o -c /path/to/libdispatch/src/allocator.c In file included from /path/to/libdispatch/src/allocator.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/allocator.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/allocator.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [7/78] Building C object src/CMakeFiles/dispatch.dir/mach.c.o FAILED: src/CMakeFiles/dispatch.dir/mach.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/mach.c.o -MF src/CMakeFiles/dispatch.dir/mach.c.o.d -o src/CMakeFiles/dispatch.dir/mach.c.o -c /path/to/libdispatch/src/mach.c In file included from /path/to/libdispatch/src/mach.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/mach.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/mach.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [8/78] Building C object src/CMakeFiles/dispatch.dir/once.c.o FAILED: src/CMakeFiles/dispatch.dir/once.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/once.c.o -MF src/CMakeFiles/dispatch.dir/once.c.o.d -o src/CMakeFiles/dispatch.dir/once.c.o -c /path/to/libdispatch/src/once.c In file included from /path/to/libdispatch/src/once.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/once.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/once.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [9/78] Building C object src/CMakeFiles/dispatch.dir/semaphore.c.o FAILED: src/CMakeFiles/dispatch.dir/semaphore.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/semaphore.c.o -MF src/CMakeFiles/dispatch.dir/semaphore.c.o.d -o src/CMakeFiles/dispatch.dir/semaphore.c.o -c /path/to/libdispatch/src/semaphore.c In file included from /path/to/libdispatch/src/semaphore.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/semaphore.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/semaphore.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [10/78] Building C object src/CMakeFiles/dispatch.dir/io.c.o FAILED: src/CMakeFiles/dispatch.dir/io.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/io.c.o -MF src/CMakeFiles/dispatch.dir/io.c.o.d -o src/CMakeFiles/dispatch.dir/io.c.o -c /path/to/libdispatch/src/io.c In file included from /path/to/libdispatch/src/io.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/io.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/io.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [11/78] Building C object src/CMakeFiles/dispatch.dir/time.c.o FAILED: src/CMakeFiles/dispatch.dir/time.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/time.c.o -MF src/CMakeFiles/dispatch.dir/time.c.o.d -o src/CMakeFiles/dispatch.dir/time.c.o -c /path/to/libdispatch/src/time.c In file included from /path/to/libdispatch/src/time.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/time.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/time.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [12/78] Building C object src/CMakeFiles/dispatch.dir/object.c.o FAILED: src/CMakeFiles/dispatch.dir/object.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/object.c.o -MF src/CMakeFiles/dispatch.dir/object.c.o.d -o src/CMakeFiles/dispatch.dir/object.c.o -c /path/to/libdispatch/src/object.c In file included from /path/to/libdispatch/src/object.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/object.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/object.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [13/78] Building C object src/CMakeFiles/dispatch.dir/init.c.o FAILED: src/CMakeFiles/dispatch.dir/init.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/init.c.o -MF src/CMakeFiles/dispatch.dir/init.c.o.d -o src/CMakeFiles/dispatch.dir/init.c.o -c /path/to/libdispatch/src/init.c In file included from /path/to/libdispatch/src/init.c:26: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/init.c:26: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/init.c:26: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [14/78] Building C object src/CMakeFiles/dispatch.dir/queue.c.o FAILED: src/CMakeFiles/dispatch.dir/queue.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/queue.c.o -MF src/CMakeFiles/dispatch.dir/queue.c.o.d -o src/CMakeFiles/dispatch.dir/queue.c.o -c /path/to/libdispatch/src/queue.c In file included from /path/to/libdispatch/src/queue.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/queue.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/queue.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. [15/78] Building C object src/CMakeFiles/dispatch.dir/transform.c.o FAILED: src/CMakeFiles/dispatch.dir/transform.c.o /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android27 --sysroot=/Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -Ddispatch_EXPORTS -I/path/to/libdispatch/build -I/path/to/libdispatch -I/path/to/libdispatch/src -I/path/to/libdispatch/build/src -I/path/to/libdispatch/private -I/path/to/libdispatch/src/BlocksRuntime -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=gnu11 -fPIC -fvisibility=hidden -Werror -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wassign-enum -Watomic-properties -Wcomma -Wconditional-uninitialized -Wconversion -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdocumentation -Wdouble-promotion -Wduplicate-enum -Wexpansion-to-defined -Wfloat-equal -Widiomatic-parentheses -Winfinite-recursion -Wmissing-prototypes -Wnewline-eof -Wnullable-to-nonnull-conversion -Wobjc-interface-ivars -Wover-aligned -Wpacked -Wpointer-arith -Wselector -Wshadow -Wshorten-64-to-32 -Wsign-conversion -Wstatic-in-inline -Wsuper-class-method-mismatch -Wswitch -Wunguarded-availability -Wunreachable-code -Wunused -Wno-unknown-warning-option -Wno-trigraphs -Wno-four-char-constants -Wno-disabled-macro-expansion -Wno-pedantic -Wno-bad-function-cast -Wno-c++-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-padded -Wno-reserved-id-macro -Wno-shift-sign-overflow -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused -Wno-void-pointer-to-int-cast -Wno-vla -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -Wno-conversion -Wno-int-conversion -Wno-shorten-64-to-32 -Wno-error=assign-enum -fmodule-map-file=/path/to/libdispatch/dispatch/generic/module.modulemap -fmodule-map-file=/path/to/libdispatch/private/generic/module.modulemap -U_GNU_SOURCE -fno-exceptions -fblocks -momit-leaf-frame-pointer -pthread -MD -MT src/CMakeFiles/dispatch.dir/transform.c.o -MF src/CMakeFiles/dispatch.dir/transform.c.o.d -o src/CMakeFiles/dispatch.dir/transform.c.o -c /path/to/libdispatch/src/transform.c In file included from /path/to/libdispatch/src/transform.c:21: In file included from /path/to/libdispatch/src/internal.h:221: /path/to/libdispatch/os/object.h:278:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_BEGIN' OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:58:43: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN' #define OS_OBJECT_ASSUME_ABI_SINGLE_BEGIN OS_ASSUME_PTR_ABI_SINGLE_BEGIN ^ /path/to/libdispatch/os/object.h:327:1: error: unknown type name 'OS_ASSUME_PTR_ABI_SINGLE_END' OS_OBJECT_ASSUME_ABI_SINGLE_END ^ /path/to/libdispatch/os/object.h:59:42: note: expanded from macro 'OS_OBJECT_ASSUME_ABI_SINGLE_END' #define OS_OBJECT_ASSUME_ABI_SINGLE_END OS_ASSUME_PTR_ABI_SINGLE_END ^ In file included from /path/to/libdispatch/src/transform.c:21: In file included from /path/to/libdispatch/src/internal.h:222: In file included from /path/to/libdispatch/os/workgroup_base.h:13: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include/stdlib.h:31: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:34: In file included from /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/malloc.h:30: /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:55:14: error: expected ';' after top level declarator typedef off_t fpos_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:248:25: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fgetpos(FILE* __fp, fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:249:31: error: unknown type name 'fpos_t'; did you mean 'fpos64_t'? int fsetpos(FILE* __fp, const fpos_t* __pos); ^ /Users/me/Library/Android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdio.h:56:17: note: 'fpos64_t' declared here typedef off64_t fpos64_t; ^ In file included from /path/to/libdispatch/src/transform.c:21: In file included from /path/to/libdispatch/src/internal.h:222: /path/to/libdispatch/os/workgroup_base.h:15:10: fatal error: 'mach/port.h' file not found #include ^~~~~~~~~~~~~ 6 errors generated. ninja: build stopped: subcommand failed.