Open zoo868e opened 1 year ago
As the title, here is the output of the cargo build
cargo build
Compiling lmdb-sys v0.8.0 (/home/matt_jan/lmdb-rs/lmdb-sys) The following warnings were emitted during compilation: warning: In file included from /usr/local/include/linux/stat.h:6, warning: from /usr/include/x86_64-linux-gnu/bits/statx.h:31, warning: from /usr/include/x86_64-linux-gnu/sys/stat.h:465, warning: from /home/matt_jan/lmdb-rs/lmdb-sys/lmdb/libraries/liblmdb/mdb.c:66: warning: /usr/local/include/asm/stat.h:8:10: fatal error: uapi/asm/stat.h: No such file or directory warning: 8 | #include <uapi/asm/stat.h> warning: | ^~~~~~~~~~~~~~~~~ warning: compilation terminated. error: failed to run custom build command for `lmdb-sys v0.8.0 (/home/matt_jan/lmdb-rs/lmdb-sys)` Caused by: process didn't exit successfully: `/home/matt_jan/lmdb-rs/target/debug/build/lmdb-sys-f54e38c03d94593e/build-script-build` (exit status: 1) --- stdout cargo:rerun-if-env-changed=LIBLMDB_NO_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG cargo:rerun-if-env-changed=LIBLMDB_STATIC cargo:rerun-if-env-changed=LIBLMDB_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR TARGET = Some("x86_64-unknown-linux-gnu") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None running: "gcc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/matt_jan/lmdb-rs/target/debug/build/lmdb-sys-a4f65797694572cc/out/f78d8cd4c37051d3-mdb.o" "-c" "/home/matt_jan/lmdb-rs/lmdb-sys/lmdb/libraries/liblmdb/mdb.c" cargo:warning=In file included from /usr/local/include/linux/stat.h:6, cargo:warning= from /usr/include/x86_64-linux-gnu/bits/statx.h:31, cargo:warning= from /usr/include/x86_64-linux-gnu/sys/stat.h:465, cargo:warning= from /home/matt_jan/lmdb-rs/lmdb-sys/lmdb/libraries/liblmdb/mdb.c:66: cargo:warning=/usr/local/include/asm/stat.h:8:10: fatal error: uapi/asm/stat.h: No such file or directory cargo:warning= 8 | #include <uapi/asm/stat.h> cargo:warning= | ^~~~~~~~~~~~~~~~~ cargo:warning=compilation terminated. exit status: 1 --- stderr error occurred: Command "gcc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/matt_jan/lmdb-rs/target/debug/build/lmdb-sys-a4f65797694572cc/out/f78d8cd4c37051d3-mdb.o" "-c" "/home/matt_jan/lmdb-rs/lmdb-sys/lmdb/libraries/liblmdb/mdb.c" with args "gcc" did not execute successfully (status code exit status: 1).
I am using WSL2, the following is output of lsb_release -a
lsb_release -a
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy
Are there any suggestion?
As the title, here is the output of the
cargo build
I am using WSL2, the following is output of
lsb_release -a
Are there any suggestion?