You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dependencies]
serde_json = { version = "1.0", features = ["alloc"], default-features = false }
openssl = { version = "0.10", features = ["vendored"], default-features = false }
reqwest = { version = "0.11", features = ["blocking", "default-tls"], default-features = false }
The complete error message is as follows
cargo build --target riscv64gc-unknown-linux-gnu
Compiling autocfg v1.1.0
Compiling libc v0.2.147
Compiling cfg-if v1.0.0
Compiling proc-macro2 v1.0.64
Compiling pin-project-lite v0.2.10
Compiling cc v1.0.79
Compiling pkg-config v0.3.27
Compiling once_cell v1.18.0
Compiling bytes v1.4.0
Compiling quote v1.0.29
Compiling unicode-ident v1.0.10
Compiling futures-core v0.3.28
Compiling itoa v1.0.8
Compiling memchr v2.5.0
Compiling futures-task v0.3.28
Compiling tracing-core v0.1.31
Compiling openssl v0.10.55
Compiling fnv v1.0.7
Compiling foreign-types-shared v0.1.1
Compiling futures-util v0.3.28
Compiling http v0.2.9
Compiling foreign-types v0.3.2
Compiling tokio v1.29.1
Compiling slab v0.4.8
Compiling indexmap v1.9.3
Compiling tracing v0.1.37
Compiling bitflags v1.3.2
Compiling tinyvec_macros v0.1.1
Compiling futures-io v0.3.28
Compiling hashbrown v0.12.3
Compiling httparse v1.8.0
Compiling pin-utils v0.1.0
Compiling num_cpus v1.16.0
Compiling mio v0.8.8
Compiling socket2 v0.4.9
Compiling serde v1.0.171
Compiling syn v2.0.25
Compiling futures-sink v0.3.28
Compiling native-tls v0.2.11
Compiling futures-channel v0.3.28
Compiling tinyvec v1.6.0
Compiling openssl-probe v0.1.5
Compiling log v0.4.19
Compiling percent-encoding v2.3.0
Compiling try-lock v0.2.4
Compiling want v0.3.1
Compiling form_urlencoded v1.2.0
Compiling openssl-sys v0.9.90
Compiling http-body v0.4.5
Compiling httpdate v1.0.2
Compiling unicode-bidi v0.3.13
Compiling tower-service v0.3.2
Compiling ryu v1.0.14
Compiling unicode-normalization v0.1.22
Compiling serde_json v1.0.102
Compiling encoding_rs v0.8.32
Compiling mime v0.3.17
Compiling base64 v0.21.2
Compiling ipnet v2.8.0
error: failed to run custom build command for `openssl-sys v0.9.90`
Caused by:
process didn't exit successfully: `/home/sda/Code/rust/Master-Rust/target/debug/build/openssl-sys-10f2c40841f1c5aa/build-script-main` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=RISCV64GC_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
RISCV64GC_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=RISCV64GC_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
RISCV64GC_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=RISCV64GC_UNKNOWN_LINUX_GNU_OPENSSL_DIR
RISCV64GC_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
cargo:rerun-if-env-changed=OPENSSL_DIR
OPENSSL_DIR unset
cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_riscv64gc-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_riscv64gc_unknown_linux_gnu
cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_ALLOW_CROSS
cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS
cargo:rerun-if-env-changed=PKG_CONFIG_riscv64gc-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_riscv64gc_unknown_linux_gnu
cargo:rerun-if-env-changed=TARGET_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_riscv64gc-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_riscv64gc_unknown_linux_gnu
cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
run pkg_config fail: pkg-config has not been configured to support cross-compilation.
Install a sysroot for the target platform and configure it via
PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a
cross-compiling wrapper for pkg-config and set it via
PKG_CONFIG environment variable.
--- stderr
thread 'main' panicked at '
Could not find directory of OpenSSL installation, and this `-sys` crate cannot
proceed without this knowledge. If OpenSSL is installed and this crate had
trouble finding it, you can set the `OPENSSL_DIR` environment variable for the
compilation process.
Make sure you also have the development packages of openssl installed.
For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
If you're in a situation where you think the directory *should* be found
automatically, please open a bug at https://github.com/sfackler/rust-openssl
and include information about your system as well as this message.
$HOST = x86_64-unknown-linux-gnu
$TARGET = riscv64gc-unknown-linux-gnu
openssl-sys = 0.9.90
', /home/sana/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.90/build/find_normal.rs:190:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I cross build rust program, the
reqwest
carte using openssl, but it encountered errorprogram configuration
The complete error message is as follows
Beta Was this translation helpful? Give feedback.
All reactions