Open ds2k5 opened 1 week ago
I have not seen this error on my host build machine. I have seen this error when I did an update to one of my github projects.
On Sat, Oct 12, 2024 at 1:37 AM ds2k5 @.***> wrote:
Hi, did following steps:
- git clone https://github.com/enelson1001/rust-esp32s3-lvgl-clickme/
- cd rust-esp32s3-lvgl-clickme
- cargo check
.... Compiling lvgl-sys v0.6.2 (https://github.com/enelson1001/lv_binding_rust#723ad383) Compiling ctor v0.2.8 error: failed to run custom build command for
lvgl-sys v0.6.2 (https://github.com/enelson1001/lv_binding_rust#723ad383)
https://github.com/enelson1001/lv_binding_rust#723ad383)Caused by: process didn't exit successfully:
/home/developer/rust/rust-esp32s3-lvgl-clickme/target/debug/build/lvgl-sys-2bf05075ca9f19b7/build-script-build
(exit status: 101) --- stdout cargo:rerun-if-env-changed=DEP_LV_CONFIG_PATH cargo:rerun-if-changed=/home/developer/rust/rust-esp32s3-lvgl-clickme/lvgl-configs/lv_conf.h cargo:rerun-if-changed=/home/developer/rust/rust-esp32s3-lvgl-clickme/custom-fonts--- stderr /home/developer/.cargo/git/checkouts/lv_binding_rust-a20987f774abecee/723ad38/lvgl-sys/vendor/lvgl/src/misc/lv_mem.h:20:10: fatal error: 'string.h' file not found thread 'main' panicked at /home/developer/.cargo/git/checkouts/lv_binding_rust-a20987f774abecee/723ad38/lvgl-sys/build.rs:219:10: Unable to generate bindings: ClangDiagnostic("/home/developer/.cargo/git/checkouts/lv_binding_rust-a20987f774abecee/723ad38/lvgl-sys/vendor/lvgl/src/misc/lv_mem.h:20:10: fatal error: 'string.h' file not found\n") note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace warning: build failed, waiting for other jobs to finish...How to fix this ?
— Reply to this email directly, view it on GitHub https://github.com/enelson1001/rust-esp32s3-lvgl-clickme/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLXR75U7NV6J3MJYVXCFY3Z3DGR7AVCNFSM6AAAAABP2FIE2WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4DENRVGEYDQOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
@enelson1001
Cargo.toml
...
[env]
C_INCLUDE_PATH = "/home/developer/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/xtensa-esp-elf/include"
cargo check
Compiling proc_macro v0.0.0 (/home/developer/.rustup/toolchains/esp/lib/rustlib/src/rust/library/proc_macro)
Compiling lvgl-sys v0.6.2 (https://github.com/enelson1001/lv_binding_rust#723ad383)
The following warnings were emitted during compilation:
warning: lvgl-sys@0.6.2: Compiler family detection failed due to error: ToolNotFound: Failed to find tool. Is `xtensa-esp32-elf-gcc` installed?
error: failed to run custom build command for `lvgl-sys v0.6.2 (https://github.com/enelson1001/lv_binding_rust#723ad383)`
Caused by:
process didn't exit successfully: `/home/developer/rust/rust-esp32s3-lvgl-clickme/target/debug/build/lvgl-sys-008af6e981294b91/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=DEP_LV_CONFIG_PATH
cargo:rerun-if-changed=/home/developer/rust/rust-esp32s3-lvgl-clickme/lvgl-configs/lv_conf.h
cargo:rerun-if-changed=/home/developer/rust/rust-esp32s3-lvgl-clickme/custom-fonts
OUT_DIR = Some(/home/developer/rust/rust-esp32s3-lvgl-clickme/target/xtensa-esp32s3-espidf/debug/build/lvgl-sys-e521b7ff613be20b/out)
TARGET = Some(xtensa-esp32s3-espidf)
OPT_LEVEL = Some(z)
HOST = Some(x86_64-unknown-linux-gnu)
cargo:rerun-if-env-changed=CC_xtensa-esp32s3-espidf
CC_xtensa-esp32s3-espidf = None
cargo:rerun-if-env-changed=CC_xtensa_esp32s3_espidf
CC_xtensa_esp32s3_espidf = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CROSS_COMPILE
CROSS_COMPILE = Some(xtensa-esp32-elf)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:warning=Compiler family detection failed due to error: ToolNotFound: Failed to find tool. Is `xtensa-esp32-elf-gcc` installed?
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some(true)
CARGO_CFG_TARGET_FEATURE = None
cargo:rerun-if-env-changed=CFLAGS_xtensa-esp32s3-espidf
CFLAGS_xtensa-esp32s3-espidf = None
cargo:rerun-if-env-changed=CFLAGS_xtensa_esp32s3_espidf
CFLAGS_xtensa_esp32s3_espidf = Some(-mlongcalls)
cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS
CC_SHELL_ESCAPED_FLAGS = None
--- stderr
error occurred: Failed to find tool. Is `xtensa-esp32-elf-gcc` installed?
warning: build failed, waiting for other jobs to finish...
This sounds like the toolchain is installed in another location or maybe you forgot to run $ . $HOME/exprort.sh
For me xtensa-esp32-elf-gcc is installed in /home/ed/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20200928/xtensa-esp-elf/bin
Ed
On Sun, Oct 13, 2024 at 11:01 AM ds2k5 @.***> wrote:
@enelson1001 https://github.com/enelson1001
Cargo.toml
... [env] C_INCLUDE_PATH = "/home/developer/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/xtensa-esp-elf/include"
cargo check
Compiling proc_macro v0.0.0 (/home/developer/.rustup/toolchains/esp/lib/rustlib/src/rust/library/proc_macro) Compiling lvgl-sys v0.6.2 (https://github.com/enelson1001/lv_binding_rust#723ad383) The following warnings were emitted during compilation:
warning: @.***: Compiler family detection failed due to error: ToolNotFound: Failed to find tool. Is
xtensa-esp32-elf-gcc
installed?error: failed to run custom build command for
lvgl-sys v0.6.2 (https://github.com/enelson1001/lv_binding_rust#723ad383)
https://github.com/enelson1001/lv_binding_rust#723ad383)Caused by: process didn't exit successfully:
/home/developer/rust/rust-esp32s3-lvgl-clickme/target/debug/build/lvgl-sys-008af6e981294b91/build-script-build
(exit status: 1) --- stdout cargo:rerun-if-env-changed=DEP_LV_CONFIG_PATH cargo:rerun-if-changed=/home/developer/rust/rust-esp32s3-lvgl-clickme/lvgl-configs/lv_conf.h cargo:rerun-if-changed=/home/developer/rust/rust-esp32s3-lvgl-clickme/custom-fonts OUT_DIR = Some(/home/developer/rust/rust-esp32s3-lvgl-clickme/target/xtensa-esp32s3-espidf/debug/build/lvgl-sys-e521b7ff613be20b/out) TARGET = Some(xtensa-esp32s3-espidf) OPT_LEVEL = Some(z) HOST = Some(x86_64-unknown-linux-gnu) cargo:rerun-if-env-changed=CC_xtensa-esp32s3-espidf CC_xtensa-esp32s3-espidf = None cargo:rerun-if-env-changed=CC_xtensa_esp32s3_espidf CC_xtensa_esp32s3_espidf = None cargo:rerun-if-env-changed=TARGET_CC TARGET_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CROSS_COMPILE CROSS_COMPILE = Some(xtensa-esp32-elf) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:warning=Compiler family detection failed due to error: ToolNotFound: Failed to find tool. Isxtensa-esp32-elf-gcc
installed? RUSTC_WRAPPER = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some(true) CARGO_CFG_TARGET_FEATURE = None cargo:rerun-if-env-changed=CFLAGS_xtensa-esp32s3-espidf CFLAGS_xtensa-esp32s3-espidf = None cargo:rerun-if-env-changed=CFLAGS_xtensa_esp32s3_espidf CFLAGS_xtensa_esp32s3_espidf = Some(-mlongcalls) cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS CC_SHELL_ESCAPED_FLAGS = None--- stderr
error occurred: Failed to find tool. Is
xtensa-esp32-elf-gcc
installed?warning: build failed, waiting for other jobs to finish...
— Reply to this email directly, view it on GitHub https://github.com/enelson1001/rust-esp32s3-lvgl-clickme/issues/1#issuecomment-2409050942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLXR7YPTQUEKGXQ5TM4W6DZ3KRQBAVCNFSM6AAAAABP2FIE2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBZGA2TAOJUGI . You are receiving this because you were mentioned.Message ID: @.***>
@enelson1001
thanks for the hint
~$ ls -la ~/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20200928/xtensa-esp-elf/bin
ls: cannot access '/home/developer/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20200928/xtensa-esp-elf/bin': No such file or directory
did
cargo install espup say that it is installed...
run then:
espup install
but there is no xtensa-esp-elf after do this
$ ls -la ~/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20200928/xtensa-esp-elf/bin
ls: cannot access '/home/developer/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20200928/xtensa-esp-elf/bin': No such file or directory
$ rustup target add xtensa-esp32-elf-gcc
error: toolchain 'esp' does not support components
tryed this too:
mkdir -p ~/esp
cd ~/esp
tar -xzf ~/Downloads/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
export PATH="$PATH:$HOME/esp/xtensa-esp32-elf/bin"
export DEP_LV_CONFIG_PATH=~/rust/lv_binding_rust/examples/includecd ~/rust/rust-esp32s3-lvgl-clickme
cargo clean
cargo check
Compiling document-features v0.2.10
Compiling lvgl-sys v0.6.2 (https://github.com/enelson1001/lv_binding_rust#723ad383)
error: failed to run custom build command for `lvgl-sys v0.6.2 (https://github.com/enelson1001/lv_binding_rust#723ad383)`
Caused by:
process didn't exit successfully: `/home/developer/rust/rust-esp32s3-lvgl-clickme/target/debug/build/lvgl-sys-e0355106c8576418/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=DEP_LV_CONFIG_PATH
cargo:rerun-if-changed=/home/developer/rust/lv_binding_rust/examples/include/lv_conf.h
cargo:rerun-if-changed=/home/developer/rust/rust-esp32s3-lvgl-clickme/custom-fonts
--- stderr
/home/developer/.cargo/git/checkouts/lv_binding_rust-a20987f774abecee/723ad38/lvgl-sys/vendor/lvgl/src/misc/lv_mem.h:20:10: fatal error: 'string.h' file not found
thread 'main' panicked at /home/developer/.cargo/git/checkouts/lv_binding_rust-a20987f774abecee/723ad38/lvgl-sys/build.rs:219:10:
Unable to generate bindings: ClangDiagnostic("/home/developer/.cargo/git/checkouts/lv_binding_rust-a20987f774abecee/723ad38/lvgl-sys/vendor/lvgl/src/misc/lv_mem.h:20:10: fatal error: 'string.h' file not found\n")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `lvgl-sys v0.6.2 (https://github.com/enelson1001/lv_binding_rust#723ad383)`
Caused by:
process didn't exit successfully: `/home/developer/rust/rust-esp32s3-lvgl-clickme/target/debug/build/lvgl-sys-f1b38ca4cbc66d45/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=DEP_LV_CONFIG_PATH
cargo:rerun-if-changed=/home/developer/rust/lv_binding_rust/examples/include/lv_conf.h
cargo:rerun-if-changed=/home/developer/rust/rust-esp32s3-lvgl-clickme/custom-fonts
OUT_DIR = Some(/home/developer/rust/rust-esp32s3-lvgl-clickme/target/xtensa-esp32s3-espidf/debug/build/lvgl-sys-f7e243dfb1d5be61/out)
TARGET = Some(xtensa-esp32s3-espidf)
OPT_LEVEL = Some(z)
HOST = Some(x86_64-unknown-linux-gnu)
cargo:rerun-if-env-changed=CC_xtensa-esp32s3-espidf
CC_xtensa-esp32s3-espidf = None
cargo:rerun-if-env-changed=CC_xtensa_esp32s3_espidf
CC_xtensa_esp32s3_espidf = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CROSS_COMPILE
CROSS_COMPILE = Some(xtensa-esp32-elf)
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(true)
CARGO_CFG_TARGET_FEATURE = None
cargo:rerun-if-env-changed=CFLAGS_xtensa-esp32s3-espidf
CFLAGS_xtensa-esp32s3-espidf = None
cargo:rerun-if-env-changed=CFLAGS_xtensa_esp32s3_espidf
CFLAGS_xtensa_esp32s3_espidf = Some(-mlongcalls)
cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS
CC_SHELL_ESCAPED_FLAGS = None
cargo:rerun-if-env-changed=AR_xtensa-esp32s3-espidf
AR_xtensa-esp32s3-espidf = None
cargo:rerun-if-env-changed=AR_xtensa_esp32s3_espidf
AR_xtensa_esp32s3_espidf = None
cargo:rerun-if-env-changed=TARGET_AR
TARGET_AR = None
cargo:rerun-if-env-changed=AR
AR = None
cargo:rerun-if-env-changed=ARFLAGS_xtensa-esp32s3-espidf
ARFLAGS_xtensa-esp32s3-espidf = None
cargo:rerun-if-env-changed=ARFLAGS_xtensa_esp32s3_espidf
ARFLAGS_xtensa_esp32s3_espidf = None
cargo:rerun-if-env-changed=TARGET_ARFLAGS
TARGET_ARFLAGS = None
cargo:rerun-if-env-changed=ARFLAGS
ARFLAGS = None
cargo:rustc-link-lib=static=lvgl
cargo:rustc-link-search=native=/home/developer/rust/rust-esp32s3-lvgl-clickme/target/xtensa-esp32s3-espidf/debug/build/lvgl-sys-f7e243dfb1d5be61/out
--- stderr
/home/developer/.cargo/git/checkouts/lv_binding_rust-a20987f774abecee/723ad38/lvgl-sys/vendor/lvgl/src/misc/lv_mem.h:20:10: fatal error: 'string.h' file not found
thread 'main' panicked at /home/developer/.cargo/git/checkouts/lv_binding_rust-a20987f774abecee/723ad38/lvgl-sys/build.rs:219:10:
Unable to generate bindings: ClangDiagnostic("/home/developer/.cargo/git/checkouts/lv_binding_rust-a20987f774abecee/723ad38/lvgl-sys/vendor/lvgl/src/misc/lv_mem.h:20:10: fatal error: 'string.h' file not found\n")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Hi, did following steps:
How to fix this ?