-
uname -a
Linux test 6.13.7-061307-generic #202503131244 SMP Thu Mar 13 14:26:37 UTC 2025 s390x s390x s390x GNU/Linux 非源码安装 error: failed to run custom build command for `ring v0.16.20`
Caused by:
process didn't exit successfully: `/tmp/cargo-installFVGvqZ/release/build/ring-af51b82119b0269a/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at /home/linux1/.cargo/registry/src/index.crates.io-7f555b6b8ccf4919/ring-0.16.20/build.rs:358:10:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `easytier v2.0.3`, intermediate artifacts can be found at `/tmp/cargo-installFVGvqZ`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. 源码安装 error: failed to run custom build command for `kcp-sys v0.1.0 (https://github.com/EasyTier/kcp-sys#0f0a0558)`
Caused by:
process didn't exit successfully: `/tmp/cargo-installDT6sFg/release/build/kcp-sys-8cbf85a88eeaff20/build-script-build` (exit status: 101)
--- stdout
cargo:rustc-link-lib=kcp
OUT_DIR = Some(/tmp/cargo-installDT6sFg/release/build/kcp-sys-1a5fd71583463b5f/out)
TARGET = Some(s390x-unknown-linux-gnu)
HOST = Some(s390x-unknown-linux-gnu)
cargo:rerun-if-env-changed=CC_s390x-unknown-linux-gnu
CC_s390x-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CC_s390x_unknown_linux_gnu
CC_s390x_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some(false)
CARGO_CFG_TARGET_FEATURE = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS_s390x_unknown_linux_gnu
CFLAGS_s390x_unknown_linux_gnu = None
cargo:rerun-if-env-changed=CFLAGS_s390x-unknown-linux-gnu
CFLAGS_s390x-unknown-linux-gnu = None
CARGO_ENCODED_RUSTFLAGS = Some()
cargo:rerun-if-env-changed=AR_s390x-unknown-linux-gnu
AR_s390x-unknown-linux-gnu = None
cargo:rerun-if-env-changed=AR_s390x_unknown_linux_gnu
AR_s390x_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_AR
HOST_AR = None
cargo:rerun-if-env-changed=AR
AR = None
cargo:rerun-if-env-changed=ARFLAGS
ARFLAGS = None
cargo:rerun-if-env-changed=HOST_ARFLAGS
HOST_ARFLAGS = None
cargo:rerun-if-env-changed=ARFLAGS_s390x_unknown_linux_gnu
ARFLAGS_s390x_unknown_linux_gnu = None
cargo:rerun-if-env-changed=ARFLAGS_s390x-unknown-linux-gnu
ARFLAGS_s390x-unknown-linux-gnu = None
cargo:rustc-link-lib=static=kcp
cargo:rustc-link-search=native=/tmp/cargo-installDT6sFg/release/build/kcp-sys-1a5fd71583463b5f/out
cargo:rustc-link-search=native=/home/linux1/.cargo/git/checkouts/kcp-sys-9a30d43a4ca2d944/0f0a055/kcp
cargo:rerun-if-changed=kcp/ikcp.h
cargo:rerun-if-changed=kcp/ikcp.c
cargo:rerun-if-changed=wrapper.h
cargo:rerun-if-env-changed=TARGET
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_s390x-unknown-linux-gnu
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_s390x_unknown_linux_gnu
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS
cargo:rerun-if-changed=wrapper.h
--- stderr
thread 'main' panicked at /home/linux1/.cargo/registry/src/index.crates.io-7f555b6b8ccf4919/bindgen-0.71.1/lib.rs:604:27:
Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `easytier v2.2.2 (https://github.com/EasyTier/EasyTier.git#23f69ce6)`, intermediate artifacts can be found at `/tmp/cargo-installDT6sFg`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. |
Beta Was this translation helpful? Give feedback.
Answered by
KKRainbow
Mar 17, 2025
Replies: 2 comments 1 reply
-
装个clang再试试 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tripAI-fx
-
看起来是第三方的依赖没做好适配 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
装个clang再试试