jemallocator
jemallocator copied to clipboard
Panic in tikv-jemalloc-sys 0.5.4+5.3.0-patched build script: DirectoryNotEmpty
error: failed to run custom build command for `tikv-jemalloc-sys v0.5.4+5.3.0-patched`
Caused by:
process didn't exit successfully: `/Users/djc/src/rustls/target/debug/build/tikv-jemalloc-sys-535ae77c5e13eddf/build-script-build` (exit status: 101)
--- stdout
TARGET=aarch64-apple-darwin
HOST=aarch64-apple-darwin
NUM_JOBS=10
OUT_DIR="/Users/djc/src/rustls/target/debug/build/tikv-jemalloc-sys-6b3cd5a322213ff7/out"
BUILD_DIR="/Users/djc/src/rustls/target/debug/build/tikv-jemalloc-sys-6b3cd5a322213ff7/out/build"
SRC_DIR="/Users/djc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemalloc-sys-0.5.4+5.3.0-patched"
cargo:rustc-cfg=prefixed
cargo:rerun-if-env-changed=JEMALLOC_OVERRIDE
OPT_LEVEL = Some("0")
TARGET = Some("aarch64-apple-darwin")
HOST = Some("aarch64-apple-darwin")
cargo:rerun-if-env-changed=CC_aarch64-apple-darwin
CC_aarch64-apple-darwin = None
cargo:rerun-if-env-changed=CC_aarch64_apple_darwin
CC_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
running: "cc" "--version"
exit status: 0
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
running: "xcrun" "--show-sdk-platform-version" "--sdk" "macosx"
exit status: 0
cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin
CFLAGS_aarch64-apple-darwin = None
cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin
CFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
CC="cc"
CFLAGS="-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-2 -fno-omit-frame-pointer --target=arm64-apple-darwin -mmacosx-version-min=14.4 -Wall"
JEMALLOC_REPO_DIR="jemalloc"
--- stderr
thread 'main' panicked at /Users/djc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemalloc-sys-0.5.4+5.3.0-patched/build.rs:142:47:
called `Result::unwrap()` on an `Err` value: Os { code: 66, kind: DirectoryNotEmpty, message: "Directory not empty" }
Happened after upgrading to Rust 1.78 on macOS (with M1 Max) and running cargo clippy --all-features --all-targets in the rustls repo (after running cargo clean). The next invocation succeeded.