jemallocator
jemallocator copied to clipboard
wsl 20.04: build failed in windows dir, but success in ubuntu's dir
build in /mnt/f/dot, failed with message:
@DESKTOP-L8C67IT:/mnt/f/dot/polkadot$ cargo build --release
Compiling zstd-sys v1.4.20+zstd.1.4.9
Compiling jemalloc-sys v0.3.2
Compiling libz-sys v1.0.25
Compiling toml v0.5.6
Compiling camino v1.0.4
Compiling semver v0.11.0
Compiling serde_json v1.0.64
error: failed to run custom build command for `jemalloc-sys v0.3.2`
Caused by:
process didn't exit successfully: `/mnt/f/dot/polkadot/target/release/build/jemalloc-sys-f87e040056d3217a/build-script-build` (exit status: 101)
--- stdout
TARGET=x86_64-unknown-linux-gnu
HOST=x86_64-unknown-linux-gnu
NUM_JOBS=8
OUT_DIR="/mnt/f/dot/polkadot/target/release/build/jemalloc-sys-52320dc05d6d08f9/out"
BUILD_DIR="/mnt/f/dot/polkadot/target/release/build/jemalloc-sys-52320dc05d6d08f9/out/build"
SRC_DIR="/home/guotie/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2"
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
CC="cc"
CFLAGS="-O3 -ffunction-sections -fdata-sections -fPIC -m64 -Wall"
JEMALLOC_REPO_DIR="jemalloc"
JEMALLOC_SRC_DIR="/mnt/f/dot/polkadot/target/release/build/jemalloc-sys-52320dc05d6d08f9/out/jemalloc"
--- stderr
thread 'main' panicked at 'failed to copy jemalloc source code to OUT_DIR: Error { kind: PermissionDenied, message: "permission denied" }', /home/guotie/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.2/build.rs:148:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
^C Building [=============> ] 670/1125: zstd-sys(build), zstd-sys(build), toml