Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in tikv-jemalloc-sys 0.5.4+5.3.0-patched build script: DirectoryNotEmpty #84

Open
djc opened this issue May 2, 2024 · 0 comments

Comments

@djc
Copy link

djc commented May 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant