Failed building with rustc 1.59 on Mac OSX
➜ difftastic git:(master) rustc --version
rustc 1.59.0 (9d1b2106e 2022-02-23)
➜ difftastic git:(master) cargo build
Compiling autocfg v1.0.1
Compiling libc v0.2.112
Compiling cfg-if v1.0.0
Compiling cc v1.0.72
Compiling memchr v2.4.1
Compiling lazy_static v1.4.0
Compiling crossbeam-utils v0.8.7
Compiling crossbeam-epoch v0.9.5
Compiling rayon-core v1.9.1
Compiling scopeguard v1.1.0
Compiling proc-macro2 v1.0.36
Compiling regex-syntax v0.6.25
Compiling either v1.6.1
Compiling unicode-xid v0.2.2
Compiling log v0.4.14
Compiling quote v1.0.13
Compiling termcolor v1.1.2
Compiling quick-error v1.2.3
Compiling static_assertions v1.1.0
Compiling hashbrown v0.11.2
Compiling same-file v1.0.6
Compiling bitflags v1.3.2
Compiling strsim v0.10.0
Compiling textwrap v0.14.2
Compiling rustc-hash v1.1.0
Compiling radix-heap v0.4.2
Compiling owo-colors v3.2.0
Compiling wu-diff v0.1.2
Compiling typed-arena v2.0.1
Compiling itertools v0.10.3
Compiling archery v0.4.0
Compiling humantime v1.3.0
Compiling walkdir v2.3.2
Compiling rpds v0.10.0
Compiling memoffset v0.6.5
Compiling rayon v1.5.1
Compiling indexmap v1.8.0
Compiling crossbeam-channel v0.5.1
Compiling libmimalloc-sys v0.1.23
Compiling tree-sitter v0.20.5
Compiling aho-corasick v0.7.18
Compiling os_str_bytes v6.0.0
Compiling num_cpus v1.13.1
Compiling atty v0.2.14
Compiling term_size v0.3.2
Compiling crossbeam-deque v0.8.1
Compiling clap v3.0.13
Compiling const_format_proc_macros v0.2.22
The following warnings were emitted during compilation:
warning: In file included from c_src/mimalloc/src/static.c:16:
warning: In file included from c_src/mimalloc/include/mimalloc.h:97:
warning: In file included from /usr/local/include/stdbool.h:4:
warning: In file included from /usr/local/include/stdbool.h:4:
....
warning: In file included from /usr/local/include/stdbool.h:4:
warning: In file included from /usr/local/include/stdbool.h:4:
warning: /usr/local/include/stdbool.h:4:10: error: #include nested too deeply
warning: #include <stdbool.h>
warning: ^
warning: In file included from c_src/mimalloc/src/static.c:16:
warning: c_src/mimalloc/include/mimalloc.h:139:46: error: unknown type name 'bool'
warning: typedef void (mi_cdecl mi_deferred_free_fun)(bool force, unsigned long long heartbeat, void* arg);
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:148:32: error: unknown type name 'bool'
warning: mi_decl_export void mi_collect(bool force) mi_attr_noexcept;
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:193:60: error: unknown type name 'bool'
warning: mi_decl_export void mi_heap_collect(mi_heap_t* heap, bool force) mi_attr_noexcept;
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:247:16: error: unknown type name 'bool'
warning: mi_decl_export bool mi_heap_contains_block(mi_heap_t* heap, const void* p);
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:248:16: error: unknown type name 'bool'
warning: mi_decl_export bool mi_heap_check_owned(mi_heap_t* heap, const void* p);
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:249:16: error: unknown type name 'bool'
warning: mi_decl_export bool mi_check_owned(const void* p);
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:260:9: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
warning: typedef bool (mi_cdecl mi_block_visit_fun)(const mi_heap_t* heap, const mi_heap_area_t* area, void* block, size_t block_size, void* arg);
warning: ~~~~~~~ ^
warning: c_src/mimalloc/include/mimalloc.h:260:14: error: function cannot return function type 'int (const mi_heap_t *, const mi_heap_area_t *, void *, size_t, void *)' (aka 'int (const struct mi_heap_s *, const struct mi_heap_area_s *, void *, unsigned long, void *)')
warning: typedef bool (mi_cdecl mi_block_visit_fun)(const mi_heap_t* heap, const mi_heap_area_t* area, void* block, size_t block_size, void* arg);
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:260:24: error: a parameter list without types is only allowed in a function definition
warning: typedef bool (mi_cdecl mi_block_visit_fun)(const mi_heap_t* heap, const mi_heap_area_t* area, void* block, size_t block_size, void* arg);
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:262:88: error: unknown type name 'mi_block_visit_fun'
warning: mi_decl_export bool mi_heap_visit_blocks(const mi_heap_t* heap, bool visit_all_blocks, mi_block_visit_fun* visitor, void* arg);
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:262:41: error: function cannot return function type 'bool' (aka 'int ()')
warning: mi_decl_export bool mi_heap_visit_blocks(const mi_heap_t* heap, bool visit_all_blocks, mi_block_visit_fun* visitor, void* arg);
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:265:59: error: function cannot return function type 'bool' (aka 'int ()')
warning: mi_decl_nodiscard mi_decl_export bool mi_is_in_heap_region(const void* p) mi_attr_noexcept;
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:266:55: error: function cannot return function type 'bool' (aka 'int ()')
warning: mi_decl_nodiscard mi_decl_export bool mi_is_redirected(void) mi_attr_noexcept;
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:272:40: error: function cannot return function type 'bool' (aka 'int ()')
warning: mi_decl_export bool mi_manage_os_memory(void* start, size_t size, bool is_committed, bool is_large, bool is_zero, int numa_node) mi_attr_noexcept;
warning: ^
warning: c_src/mimalloc/include/mimalloc.h:330:59: error: function cannot return function type 'bool' (aka 'int ()')
warning: mi_decl_nodiscard mi_decl_export bool mi_option_is_enabled(mi_option_t option);
warning: ^
warning: In file included from c_src/mimalloc/src/static.c:17:
warning: In file included from c_src/mimalloc/include/mimalloc-internal.h:11:
warning: In file included from c_src/mimalloc/include/mimalloc-types.h:12:
warning: In file included from /usr/local/include/stdint.h:82:
warning: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.1.6/include/inttypes.h:21:
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/inttypes.h:235:8: error: unknown type name 'intmax_t'
warning: extern intmax_t
warning: ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/inttypes.h:236:9: error: unknown type name 'intmax_t'
warning: imaxabs(intmax_t j);
warning: ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/inttypes.h:240:2: error: unknown type name 'intmax_t'
warning: intmax_t quot;
warning: ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/inttypes.h:241:2: error: unknown type name 'intmax_t'
warning: intmax_t rem;
warning: ^
warning: fatal error: too many errors emitted, stopping now [-ferror-limit=]
warning: 1 warning and 20 errors generated.
error: failed to run custom build command for `libmimalloc-sys v0.1.23`
Caused by:
process didn't exit successfully: `/Users/glenn/workspace/difftastic/target/debug/build/libmimalloc-sys-4587b943eda0a038/build-script-build` (exit status: 1)
--- stdout
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "c_src/mimalloc/include" "-I" "c_src/mimalloc/src" "-Wall" "-Wextra" "-ftls-model=initial-exec" "-DMI_DEBUG=0" "-o" "/Users/glenn/workspace/difftastic/target/debug/build/libmimalloc-sys-15f518181dc1a4f4/out/c_src/mimalloc/src/static.o" "-c" "c_src/mimalloc/src/static.c"
cargo:warning=In file included from c_src/mimalloc/src/static.c:16:
cargo:warning=In file included from c_src/mimalloc/include/mimalloc.h:97:
cargo:warning=In file included from /usr/local/include/stdbool.h:4:
cargo:warning=In file included from /usr/local/include/stdbool.h:4:
....
cargo:warning=In file included from /usr/local/include/stdbool.h:4:
cargo:warning=In file included from /usr/local/include/stdbool.h:4:
cargo:warning=/usr/local/include/stdbool.h:4:10: error: #include nested too deeply
cargo:warning=#include <stdbool.h>
cargo:warning= ^
cargo:warning=In file included from c_src/mimalloc/src/static.c:16:
cargo:warning=c_src/mimalloc/include/mimalloc.h:139:46: error: unknown type name 'bool'
cargo:warning=typedef void (mi_cdecl mi_deferred_free_fun)(bool force, unsigned long long heartbeat, void* arg);
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:148:32: error: unknown type name 'bool'
cargo:warning=mi_decl_export void mi_collect(bool force) mi_attr_noexcept;
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:193:60: error: unknown type name 'bool'
cargo:warning=mi_decl_export void mi_heap_collect(mi_heap_t* heap, bool force) mi_attr_noexcept;
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:247:16: error: unknown type name 'bool'
cargo:warning=mi_decl_export bool mi_heap_contains_block(mi_heap_t* heap, const void* p);
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:248:16: error: unknown type name 'bool'
cargo:warning=mi_decl_export bool mi_heap_check_owned(mi_heap_t* heap, const void* p);
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:249:16: error: unknown type name 'bool'
cargo:warning=mi_decl_export bool mi_check_owned(const void* p);
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:260:9: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
cargo:warning=typedef bool (mi_cdecl mi_block_visit_fun)(const mi_heap_t* heap, const mi_heap_area_t* area, void* block, size_t block_size, void* arg);
cargo:warning=~~~~~~~ ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:260:14: error: function cannot return function type 'int (const mi_heap_t *, const mi_heap_area_t *, void *, size_t, void *)' (aka 'int (const struct mi_heap_s *, const struct mi_heap_area_s *, void *, unsigned long, void *)')
cargo:warning=typedef bool (mi_cdecl mi_block_visit_fun)(const mi_heap_t* heap, const mi_heap_area_t* area, void* block, size_t block_size, void* arg);
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:260:24: error: a parameter list without types is only allowed in a function definition
cargo:warning=typedef bool (mi_cdecl mi_block_visit_fun)(const mi_heap_t* heap, const mi_heap_area_t* area, void* block, size_t block_size, void* arg);
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:262:88: error: unknown type name 'mi_block_visit_fun'
cargo:warning=mi_decl_export bool mi_heap_visit_blocks(const mi_heap_t* heap, bool visit_all_blocks, mi_block_visit_fun* visitor, void* arg);
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:262:41: error: function cannot return function type 'bool' (aka 'int ()')
cargo:warning=mi_decl_export bool mi_heap_visit_blocks(const mi_heap_t* heap, bool visit_all_blocks, mi_block_visit_fun* visitor, void* arg);
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:265:59: error: function cannot return function type 'bool' (aka 'int ()')
cargo:warning=mi_decl_nodiscard mi_decl_export bool mi_is_in_heap_region(const void* p) mi_attr_noexcept;
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:266:55: error: function cannot return function type 'bool' (aka 'int ()')
cargo:warning=mi_decl_nodiscard mi_decl_export bool mi_is_redirected(void) mi_attr_noexcept;
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:272:40: error: function cannot return function type 'bool' (aka 'int ()')
cargo:warning=mi_decl_export bool mi_manage_os_memory(void* start, size_t size, bool is_committed, bool is_large, bool is_zero, int numa_node) mi_attr_noexcept;
cargo:warning= ^
cargo:warning=c_src/mimalloc/include/mimalloc.h:330:59: error: function cannot return function type 'bool' (aka 'int ()')
cargo:warning=mi_decl_nodiscard mi_decl_export bool mi_option_is_enabled(mi_option_t option);
cargo:warning= ^
cargo:warning=In file included from c_src/mimalloc/src/static.c:17:
cargo:warning=In file included from c_src/mimalloc/include/mimalloc-internal.h:11:
cargo:warning=In file included from c_src/mimalloc/include/mimalloc-types.h:12:
cargo:warning=In file included from /usr/local/include/stdint.h:82:
cargo:warning=In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.1.6/include/inttypes.h:21:
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/inttypes.h:235:8: error: unknown type name 'intmax_t'
cargo:warning=extern intmax_t
cargo:warning= ^
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/inttypes.h:236:9: error: unknown type name 'intmax_t'
cargo:warning=imaxabs(intmax_t j);
cargo:warning= ^
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/inttypes.h:240:2: error: unknown type name 'intmax_t'
cargo:warning= intmax_t quot;
cargo:warning= ^
cargo:warning=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/inttypes.h:241:2: error: unknown type name 'intmax_t'
cargo:warning= intmax_t rem;
cargo:warning= ^
cargo:warning=fatal error: too many errors emitted, stopping now [-ferror-limit=]
cargo:warning=1 warning and 20 errors generated.
exit status: 1
--- stderr
error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "c_src/mimalloc/include" "-I" "c_src/mimalloc/src" "-Wall" "-Wextra" "-ftls-model=initial-exec" "-DMI_DEBUG=0" "-o" "/Users/glenn/workspace/difftastic/target/debug/build/libmimalloc-sys-15f518181dc1a4f4/out/c_src/mimalloc/src/static.o" "-c" "c_src/mimalloc/src/static.c" with args "cc" did not execute successfully (status code exit status: 1).
warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:
warning: In file included from src/lib.c:8:
warning: In file included from src/./alloc.c:1:
warning: In file included from src/alloc.h:4:
warning: In file included from include/tree_sitter/api.h:10:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: In file included from /usr/local/include/stdint.h:59:
warning: /usr/local/include/stdint.h:2:10: error: #include nested too deeply
warning: #include <stddef.h>
warning: ^
warning: /usr/local/include/stdint.h:72:11: error: #include nested too deeply
warning: # include <sys/types.h>
warning: ^
warning: /usr/local/include/stdint.h:76:10: error: #include nested too deeply
warning: #include <limits.h>
warning: ^
warning: /usr/local/include/stdint.h:82:11: error: #include nested too deeply
warning: # include <inttypes.h>
warning: ^
warning: In file included from src/lib.c:8:
warning: In file included from src/./alloc.c:1:
warning: In file included from src/alloc.h:4:
warning: include/tree_sitter/api.h:169:1: error: unknown type name 'bool'
warning: bool ts_parser_set_language(TSParser *self, const TSLanguage *language);
warning: ^
warning: include/tree_sitter/api.h:197:1: error: unknown type name 'bool'
warning: bool ts_parser_set_included_ranges(
warning: ^
warning: include/tree_sitter/api.h:304:51: error: unknown type name 'uint64_t'
warning: void ts_parser_set_timeout_micros(TSParser *self, uint64_t timeout);
warning: ^
warning: include/tree_sitter/api.h:309:1: error: unknown type name 'uint64_t'
warning: uint64_t ts_parser_timeout_micros(const TSParser *self);
warning: ^
warning: include/tree_sitter/api.h:455:1: error: unknown type name 'bool'
warning: bool ts_node_is_null(TSNode);
warning: ^
warning: include/tree_sitter/api.h:462:1: error: unknown type name 'bool'
warning: bool ts_node_is_named(TSNode);
warning: ^
warning: include/tree_sitter/api.h:468:1: error: unknown type name 'bool'
warning: bool ts_node_is_missing(TSNode);
warning: ^
warning: include/tree_sitter/api.h:474:1: error: unknown type name 'bool'
warning: bool ts_node_is_extra(TSNode);
warning: ^
warning: include/tree_sitter/api.h:479:1: error: unknown type name 'bool'
warning: bool ts_node_has_changes(TSNode);
warning: ^
warning: include/tree_sitter/api.h:484:1: error: unknown type name 'bool'
warning: bool ts_node_has_error(TSNode);
warning: ^
warning: include/tree_sitter/api.h:589:1: error: unknown type name 'bool'
warning: bool ts_node_eq(TSNode, TSNode);
warning: ^
warning: include/tree_sitter/api.h:641:1: error: unknown type name 'bool'
warning: bool ts_tree_cursor_goto_parent(TSTreeCursor *);
warning: ^
warning: include/tree_sitter/api.h:649:1: error: unknown type name 'bool'
warning: bool ts_tree_cursor_goto_next_sibling(TSTreeCursor *);
warning: ^
warning: include/tree_sitter/api.h:657:1: error: unknown type name 'bool'
warning: bool ts_tree_cursor_goto_first_child(TSTreeCursor *);
warning: ^
warning: include/tree_sitter/api.h:736:1: error: unknown type name 'bool'
warning: bool ts_query_is_pattern_guaranteed_at_step(
warning: ^
warning: fatal error: too many errors emitted, stopping now [-ferror-limit=]
warning: 20 errors generated.
error: build failed
➜ difftastic git:(master) rustc --version
rustc 1.59.0 (9d1b2106e 2022-02-23)
What's your C/C++ compiler, and what version?
Forgive my ignorance, but hopefully doing cc --version answers your question?
➜ cc --version
Apple clang version 13.1.6 (clang-1316.0.21.2)
Target: x86_64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
And thanks for the quick response, really looking forward to trying out difftastic!
Strange, that's a recent version of clang (googling suggests it's a xcode 13: https://gist.github.com/yamaya/2924292#file-xcode-clang-vers-L418) and I'm not sure what's wrong.
Difftastic does now have a macOS build and releases with macOS binaries if you want to try that: https://github.com/Wilfred/difftastic/releases
Looking at your build error, it looks like mimalloc failed to compile. I've since updated mimalloc, and recent versions (e.g. 1.7.3) report having macOS fixes: https://github.com/microsoft/mimalloc#releases
Feel free to reopen if this is still occurring.