rust-cross / cargo-zigbuild

Compile Cargo project with zig as linker
MIT License
1.35k stars 50 forks source link

ccache is always invalidated #239

Closed breezewish closed 3 months ago

breezewish commented 3 months ago

Hi,

I'm using cargo-zigbuild to build https://github.com/tikv/rust-rocksdb using this command:

cargo-zigbuild zigbuild --target x86_64-unknown-linux-gnu.2.17 --features="portable encryption"
make clean

It turns out that although rust-rocksdb/librocksdb-sys has configured ccache, the ccache is always invalidated, when command above is invoked multiple times.

pstree shows that ccache is called against this compiler: cargo-zigbuild/0.18.3/zigcxx-x86_64-unknown-linux-gnu.2.17.sh

 |   |   \-+= 25704 breezewish /Users/breezewish/Work/cargo-zigbuild/target/debug/cargo-zigbuild zigbuild --target x86_64-unknown-linux-gnu.2.17 --features=portable encryption
 |   |     \-+- 25808 breezewish /Users/breezewish/.rustup/toolchains/nightly-aarch64-apple-darwin/bin/cargo build --features portable encryption --target x86_64-unknown-linux-gnu
 |   |       \-+- 46938 breezewish /Users/breezewish/Work/rust-rocksdb/target/debug/build/librocksdb_sys-b7da2285123dc76e/build-script-build
 |   |         \-+- 47542 breezewish cmake --build . --target rocksdb --config Debug
 |   |           \-+- 47543 breezewish /opt/homebrew/Cellar/cmake/3.25.2/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile rocksdb
 |   |             \-+- 47544 breezewish /Library/Developer/CommandLineTools/usr/bin/make -f Makefile rocksdb
 |   |               \-+- 47546 breezewish /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 rocksdb
 |   |                 \-+- 47549 breezewish /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 CMakeFiles/rocksdb.dir/all
 |   |                   \-+- 47553 breezewish /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build
 |   |                     |-+- 49188 breezewish ccache /Users/breezewish/Library/Caches/cargo-zigbuild/0.18.3/zigcxx-x86_64-unknown-linux-gnu.2.17.sh -DBZIP2 -DLZ4 -DOPENSSL -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DSNAPPY -DZLIB -DZSTD -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-044f7346d0d7b9f4/out/include -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/openssl-sys-a3212a2121e8be6c/out/openssl-build/install/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/folly -isystem /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/gtest-1.8.1/fused-src -isystem /opt/homebrew/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/libz-sys-f1896d79ba48e1a0/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/lz4-sys-0987f25107261b62/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/zstd-sys-f8a595396cfc5e95/out/include -ffunction-sections -fdata-sections -fPIC -m64 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Werror -g -DROCKSDB_USE_RTTI -std=gnu++11 -MD -MT CMakeFiles/rocksdb.dir/db/error_handler.cc.o -MF CMakeFiles/rocksdb.dir/db/error_handler.cc.o.d -o CMakeFiles/rocksdb.dir/db/error_handler.cc.o -c /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/error_handler.cc
 |   |                     | \-+- 49274 breezewish /Users/breezewish/Work/cargo-zigbuild/target/debug/cargo-zigbuild zig c++ -- -target x86_64-linux-gnu.2.17 -g -ffunction-sections -fdata-sections -fPIC -m64 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -g -std=gnu++11 -Werror -DBZIP2 -DLZ4 -DOPENSSL -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DSNAPPY -DZLIB -DZSTD -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-044f7346d0d7b9f4/out/include -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/openssl-sys-a3212a2121e8be6c/out/openssl-build/install/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/folly -isystem /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/gtest-1.8.1/fused-src -isystem /opt/homebrew/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/libz-sys-f1896d79ba48e1a0/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/lz4-sys-0987f25107261b62/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/zstd-sys-f8a595396cfc5e95/out/include -DROCKSDB_USE_RTTI -c -MD -MT CMakeFiles/rocksdb.dir/db/error_handler.cc.o -MF CMakeFiles/rocksdb.dir/db/error_handler.cc.o.d -o CMakeFiles/rocksdb.dir/db/error_handler.cc.o /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/error_handler.cc
 |   |                     |   \--- 49330 breezewish /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/zig clang /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/error_handler.cc --no-default-config -nostdinc++ -ffunction-sections -fdata-sections -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libcxx/include -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libcxxabi/include -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -D_LIBCPP_PSTL_CPU_BACKEND_SERIAL -D_LIBCPP_ABI_VERSION=1 -D_LIBCPP_ABI_NAMESPACE=__1 -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libunwind/include -D__GLIBC_MINOR__=17 -target x86_64-unknown-linux-gnu -nostdinc -fno-spell-checking -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/include -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/x86_64-linux-gnu -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/generic-glibc -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/x86-linux-any -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/any-linux-any -Xclang -target-cpu -Xclang x86-64 -Xclang -target-feature -Xclang -16bit-mode -Xclang -target-feature -Xclang -32bit-mode -Xclang -target-feature -Xclang -3dnow -Xclang -target-feature -Xclang -3dnowa -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang -adx -Xclang -target-feature -Xclang -aes -Xclang -target-feature -Xclang -allow-light-256-bit -Xclang -target-feature -Xclang -amx-bf16 -Xclang -target-feature -Xclang -amx-complex -Xclang -target-feature -Xclang -amx-fp16 -Xclang -target-feature -Xclang -amx-int8 -Xclang -target-feature -Xclang -amx-tile -Xclang -target-feature -Xclang -avx -Xclang -target-feature -Xclang -avx2 -Xclang -target-feature -Xclang -avx512bf16 -Xclang -target-feature -Xclang -avx512bitalg -Xclang -target-feature -Xclang -avx512bw -Xclang -target-feature -Xclang -avx512cd -Xclang -target-feature -Xclang -avx512dq -Xclang -target-feature -Xclang -avx512er -Xclang -target-feature -Xclang -avx512f -Xclang -target-feature -Xclang -avx512fp16 -Xclang -target-feature -Xclang -avx512ifma -Xclang -target-feature -Xclang -avx512pf -Xclang -target-feature -Xclang -avx512vbmi -Xclang -target-feature -Xclang -avx512vbmi2 -Xclang -target-feature -Xclang -avx512vl -Xclang -target-feature -Xclang -avx512vnni -Xclang -target-feature -Xclang -avx512vp2intersect -Xclang -target-feature -Xclang -avx512vpopcntdq -Xclang -target-feature -Xclang -avxifma -Xclang -target-feature -Xclang -avxneconvert -Xclang -target-feature -Xclang -avxvnni -Xclang -target-feature -Xclang -avxvnniint16 -Xclang -target-feature -Xclang -avxvnniint8 -Xclang -target-feature -Xclang -bmi -Xclang -target-feature -Xclang -bmi2 -Xclang -target-feature -Xclang -branchfusion -Xclang -target-feature -Xclang -cldemote -Xclang -target-feature -Xclang -clflushopt -Xclang -target-feature -Xclang -clwb -Xclang -target-feature -Xclang -clzero -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang -cmpccxadd -Xclang -target-feature -Xclang -crc32 -Xclang -target-feature -Xclang -cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang -enqcmd -Xclang -target-feature -Xclang -ermsb -Xclang -target-feature -Xclang -f16c -Xclang -target-feature -Xclang -false-deps-getmant -Xclang -target-feature -Xclang -false-deps-lzcnt-tzcnt -Xclang -target-feature -Xclang -false-deps-mulc -Xclang -target-feature -Xclang -false-deps-mullq -Xclang -target-feature -Xclang -false-deps-perm -Xclang -target-feature -Xclang -false-deps-popcnt -Xclang -target-feature -Xclang -false-deps-range -Xclang -target-feature -Xclang -fast-11bytenop -Xclang -target-feature -Xclang -fast-15bytenop -Xclang -target-feature -Xclang -fast-7bytenop -Xclang -target-feature -Xclang -fast-bextr -Xclang -target-feature -Xclang -fast-gather -Xclang -target-feature -Xclang -fast-hops -Xclang -target-feature -Xclang -fast-lzcnt -Xclang -target-feature -Xclang -fast-movbe -Xclang -target-feature -Xclang -fast-scalar-fsqrt -Xclang -target-feature -Xclang -fast-scalar-shift-masks -Xclang -target-feature -Xclang -fast-shld-rotate -Xclang -target-feature -Xclang -fast-variable-crosslane-shuffle -Xclang -target-feature -Xclang -fast-variable-perlane-shuffle -Xclang -target-feature -Xclang -fast-vector-fsqrt -Xclang -target-feature -Xclang -fast-vector-shift-masks -Xclang -target-feature -Xclang -faster-shift-than-shuffle -Xclang -target-feature -Xclang -fma -Xclang -target-feature -Xclang -fma4 -Xclang -target-feature -Xclang -fsgsbase -Xclang -target-feature -Xclang -fsrm -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang -gfni -Xclang -target-feature -Xclang -harden-sls-ijmp -Xclang -target-feature -Xclang -harden-sls-ret -Xclang -target-feature -Xclang -hreset -Xclang -target-feature -Xclang -idivl-to-divb -Xclang -target-feature -Xclang +idivq-to-divl -Xclang -target-feature -Xclang -invpcid -Xclang -target-feature -Xclang -kl -Xclang -target-feature -Xclang -lea-sp -Xclang -target-feature -Xclang -lea-uses-ag -Xclang -target-feature -Xclang -lvi-cfi -Xclang -target-feature -Xclang -lvi-load-hardening -Xclang -target-feature -Xclang -lwp -Xclang -target-feature -Xclang -lzcnt -Xclang -target-feature -Xclang +macrofusion -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang -movbe -Xclang -target-feature -Xclang -movdir64b -Xclang -target-feature -Xclang -movdiri -Xclang -target-feature -Xclang -mwaitx -Xclang -target-feature -Xclang -no-bypass-delay -Xclang -target-feature -Xclang -no-bypass-delay-blend -Xclang -target-feature -Xclang -no-bypass-delay-mov -Xclang -target-feature -Xclang -no-bypass-delay-shuffle -Xclang -target-feature -Xclang +nopl -Xclang -target-feature -Xclang -pad-short-functions -Xclang -target-feature -Xclang -pclmul -Xclang -target-feature -Xclang -pconfig -Xclang -target-feature -Xclang -pku -Xclang -target-feature -Xclang -popcnt -Xclang -target-feature -Xclang -prefer-128-bit -Xclang -target-feature -Xclang -prefer-256-bit -Xclang -target-feature -Xclang -prefer-mask-registers -Xclang -target-feature -Xclang -prefer-movmsk-over-vtest -Xclang -target-feature -Xclang -prefetchi -Xclang -target-feature -Xclang -prefetchwt1 -Xclang -target-feature -Xclang -prfchw -Xclang -target-feature -Xclang -ptwrite -Xclang -target-feature -Xclang -raoint -Xclang -target-feature -Xclang -rdpid -Xclang -target-feature -Xclang -rdpru -Xclang -target-feature -Xclang -rdrnd -Xclang -target-feature -Xclang -rdseed -Xclang -target-feature -Xclang -retpoline -Xclang -target-feature -Xclang -retpoline-external-thunk -Xclang -target-feature -Xclang -retpoline-indirect-branches -Xclang -target-feature -Xclang -retpoline-indirect-calls -Xclang -target-feature -Xclang -rtm -Xclang -target-feature -Xclang -sahf -Xclang -target-feature -Xclang -sbb-dep-breaking -Xclang -target-feature -Xclang -serialize -Xclang -target-feature -Xclang -seses -Xclang -target-feature -Xclang -sgx -Xclang -target-feature -Xclang -sha -Xclang -target-feature -Xclang -sha512 -Xclang -target-feature -Xclang -shstk -Xclang -target-feature -Xclang +slow-3ops-lea -Xclang -target-feature -Xclang +slow-incdec -Xclang -target-feature -Xclang -slow-lea -Xclang -target-feature -Xclang -slow-pmaddwd -Xclang -target-feature -Xclang -slow-pmulld -Xclang -target-feature -Xclang -slow-shld -Xclang -target-feature -Xclang -slow-two-mem-ops -Xclang -target-feature -Xclang -slow-unaligned-mem-16 -Xclang -target-feature -Xclang -slow-unaligned-mem-32 -Xclang -target-feature -Xclang -sm3 -Xclang -target-feature -Xclang -sm4 -Xclang -target-feature -Xclang -soft-float -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang -sse3 -Xclang -target-feature -Xclang -sse4.1 -Xclang -target-feature -Xclang -sse4.2 -Xclang -target-feature -Xclang -sse4a -Xclang -target-feature 
 |   |                     |-+- 49323 breezewish ccache /Users/breezewish/Library/Caches/cargo-zigbuild/0.18.3/zigcxx-x86_64-unknown-linux-gnu.2.17.sh -DBZIP2 -DLZ4 -DOPENSSL -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DSNAPPY -DZLIB -DZSTD -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-044f7346d0d7b9f4/out/include -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/openssl-sys-a3212a2121e8be6c/out/openssl-build/install/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/folly -isystem /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/gtest-1.8.1/fused-src -isystem /opt/homebrew/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/libz-sys-f1896d79ba48e1a0/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/lz4-sys-0987f25107261b62/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/zstd-sys-f8a595396cfc5e95/out/include -ffunction-sections -fdata-sections -fPIC -m64 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Werror -g -DROCKSDB_USE_RTTI -std=gnu++11 -MD -MT CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o -MF CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o -c /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/external_sst_file_ingestion_job.cc
 |   |                     | \-+- 49439 breezewish /Users/breezewish/Work/cargo-zigbuild/target/debug/cargo-zigbuild zig c++ -- -target x86_64-linux-gnu.2.17 -g -ffunction-sections -fdata-sections -fPIC -m64 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -g -std=gnu++11 -Werror -DBZIP2 -DLZ4 -DOPENSSL -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DSNAPPY -DZLIB -DZSTD -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-044f7346d0d7b9f4/out/include -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/openssl-sys-a3212a2121e8be6c/out/openssl-build/install/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/folly -isystem /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/gtest-1.8.1/fused-src -isystem /opt/homebrew/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/libz-sys-f1896d79ba48e1a0/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/lz4-sys-0987f25107261b62/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/zstd-sys-f8a595396cfc5e95/out/include -DROCKSDB_USE_RTTI -c -MD -MT CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o -MF CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/external_sst_file_ingestion_job.cc
 |   |                     |   \--- 49465 breezewish /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/zig clang /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/external_sst_file_ingestion_job.cc --no-default-config -nostdinc++ -ffunction-sections -fdata-sections -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libcxx/include -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libcxxabi/include -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -D_LIBCPP_PSTL_CPU_BACKEND_SERIAL -D_LIBCPP_ABI_VERSION=1 -D_LIBCPP_ABI_NAMESPACE=__1 -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libunwind/include -D__GLIBC_MINOR__=17 -target x86_64-unknown-linux-gnu -nostdinc -fno-spell-checking -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/include -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/x86_64-linux-gnu -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/generic-glibc -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/x86-linux-any -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/any-linux-any -Xclang -target-cpu -Xclang x86-64 -Xclang -target-feature -Xclang -16bit-mode -Xclang -target-feature -Xclang -32bit-mode -Xclang -target-feature -Xclang -3dnow -Xclang -target-feature -Xclang -3dnowa -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang -adx -Xclang -target-feature -Xclang -aes -Xclang -target-feature -Xclang -allow-light-256-bit -Xclang -target-feature -Xclang -amx-bf16 -Xclang -target-feature -Xclang -amx-complex -Xclang -target-feature -Xclang -amx-fp16 -Xclang -target-feature -Xclang -amx-int8 -Xclang -target-feature -Xclang -amx-tile -Xclang -target-feature -Xclang -avx -Xclang -target-feature -Xclang -avx2 -Xclang -target-feature -Xclang -avx512bf16 -Xclang -target-feature -Xclang -avx512bitalg -Xclang -target-feature -Xclang -avx512bw -Xclang -target-feature -Xclang -avx512cd -Xclang -target-feature -Xclang -avx512dq -Xclang -target-feature -Xclang -avx512er -Xclang -target-feature -Xclang -avx512f -Xclang -target-feature -Xclang -avx512fp16 -Xclang -target-feature -Xclang -avx512ifma -Xclang -target-feature -Xclang -avx512pf -Xclang -target-feature -Xclang -avx512vbmi -Xclang -target-feature -Xclang -avx512vbmi2 -Xclang -target-feature -Xclang -avx512vl -Xclang -target-feature -Xclang -avx512vnni -Xclang -target-feature -Xclang -avx512vp2intersect -Xclang -target-feature -Xclang -avx512vpopcntdq -Xclang -target-feature -Xclang -avxifma -Xclang -target-feature -Xclang -avxneconvert -Xclang -target-feature -Xclang -avxvnni -Xclang -target-feature -Xclang -avxvnniint16 -Xclang -target-feature -Xclang -avxvnniint8 -Xclang -target-feature -Xclang -bmi -Xclang -target-feature -Xclang -bmi2 -Xclang -target-feature -Xclang -branchfusion -Xclang -target-feature -Xclang -cldemote -Xclang -target-feature -Xclang -clflushopt -Xclang -target-feature -Xclang -clwb -Xclang -target-feature -Xclang -clzero -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang -cmpccxadd -Xclang -target-feature -Xclang -crc32 -Xclang -target-feature -Xclang -cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang -enqcmd -Xclang -target-feature -Xclang -ermsb -Xclang -target-feature -Xclang -f16c -Xclang -target-feature -Xclang -false-deps-getmant -Xclang -target-feature -Xclang -false-deps-lzcnt-tzcnt -Xclang -target-feature -Xclang -false-deps-mulc -Xclang -target-feature -Xclang -false-deps-mullq -Xclang -target-feature -Xclang -false-deps-perm -Xclang -target-feature -Xclang -false-deps-popcnt -Xclang -target-feature -Xclang -false-deps-range -Xclang -target-feature -Xclang -fast-11bytenop -Xclang -target-feature -Xclang -fast-15bytenop -Xclang -target-feature -Xclang -fast-7bytenop -Xclang -target-feature -Xclang -fast-bextr -Xclang -target-feature -Xclang -fast-gather -Xclang -target-feature -Xclang -fast-hops -Xclang -target-feature -Xclang -fast-lzcnt -Xclang -target-feature -Xclang -fast-movbe -Xclang -target-feature -Xclang -fast-scalar-fsqrt -Xclang -target-feature -Xclang -fast-scalar-shift-masks -Xclang -target-feature -Xclang -fast-shld-rotate -Xclang -target-feature -Xclang -fast-variable-crosslane-shuffle -Xclang -target-feature -Xclang -fast-variable-perlane-shuffle -Xclang -target-feature -Xclang -fast-vector-fsqrt -Xclang -target-feature -Xclang -fast-vector-shift-masks -Xclang -target-feature -Xclang -faster-shift-than-shuffle -Xclang -target-feature -Xclang -fma -Xclang -target-feature -Xclang -fma4 -Xclang -target-feature -Xclang -fsgsbase -Xclang -target-feature -Xclang -fsrm -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang -gfni -Xclang -target-feature -Xclang -harden-sls-ijmp -Xclang -target-feature -Xclang -harden-sls-ret -Xclang -target-feature -Xclang -hreset -Xclang -target-feature -Xclang -idivl-to-divb -Xclang -target-feature -Xclang +idivq-to-divl -Xclang -target-feature -Xclang -invpcid -Xclang -target-feature -Xclang -kl -Xclang -target-feature -Xclang -lea-sp -Xclang -target-feature -Xclang -lea-uses-ag -Xclang -target-feature -Xclang -lvi-cfi -Xclang -target-feature -Xclang -lvi-load-hardening -Xclang -target-feature -Xclang -lwp -Xclang -target-feature -Xclang -lzcnt -Xclang -target-feature -Xclang +macrofusion -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang -movbe -Xclang -target-feature -Xclang -movdir64b -Xclang -target-feature -Xclang -movdiri -Xclang -target-feature -Xclang -mwaitx -Xclang -target-feature -Xclang -no-bypass-delay -Xclang -target-feature -Xclang -no-bypass-delay-blend -Xclang -target-feature -Xclang -no-bypass-delay-mov -Xclang -target-feature -Xclang -no-bypass-delay-shuffle -Xclang -target-feature -Xclang +nopl -Xclang -target-feature -Xclang -pad-short-functions -Xclang -target-feature -Xclang -pclmul -Xclang -target-feature -Xclang -pconfig -Xclang -target-feature -Xclang -pku -Xclang -target-feature -Xclang -popcnt -Xclang -target-feature -Xclang -prefer-128-bit -Xclang -target-feature -Xclang -prefer-256-bit -Xclang -target-feature -Xclang -prefer-mask-registers -Xclang -target-feature -Xclang -prefer-movmsk-over-vtest -Xclang -target-feature -Xclang -prefetchi -Xclang -target-feature -Xclang -prefetchwt1 -Xclang -target-feature -Xclang -prfchw -Xclang -target-feature -Xclang -ptwrite -Xclang -target-feature -Xclang -raoint -Xclang -target-feature -Xclang -rdpid -Xclang -target-feature -Xclang -rdpru -Xclang -target-feature -Xclang -rdrnd -Xclang -target-feature -Xclang -rdseed -Xclang -target-feature -Xclang -retpoline -Xclang -target-feature -Xclang -retpoline-external-thunk -Xclang -target-feature -Xclang -retpoline-indirect-branches -Xclang -target-feature -Xclang -retpoline-indirect-calls -Xclang -target-feature -Xclang -rtm -Xclang -target-feature -Xclang -sahf -Xclang -target-feature -Xclang -sbb-dep-breaking -Xclang -target-feature -Xclang -serialize -Xclang -target-feature -Xclang -seses -Xclang -target-feature -Xclang -sgx -Xclang -target-feature -Xclang -sha -Xclang -target-feature -Xclang -sha512 -Xclang -target-feature -Xclang -shstk -Xclang -target-feature -Xclang +slow-3ops-lea -Xclang -target-feature -Xclang +slow-incdec -Xclang -target-feature -Xclang -slow-lea -Xclang -target-feature -Xclang -slow-pmaddwd -Xclang -target-feature -Xclang -slow-pmulld -Xclang -target-feature -Xclang -slow-shld -Xclang -target-feature -Xclang -slow-two-mem-ops -Xclang -target-feature -Xclang -slow-unaligned-mem-16 -Xclang -target-feature -Xclang -slow-unaligned-mem-32 -Xclang -target-feature -Xclang -sm3 -Xclang -target-feature -Xclang -sm4 -Xclang -target-feature -Xclang -soft-float -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang -sse3 -Xclang -target-feature -Xclang -sse4.1 -Xclang -target-feature -Xclang -sse4.2 -Xclang -target-feature -Xclang -sse4a -Xclan
 |   |                     |-+- 49342 breezewish ccache /Users/breezewish/Library/Caches/cargo-zigbuild/0.18.3/zigcxx-x86_64-unknown-linux-gnu.2.17.sh -DBZIP2 -DLZ4 -DOPENSSL -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DSNAPPY -DZLIB -DZSTD -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-044f7346d0d7b9f4/out/include -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/openssl-sys-a3212a2121e8be6c/out/openssl-build/install/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/folly -isystem /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/gtest-1.8.1/fused-src -isystem /opt/homebrew/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/libz-sys-f1896d79ba48e1a0/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/lz4-sys-0987f25107261b62/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/zstd-sys-f8a595396cfc5e95/out/include -ffunction-sections -fdata-sections -fPIC -m64 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Werror -g -DROCKSDB_USE_RTTI -std=gnu++11 -MD -MT CMakeFiles/rocksdb.dir/db/flush_job.cc.o -MF CMakeFiles/rocksdb.dir/db/flush_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/flush_job.cc.o -c /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/flush_job.cc
 |   |                     | \-+- 49440 breezewish /Users/breezewish/Work/cargo-zigbuild/target/debug/cargo-zigbuild zig c++ -- -target x86_64-linux-gnu.2.17 -g -ffunction-sections -fdata-sections -fPIC -m64 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -g -std=gnu++11 -Werror -DBZIP2 -DLZ4 -DOPENSSL -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DSNAPPY -DZLIB -DZSTD -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-044f7346d0d7b9f4/out/include -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/openssl-sys-a3212a2121e8be6c/out/openssl-build/install/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/folly -isystem /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/gtest-1.8.1/fused-src -isystem /opt/homebrew/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/libz-sys-f1896d79ba48e1a0/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/lz4-sys-0987f25107261b62/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/zstd-sys-f8a595396cfc5e95/out/include -DROCKSDB_USE_RTTI -c -MD -MT CMakeFiles/rocksdb.dir/db/flush_job.cc.o -MF CMakeFiles/rocksdb.dir/db/flush_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/flush_job.cc.o /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/flush_job.cc
 |   |                     |   \--- 49470 breezewish /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/zig clang /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/flush_job.cc --no-default-config -nostdinc++ -ffunction-sections -fdata-sections -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libcxx/include -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libcxxabi/include -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -D_LIBCPP_PSTL_CPU_BACKEND_SERIAL -D_LIBCPP_ABI_VERSION=1 -D_LIBCPP_ABI_NAMESPACE=__1 -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libunwind/include -D__GLIBC_MINOR__=17 -target x86_64-unknown-linux-gnu -nostdinc -fno-spell-checking -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/include -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/x86_64-linux-gnu -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/generic-glibc -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/x86-linux-any -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/any-linux-any -Xclang -target-cpu -Xclang x86-64 -Xclang -target-feature -Xclang -16bit-mode -Xclang -target-feature -Xclang -32bit-mode -Xclang -target-feature -Xclang -3dnow -Xclang -target-feature -Xclang -3dnowa -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang -adx -Xclang -target-feature -Xclang -aes -Xclang -target-feature -Xclang -allow-light-256-bit -Xclang -target-feature -Xclang -amx-bf16 -Xclang -target-feature -Xclang -amx-complex -Xclang -target-feature -Xclang -amx-fp16 -Xclang -target-feature -Xclang -amx-int8 -Xclang -target-feature -Xclang -amx-tile -Xclang -target-feature -Xclang -avx -Xclang -target-feature -Xclang -avx2 -Xclang -target-feature -Xclang -avx512bf16 -Xclang -target-feature -Xclang -avx512bitalg -Xclang -target-feature -Xclang -avx512bw -Xclang -target-feature -Xclang -avx512cd -Xclang -target-feature -Xclang -avx512dq -Xclang -target-feature -Xclang -avx512er -Xclang -target-feature -Xclang -avx512f -Xclang -target-feature -Xclang -avx512fp16 -Xclang -target-feature -Xclang -avx512ifma -Xclang -target-feature -Xclang -avx512pf -Xclang -target-feature -Xclang -avx512vbmi -Xclang -target-feature -Xclang -avx512vbmi2 -Xclang -target-feature -Xclang -avx512vl -Xclang -target-feature -Xclang -avx512vnni -Xclang -target-feature -Xclang -avx512vp2intersect -Xclang -target-feature -Xclang -avx512vpopcntdq -Xclang -target-feature -Xclang -avxifma -Xclang -target-feature -Xclang -avxneconvert -Xclang -target-feature -Xclang -avxvnni -Xclang -target-feature -Xclang -avxvnniint16 -Xclang -target-feature -Xclang -avxvnniint8 -Xclang -target-feature -Xclang -bmi -Xclang -target-feature -Xclang -bmi2 -Xclang -target-feature -Xclang -branchfusion -Xclang -target-feature -Xclang -cldemote -Xclang -target-feature -Xclang -clflushopt -Xclang -target-feature -Xclang -clwb -Xclang -target-feature -Xclang -clzero -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang -cmpccxadd -Xclang -target-feature -Xclang -crc32 -Xclang -target-feature -Xclang -cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang -enqcmd -Xclang -target-feature -Xclang -ermsb -Xclang -target-feature -Xclang -f16c -Xclang -target-feature -Xclang -false-deps-getmant -Xclang -target-feature -Xclang -false-deps-lzcnt-tzcnt -Xclang -target-feature -Xclang -false-deps-mulc -Xclang -target-feature -Xclang -false-deps-mullq -Xclang -target-feature -Xclang -false-deps-perm -Xclang -target-feature -Xclang -false-deps-popcnt -Xclang -target-feature -Xclang -false-deps-range -Xclang -target-feature -Xclang -fast-11bytenop -Xclang -target-feature -Xclang -fast-15bytenop -Xclang -target-feature -Xclang -fast-7bytenop -Xclang -target-feature -Xclang -fast-bextr -Xclang -target-feature -Xclang -fast-gather -Xclang -target-feature -Xclang -fast-hops -Xclang -target-feature -Xclang -fast-lzcnt -Xclang -target-feature -Xclang -fast-movbe -Xclang -target-feature -Xclang -fast-scalar-fsqrt -Xclang -target-feature -Xclang -fast-scalar-shift-masks -Xclang -target-feature -Xclang -fast-shld-rotate -Xclang -target-feature -Xclang -fast-variable-crosslane-shuffle -Xclang -target-feature -Xclang -fast-variable-perlane-shuffle -Xclang -target-feature -Xclang -fast-vector-fsqrt -Xclang -target-feature -Xclang -fast-vector-shift-masks -Xclang -target-feature -Xclang -faster-shift-than-shuffle -Xclang -target-feature -Xclang -fma -Xclang -target-feature -Xclang -fma4 -Xclang -target-feature -Xclang -fsgsbase -Xclang -target-feature -Xclang -fsrm -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang -gfni -Xclang -target-feature -Xclang -harden-sls-ijmp -Xclang -target-feature -Xclang -harden-sls-ret -Xclang -target-feature -Xclang -hreset -Xclang -target-feature -Xclang -idivl-to-divb -Xclang -target-feature -Xclang +idivq-to-divl -Xclang -target-feature -Xclang -invpcid -Xclang -target-feature -Xclang -kl -Xclang -target-feature -Xclang -lea-sp -Xclang -target-feature -Xclang -lea-uses-ag -Xclang -target-feature -Xclang -lvi-cfi -Xclang -target-feature -Xclang -lvi-load-hardening -Xclang -target-feature -Xclang -lwp -Xclang -target-feature -Xclang -lzcnt -Xclang -target-feature -Xclang +macrofusion -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang -movbe -Xclang -target-feature -Xclang -movdir64b -Xclang -target-feature -Xclang -movdiri -Xclang -target-feature -Xclang -mwaitx -Xclang -target-feature -Xclang -no-bypass-delay -Xclang -target-feature -Xclang -no-bypass-delay-blend -Xclang -target-feature -Xclang -no-bypass-delay-mov -Xclang -target-feature -Xclang -no-bypass-delay-shuffle -Xclang -target-feature -Xclang +nopl -Xclang -target-feature -Xclang -pad-short-functions -Xclang -target-feature -Xclang -pclmul -Xclang -target-feature -Xclang -pconfig -Xclang -target-feature -Xclang -pku -Xclang -target-feature -Xclang -popcnt -Xclang -target-feature -Xclang -prefer-128-bit -Xclang -target-feature -Xclang -prefer-256-bit -Xclang -target-feature -Xclang -prefer-mask-registers -Xclang -target-feature -Xclang -prefer-movmsk-over-vtest -Xclang -target-feature -Xclang -prefetchi -Xclang -target-feature -Xclang -prefetchwt1 -Xclang -target-feature -Xclang -prfchw -Xclang -target-feature -Xclang -ptwrite -Xclang -target-feature -Xclang -raoint -Xclang -target-feature -Xclang -rdpid -Xclang -target-feature -Xclang -rdpru -Xclang -target-feature -Xclang -rdrnd -Xclang -target-feature -Xclang -rdseed -Xclang -target-feature -Xclang -retpoline -Xclang -target-feature -Xclang -retpoline-external-thunk -Xclang -target-feature -Xclang -retpoline-indirect-branches -Xclang -target-feature -Xclang -retpoline-indirect-calls -Xclang -target-feature -Xclang -rtm -Xclang -target-feature -Xclang -sahf -Xclang -target-feature -Xclang -sbb-dep-breaking -Xclang -target-feature -Xclang -serialize -Xclang -target-feature -Xclang -seses -Xclang -target-feature -Xclang -sgx -Xclang -target-feature -Xclang -sha -Xclang -target-feature -Xclang -sha512 -Xclang -target-feature -Xclang -shstk -Xclang -target-feature -Xclang +slow-3ops-lea -Xclang -target-feature -Xclang +slow-incdec -Xclang -target-feature -Xclang -slow-lea -Xclang -target-feature -Xclang -slow-pmaddwd -Xclang -target-feature -Xclang -slow-pmulld -Xclang -target-feature -Xclang -slow-shld -Xclang -target-feature -Xclang -slow-two-mem-ops -Xclang -target-feature -Xclang -slow-unaligned-mem-16 -Xclang -target-feature -Xclang -slow-unaligned-mem-32 -Xclang -target-feature -Xclang -sm3 -Xclang -target-feature -Xclang -sm4 -Xclang -target-feature -Xclang -soft-float -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang -sse3 -Xclang -target-feature -Xclang -sse4.1 -Xclang -target-feature -Xclang -sse4.2 -Xclang -target-feature -Xclang -sse4a -Xclang -target-feature -Xcl
 |   |                     |-+- 49349 breezewish ccache /Users/breezewish/Library/Caches/cargo-zigbuild/0.18.3/zigcxx-x86_64-unknown-linux-gnu.2.17.sh -DBZIP2 -DLZ4 -DOPENSSL -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DSNAPPY -DZLIB -DZSTD -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-044f7346d0d7b9f4/out/include -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/openssl-sys-a3212a2121e8be6c/out/openssl-build/install/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/folly -isystem /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/gtest-1.8.1/fused-src -isystem /opt/homebrew/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/libz-sys-f1896d79ba48e1a0/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/lz4-sys-0987f25107261b62/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/zstd-sys-f8a595396cfc5e95/out/include -ffunction-sections -fdata-sections -fPIC -m64 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Werror -g -DROCKSDB_USE_RTTI -std=gnu++11 -MD -MT CMakeFiles/rocksdb.dir/db/file_indexer.cc.o -MF CMakeFiles/rocksdb.dir/db/file_indexer.cc.o.d -o CMakeFiles/rocksdb.dir/db/file_indexer.cc.o -c /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/file_indexer.cc
 |   |                     | \-+- 49436 breezewish /Users/breezewish/Work/cargo-zigbuild/target/debug/cargo-zigbuild zig c++ -- -target x86_64-linux-gnu.2.17 -g -ffunction-sections -fdata-sections -fPIC -m64 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -g -std=gnu++11 -Werror -DBZIP2 -DLZ4 -DOPENSSL -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DSNAPPY -DZLIB -DZSTD -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-044f7346d0d7b9f4/out/include -I/Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/openssl-sys-a3212a2121e8be6c/out/openssl-build/install/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/include -I/Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/folly -isystem /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/third-party/gtest-1.8.1/fused-src -isystem /opt/homebrew/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/libz-sys-f1896d79ba48e1a0/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/lz4-sys-0987f25107261b62/out/include -isystem /Users/breezewish/Work/rust-rocksdb/target/x86_64-unknown-linux-gnu/debug/build/zstd-sys-f8a595396cfc5e95/out/include -DROCKSDB_USE_RTTI -c -MD -MT CMakeFiles/rocksdb.dir/db/file_indexer.cc.o -MF CMakeFiles/rocksdb.dir/db/file_indexer.cc.o.d -o CMakeFiles/rocksdb.dir/db/file_indexer.cc.o /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/file_indexer.cc
 |   |                     |   \--- 49461 breezewish /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/zig clang /Users/breezewish/Work/rust-rocksdb/librocksdb_sys/rocksdb/db/file_indexer.cc --no-default-config -nostdinc++ -ffunction-sections -fdata-sections -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libcxx/include -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libcxxabi/include -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -D_LIBCPP_PSTL_CPU_BACKEND_SERIAL -D_LIBCPP_ABI_VERSION=1 -D_LIBCPP_ABI_NAMESPACE=__1 -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libunwind/include -D__GLIBC_MINOR__=17 -target x86_64-unknown-linux-gnu -nostdinc -fno-spell-checking -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/include -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/x86_64-linux-gnu -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/generic-glibc -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/x86-linux-any -isystem /Users/breezewish/Dev/zig-macos-aarch64-0.12.0-dev.3630+215de3ee6/lib/libc/include/any-linux-any -Xclang -target-cpu -Xclang x86-64 -Xclang -target-feature -Xclang -16bit-mode -Xclang -target-feature -Xclang -32bit-mode -Xclang -target-feature -Xclang -3dnow -Xclang -target-feature -Xclang -3dnowa -Xclang -target-feature -Xclang +64bit -Xclang -target-feature -Xclang -adx -Xclang -target-feature -Xclang -aes -Xclang -target-feature -Xclang -allow-light-256-bit -Xclang -target-feature -Xclang -amx-bf16 -Xclang -target-feature -Xclang -amx-complex -Xclang -target-feature -Xclang -amx-fp16 -Xclang -target-feature -Xclang -amx-int8 -Xclang -target-feature -Xclang -amx-tile -Xclang -target-feature -Xclang -avx -Xclang -target-feature -Xclang -avx2 -Xclang -target-feature -Xclang -avx512bf16 -Xclang -target-feature -Xclang -avx512bitalg -Xclang -target-feature -Xclang -avx512bw -Xclang -target-feature -Xclang -avx512cd -Xclang -target-feature -Xclang -avx512dq -Xclang -target-feature -Xclang -avx512er -Xclang -target-feature -Xclang -avx512f -Xclang -target-feature -Xclang -avx512fp16 -Xclang -target-feature -Xclang -avx512ifma -Xclang -target-feature -Xclang -avx512pf -Xclang -target-feature -Xclang -avx512vbmi -Xclang -target-feature -Xclang -avx512vbmi2 -Xclang -target-feature -Xclang -avx512vl -Xclang -target-feature -Xclang -avx512vnni -Xclang -target-feature -Xclang -avx512vp2intersect -Xclang -target-feature -Xclang -avx512vpopcntdq -Xclang -target-feature -Xclang -avxifma -Xclang -target-feature -Xclang -avxneconvert -Xclang -target-feature -Xclang -avxvnni -Xclang -target-feature -Xclang -avxvnniint16 -Xclang -target-feature -Xclang -avxvnniint8 -Xclang -target-feature -Xclang -bmi -Xclang -target-feature -Xclang -bmi2 -Xclang -target-feature -Xclang -branchfusion -Xclang -target-feature -Xclang -cldemote -Xclang -target-feature -Xclang -clflushopt -Xclang -target-feature -Xclang -clwb -Xclang -target-feature -Xclang -clzero -Xclang -target-feature -Xclang +cmov -Xclang -target-feature -Xclang -cmpccxadd -Xclang -target-feature -Xclang -crc32 -Xclang -target-feature -Xclang -cx16 -Xclang -target-feature -Xclang +cx8 -Xclang -target-feature -Xclang -enqcmd -Xclang -target-feature -Xclang -ermsb -Xclang -target-feature -Xclang -f16c -Xclang -target-feature -Xclang -false-deps-getmant -Xclang -target-feature -Xclang -false-deps-lzcnt-tzcnt -Xclang -target-feature -Xclang -false-deps-mulc -Xclang -target-feature -Xclang -false-deps-mullq -Xclang -target-feature -Xclang -false-deps-perm -Xclang -target-feature -Xclang -false-deps-popcnt -Xclang -target-feature -Xclang -false-deps-range -Xclang -target-feature -Xclang -fast-11bytenop -Xclang -target-feature -Xclang -fast-15bytenop -Xclang -target-feature -Xclang -fast-7bytenop -Xclang -target-feature -Xclang -fast-bextr -Xclang -target-feature -Xclang -fast-gather -Xclang -target-feature -Xclang -fast-hops -Xclang -target-feature -Xclang -fast-lzcnt -Xclang -target-feature -Xclang -fast-movbe -Xclang -target-feature -Xclang -fast-scalar-fsqrt -Xclang -target-feature -Xclang -fast-scalar-shift-masks -Xclang -target-feature -Xclang -fast-shld-rotate -Xclang -target-feature -Xclang -fast-variable-crosslane-shuffle -Xclang -target-feature -Xclang -fast-variable-perlane-shuffle -Xclang -target-feature -Xclang -fast-vector-fsqrt -Xclang -target-feature -Xclang -fast-vector-shift-masks -Xclang -target-feature -Xclang -faster-shift-than-shuffle -Xclang -target-feature -Xclang -fma -Xclang -target-feature -Xclang -fma4 -Xclang -target-feature -Xclang -fsgsbase -Xclang -target-feature -Xclang -fsrm -Xclang -target-feature -Xclang +fxsr -Xclang -target-feature -Xclang -gfni -Xclang -target-feature -Xclang -harden-sls-ijmp -Xclang -target-feature -Xclang -harden-sls-ret -Xclang -target-feature -Xclang -hreset -Xclang -target-feature -Xclang -idivl-to-divb -Xclang -target-feature -Xclang +idivq-to-divl -Xclang -target-feature -Xclang -invpcid -Xclang -target-feature -Xclang -kl -Xclang -target-feature -Xclang -lea-sp -Xclang -target-feature -Xclang -lea-uses-ag -Xclang -target-feature -Xclang -lvi-cfi -Xclang -target-feature -Xclang -lvi-load-hardening -Xclang -target-feature -Xclang -lwp -Xclang -target-feature -Xclang -lzcnt -Xclang -target-feature -Xclang +macrofusion -Xclang -target-feature -Xclang +mmx -Xclang -target-feature -Xclang -movbe -Xclang -target-feature -Xclang -movdir64b -Xclang -target-feature -Xclang -movdiri -Xclang -target-feature -Xclang -mwaitx -Xclang -target-feature -Xclang -no-bypass-delay -Xclang -target-feature -Xclang -no-bypass-delay-blend -Xclang -target-feature -Xclang -no-bypass-delay-mov -Xclang -target-feature -Xclang -no-bypass-delay-shuffle -Xclang -target-feature -Xclang +nopl -Xclang -target-feature -Xclang -pad-short-functions -Xclang -target-feature -Xclang -pclmul -Xclang -target-feature -Xclang -pconfig -Xclang -target-feature -Xclang -pku -Xclang -target-feature -Xclang -popcnt -Xclang -target-feature -Xclang -prefer-128-bit -Xclang -target-feature -Xclang -prefer-256-bit -Xclang -target-feature -Xclang -prefer-mask-registers -Xclang -target-feature -Xclang -prefer-movmsk-over-vtest -Xclang -target-feature -Xclang -prefetchi -Xclang -target-feature -Xclang -prefetchwt1 -Xclang -target-feature -Xclang -prfchw -Xclang -target-feature -Xclang -ptwrite -Xclang -target-feature -Xclang -raoint -Xclang -target-feature -Xclang -rdpid -Xclang -target-feature -Xclang -rdpru -Xclang -target-feature -Xclang -rdrnd -Xclang -target-feature -Xclang -rdseed -Xclang -target-feature -Xclang -retpoline -Xclang -target-feature -Xclang -retpoline-external-thunk -Xclang -target-feature -Xclang -retpoline-indirect-branches -Xclang -target-feature -Xclang -retpoline-indirect-calls -Xclang -target-feature -Xclang -rtm -Xclang -target-feature -Xclang -sahf -Xclang -target-feature -Xclang -sbb-dep-breaking -Xclang -target-feature -Xclang -serialize -Xclang -target-feature -Xclang -seses -Xclang -target-feature -Xclang -sgx -Xclang -target-feature -Xclang -sha -Xclang -target-feature -Xclang -sha512 -Xclang -target-feature -Xclang -shstk -Xclang -target-feature -Xclang +slow-3ops-lea -Xclang -target-feature -Xclang +slow-incdec -Xclang -target-feature -Xclang -slow-lea -Xclang -target-feature -Xclang -slow-pmaddwd -Xclang -target-feature -Xclang -slow-pmulld -Xclang -target-feature -Xclang -slow-shld -Xclang -target-feature -Xclang -slow-two-mem-ops -Xclang -target-feature -Xclang -slow-unaligned-mem-16 -Xclang -target-feature -Xclang -slow-unaligned-mem-32 -Xclang -target-feature -Xclang -sm3 -Xclang -target-feature -Xclang -sm4 -Xclang -target-feature -Xclang -soft-float -Xclang -target-feature -Xclang +sse -Xclang -target-feature -Xclang +sse2 -Xclang -target-feature -Xclang -sse3 -Xclang -target-feature -Xclang -sse4.1 -Xclang -target-feature -Xclang -sse4.2 -Xclang -target-feature -Xclang -sse4a -Xclang -target-feature -

ccache debug log shows that this compiler proxy is re-generated every time, causing ccache fail to cache:

Build 1:

=== COMMON ===
4
### ext
ii
### cc_mtime
133
1712808022947302145
### cc_name
zigcxx-x86_64-unknown-linux-gnu.2.17.sh

Build 2:

=== COMMON ===
4
### ext
ii
### cc_mtime
133
1712805941641050774
### cc_name
zigcxx-x86_64-unknown-linux-gnu.2.17.sh

One way to workaround is to configure ccache to use compiler content to check:

ccache --set-config=compiler_check=content

This makes cache slower, and is not a default option for users.

Is it possible to improve this behavior? Thanks!

messense commented 3 months ago

Sorry I don't know much about ccache, can't offer any help here. Anyway, pull requests are welcome to improve this!

breezewish commented 3 months ago

Maybe one way is to not touching the compiler proxy file when the file exists and has the same content as we desired.

messense commented 3 months ago

Sounds good as an optimization regardless of ccache issue anyway.