【 TiKV 使用环境】测试环境本地Max M2Max环境
【 TiKV 版本】
TiKV v8.5
编译工具 clang 19.1.3
【复现路径】执行cargo build或直接执行make命令
【遇到的问题:问题现象及影响】
编译到zlib依赖相关的开始报错,以下为错误输出。
cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:314:7: error: expected ‘)’
cargo:warning= 314 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
cargo:warning= | ^
cargo:warning=src/zlib/zutil.h:140:33: note: expanded from macro ‘fdopen’
cargo:warning= 140 | # define fdopen(fd,mode) NULL /* No fdopen() */
cargo:warning= | ^
cargo:warning=/opt/homebrew/Cellar/llvm/19.1.3/lib/clang/19/include/__stddef_null.h:26:22: note: expanded from macro ‘NULL’
cargo:warning= 26 | #define NULL ((void*)0)
cargo:warning= | ^
cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:314:7: note: to match this ‘(’
cargo:warning=src/zlib/zutil.h:140:33: note: expanded from macro ‘fdopen’
cargo:warning= 140 | # define fdopen(fd,mode) NULL /* No fdopen() */
cargo:warning= | ^
cargo:warning=/opt/homebrew/Cellar/llvm/19.1.3/lib/clang/19/include/__stddef_null.h:26:14: note: expanded from macro ‘NULL’
cargo:warning= 26 | #define NULL ((void*)0)
cargo:warning= | ^
cargo:warning=21 warnings generated.