Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i was planning to do a HelloBoard test program on esp32-c3,but i got this issue,how can i solve this problem. #219

Closed
majorzpley opened this issue Jul 22, 2023 · 9 comments

Comments

@majorzpley
Copy link

PS F:\std-training\intro\hardware-check> cargo run
Compiling esp-idf-sys v0.33.0
Compiling wifi v0.1.0 (F:\std-training\common\lib\wifi)
Compiling rgb-led v0.1.0 (F:\std-training\common\lib\rgb-led)
The following warnings were emitted during compilation:

warning: Configuring first supported MCU 'esp32c3' derived from the build target 'riscv32imc-esp-espidf' supporting MCUs [esp32c3, esp32c2, esp32h2, esp32c5]; explicitly specify an MCU to resolve this ambiguity

error: failed to run custom build command for esp-idf-sys v0.33.0

Caused by:
process didn't exit successfully: F:\std-training\intro\hardware-check\target\debug\build\esp-idf-sys-95652ea66b616fb0\build-script-build (exit code: 1)
--- stdout
cargo:rerun-if-env-changed=ESP_IDF_TOOLS_INSTALL_DIR
cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG
1690039533010

cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG_DEFAULTS
cargo:rerun-if-env-changed=MCU
cargo:rerun-if-env-changed=ESP_IDF_SYS_ROOT_CRATE
cargo:rerun-if-env-changed=ESP_IDF_VERSION
cargo:rerun-if-env-changed=ESP_IDF_REPOSITORY
cargo:rerun-if-env-changed=ESP_IDF_CMAKE_GENERATOR
cargo:rerun-if-env-changed=IDF_PATH
cargo:rerun-if-env-changed=EXTRA-COMPONENTS
cargo:rerun-if-env-changed=ESP_IDF_COMPONENTS
cargo:warning=Configuring first supported MCU 'esp32c3' derived from the build target 'riscv32imc-esp-espidf' supporting MCUs [esp32c3, esp32c2, esp32h2, esp32c5]; explicitly specify an MCU to resolve this ambiguity
PATH=C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools;%PATH%

--- stderr
Build configuration: BuildConfig {
esp_idf_tools_install_dir: Some(
Global,
),
esp_idf_sdkconfig: None,
esp_idf_sdkconfig_defaults: Some(
[
"F:\std-training\intro\hardware-check\./sdkconfig.defaults",
],
),
mcu: None,
native: NativeConfig {
esp_idf_version: Some(
Tag(
"v4.4.4",
),
),
esp_idf_repository: None,
esp_idf_cmake_generator: None,
idf_path: None,
extra_components: [],
esp_idf_components: None,
},
esp_idf_sys_root_crate: None,
}
Using managed esp-idf repository: RemoteSdk { repo_url: None, git_ref: Tag("v4.4.4") }
E:\APPS\MSYS2\ucrt64\bin\python.exe: No module named pip
ERROR: Python interpreter at E:\APPS\MSYS2\ucrt64\bin\python.exe doesn't have pip installed. Please check the Getting Started Guides for the steps to install prerequisites for your OS.
Error: Could not install esp-idf

Caused by:
command '"python" "C:\Users\wyx12\.espressif\esp-idf\v4.4.4\tools\idf_tools.py" "--idf-path" "C:\Users\wyx12\.espressif\esp-idf\v4.4.4" "--non-interactive" "install-python-env"' exited with non-zero status code 1
warning: build failed, waiting for other jobs to finish...

@N3xed
Copy link
Collaborator

N3xed commented Jul 26, 2023

You need a functioning python installation including its package manager pip (which should come by default with any new installation). The python.exe executable must be in the PATH environment variable (Path on windows, because case-insensitive).

I can see from the error log, that it's currently using python from your msys2 installation, which is probably not a good idea, and it doesn't have pip which caused the error.

@majorzpley
Copy link
Author

Sorry, After uninstall MSY2 ,i still can not compile the esp-idf-sys part,This is the log from terminal,i don;t known how to fix it.

PS F:\std-training\intro\hardware-check> cargo build
Compiling esp-idf-sys v0.33.0
The following warnings were emitted during compilation:

warning: Configuring first supported MCU 'esp32c3' derived from the build target 'riscv32imc-esp-espidf' supporting MCUs [esp32c3, esp32c2, esp32h2, esp32c5]; explicitly specify an MCU to resolve this ambiguity

error: failed to run custom build command for esp-idf-sys v0.33.0

Caused by:
process didn't exit successfully: F:\std-training\intro\hardware-check\target\debug\build\esp-idf-sys-c7a9467380ed8278\build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=ESP_IDF_TOOLS_INSTALL_DIR
cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG
cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG_DEFAULTS
cargo:rerun-if-env-changed=MCU
cargo:rerun-if-env-changed=ESP_IDF_SYS_ROOT_CRATE
cargo:rerun-if-env-changed=ESP_IDF_VERSION
cargo:rerun-if-env-changed=ESP_IDF_REPOSITORY
cargo:rerun-if-env-changed=ESP_IDF_CMAKE_GENERATOR
cargo:rerun-if-env-changed=IDF_PATH
cargo:rerun-if-env-changed=EXTRA-COMPONENTS
cargo:rerun-if-env-changed=ESP_IDF_COMPONENTS
cargo:warning=Configuring first supported MCU 'esp32c3' derived from the build target 'riscv32imc-esp-espidf' supporting MCUs [esp32c3, esp32c2, esp32h2, esp32c5]; explicitly specify an MCU to resolve this ambiguity
IDF_PYTHON_ENV_PATH=C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env
PATH=C:\Users\wyx12.espressif\tools\riscv32-esp-elf\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\bin;C:\Users\wyx12.espressif\tools\cmake\3.23.1\bin;C:\Users\wyx12.espressif\tools\ninja\1.10.2;C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\Scripts;C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools;%PATH%
Current system platform: win64
Skipping riscv32-esp-elf@esp-2021r2-patch5-8.4.0 (already installed)
Skipping cmake@3.23.1 (already installed)
Skipping ninja@1.10.2 (already installed)
IDF_PYTHON_ENV_PATH=C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env
PATH=C:\Users\wyx12.espressif\tools\riscv32-esp-elf\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\bin;C:\Users\wyx12.espressif\tools\cmake\3.23.1\bin;C:\Users\wyx12.espressif\tools\ninja\1.10.2;C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\Scripts;C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools;%PATH%
cargo:rerun-if-changed=F:\std-training\intro\hardware-check\sdkconfig.defaults
CMAKE_PREFIX_PATH_riscv32imc-esp-espidf = None
CMAKE_PREFIX_PATH_riscv32imc_esp_espidf = None
TARGET_CMAKE_PREFIX_PATH = None
CMAKE_PREFIX_PATH = None
CMAKE_riscv32imc-esp-espidf = None
CMAKE_riscv32imc_esp_espidf = None
TARGET_CMAKE = None
CMAKE = None
running: "cmake" "F:\std-training\intro\hardware-check\target\riscv32imc-esp-espidf\debug\build\esp-idf-sys-281d3f81b0a0f0ca\out" "-G" "Ninja" "-DCMAKE_TOOLCHAIN_FILE=C:\Users\wyx12\.espressif\esp-idf\v4.4.4\tools\cmake\toolchain-esp32c3.cmake" "-DCMAKE_BUILD_TYPE=" "-DPYTHON=C:/Users/wyx12/.espressif/python_env/idf4.4_py3.10_env/Scripts/python.exe" "-DCMAKE_INSTALL_PREFIX=F:\std-training\intro\hardware-check\target\riscv32imc-esp-espidf\debug\build\esp-idf-sys-281d3f81b0a0f0ca\out" "-DCMAKE_C_FLAGS= -march=rv32imc -ffunction-sections -fdata-sections -march=rv32imc -mabi=ilp32 -mcmodel=medany" "-DCMAKE_CXX_FLAGS= -march=rv32imc -ffunction-sections -fdata-sections -march=rv32imc -mabi=ilp32 -mcmodel=medany" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -march=rv32imc -mabi=ilp32 -mcmodel=medany"
-- Checking Python dependencies...
The following Python requirements are not satisfied:
click>=7.0
pyserial>=3.3
future>=0.15.2
cryptography>=2.1.4
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
idf-component-manager~=1.0
gdbgui==0.13.2.0; python_version < "3.11"
pygdbmi<=0.9.0.2; python_version < "3.11"
python-socketio<5; python_version < "3.11"
jinja2<3.1; python_version < "3.11" # See espressif/esp-idf#8760
itsdangerous<2.1; python_version < "3.11"
kconfiglib==13.7.1
reedsolo>=1.5.3,<=1.5.4
bitstring>=3.1.6,<4
ecdsa>=0.16.0
construct==2.10.54
esp-windows-curses; sys_platform == 'win32'
Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide
Diagnostic information:
IDF_PYTHON_ENV_PATH: (not set)
Python interpreter used: C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\Scripts\python.exe
Warning: python interpreter not running from IDF_PYTHON_ENV_PATH
PATH: C:\Users\wyx12.espressif\tools\riscv32-esp-elf\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\bin;C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools;C:\Users\wyx12.espressif\tools\ninja\1.10.2;C:\Users\wyx12.espressif\tools\cmake\3.23.1\bin;C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\Scripts;F:\std-training\intro\hardware-check\target\debug\deps;F:\std-training\intro\hardware-check\target\debug;C:\Users\wyx12.rustup\toolchains\nightly-2023-02-28-x86_64-pc-windows-msvc\bin;E:\APPS\Vmware16\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;E:\APPS\Bandizip;C:\Program Files\dotnet;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;E:\APPS\MSYS2\usr\bin;E:\APPS\Erlang OTP\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Git\cmd;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Common Files\Autodesk Shared;E:\APPS\matlab2022a\runtime\win64;E:\APPS\matlab2022a\bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;E:\APPS\Qt\6.2.4\mingw_64\bin;C:\Program Files (x86)\National Instruments\Shared\LabVIEW CLI;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\bin;C:\Users\wyx12.cargo\bin;C:\Users\wyx12\AppData\Local\Programs\Python\Python310\Scripts;C:\Users\wyx12\AppData\Local\Programs\Python\Python310;E:\APPS\10 2021.10\bin;C:\Users\wyx12\AppData\Local\Microsoft\WindowsApps;C:\Users\wyx12\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\wyx12.dotnet\tools
-- Configuring incomplete, errors occurred!
See also "F:/std-training/intro/hardware-check/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-281d3f81b0a0f0ca/out/build/CMakeFiles/CMakeOutput.log".

--- stderr
Build configuration: BuildConfig {
esp_idf_tools_install_dir: Some(
Global,
),
esp_idf_sdkconfig: None,
esp_idf_sdkconfig_defaults: Some(
[
"F:\std-training\intro\hardware-check\./sdkconfig.defaults",
],
),
mcu: None,
native: NativeConfig {
esp_idf_version: Some(
Tag(
"v4.4.4",
),
),
esp_idf_repository: None,
esp_idf_cmake_generator: None,
idf_path: None,
extra_components: [],
esp_idf_components: None,
},
esp_idf_sys_root_crate: None,
}
Using managed esp-idf repository: RemoteSdk { repo_url: None, git_ref: Tag("v4.4.4") }
Using esp-idf v4.4.4 at 'C:\Users\wyx12.espressif\esp-idf\v4.4.4'
CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/asio/asio is out of date. Run 'git submodule
update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule
components/bootloader/subproject/components/micro-ecc/micro-ecc is out of
date. Run 'git submodule update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/bt/controller/lib_esp32 is out of date. Run 'git
submodule update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/bt/controller/lib_esp32c3_family is out of date.
Run 'git submodule update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/bt/host/nimble/nimble is out of date. Run 'git
submodule update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/cbor/tinycbor is out of date. Run 'git submodule
update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/cmock/CMock is out of date. Run 'git submodule
update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/coap/libcoap is out of date. Run 'git submodule
update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/esp_phy/lib is out of date. Run 'git submodule
update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/esp_wifi/lib is out of date. Run 'git submodule
update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/esptool_py/esptool is out of date. Run 'git
submodule update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/expat/expat is out of date. Run 'git submodule
update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message):
Git submodule components/ieee802154/lib is out of date. Run 'git submodule
update --init --recursive' to fix.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision)
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init)
CMakeLists.txt:5 (include)

C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
CMake Error at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:287 (message):
Some Python dependencies must be installed. Check above message for
details.
Call Stack (most recent call first):
C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:416 (__build_check_python)
CMakeLists.txt:16 (idf_build_process)

thread 'main' panicked at '
command did not execute successfully, got: exit code: 1

build script failed, must exit now', C:\Users\wyx12.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.50\src\lib.rs:1098:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@Julien-cpsn
Copy link

Sorry, After uninstall MSY2 ,i still can not compile the esp-idf-sys part,This is the log from terminal,i don;t known how to fix it.

PS F:\std-training\intro\hardware-check> cargo build Compiling esp-idf-sys v0.33.0 The following warnings were emitted during compilation:

warning: Configuring first supported MCU 'esp32c3' derived from the build target 'riscv32imc-esp-espidf' supporting MCUs [esp32c3, esp32c2, esp32h2, esp32c5]; explicitly specify an MCU to resolve this ambiguity

error: failed to run custom build command for esp-idf-sys v0.33.0

Caused by: process didn't exit successfully: F:\std-training\intro\hardware-check\target\debug\build\esp-idf-sys-c7a9467380ed8278\build-script-build (exit code: 101) --- stdout cargo:rerun-if-env-changed=ESP_IDF_TOOLS_INSTALL_DIR cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG_DEFAULTS cargo:rerun-if-env-changed=MCU cargo:rerun-if-env-changed=ESP_IDF_SYS_ROOT_CRATE cargo:rerun-if-env-changed=ESP_IDF_VERSION cargo:rerun-if-env-changed=ESP_IDF_REPOSITORY cargo:rerun-if-env-changed=ESP_IDF_CMAKE_GENERATOR cargo:rerun-if-env-changed=IDF_PATH cargo:rerun-if-env-changed=EXTRA-COMPONENTS cargo:rerun-if-env-changed=ESP_IDF_COMPONENTS cargo:warning=Configuring first supported MCU 'esp32c3' derived from the build target 'riscv32imc-esp-espidf' supporting MCUs [esp32c3, esp32c2, esp32h2, esp32c5]; explicitly specify an MCU to resolve this ambiguity IDF_PYTHON_ENV_PATH=C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env PATH=C:\Users\wyx12.espressif\tools\riscv32-esp-elf\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\bin;C:\Users\wyx12.espressif\tools\cmake\3.23.1\bin;C:\Users\wyx12.espressif\tools\ninja\1.10.2;C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\Scripts;C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools;%PATH% Current system platform: win64 Skipping riscv32-esp-elf@esp-2021r2-patch5-8.4.0 (already installed) Skipping cmake@3.23.1 (already installed) Skipping ninja@1.10.2 (already installed) IDF_PYTHON_ENV_PATH=C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env PATH=C:\Users\wyx12.espressif\tools\riscv32-esp-elf\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\bin;C:\Users\wyx12.espressif\tools\cmake\3.23.1\bin;C:\Users\wyx12.espressif\tools\ninja\1.10.2;C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\Scripts;C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools;%PATH% cargo:rerun-if-changed=F:\std-training\intro\hardware-check\sdkconfig.defaults CMAKE_PREFIX_PATH_riscv32imc-esp-espidf = None CMAKE_PREFIX_PATH_riscv32imc_esp_espidf = None TARGET_CMAKE_PREFIX_PATH = None CMAKE_PREFIX_PATH = None CMAKE_riscv32imc-esp-espidf = None CMAKE_riscv32imc_esp_espidf = None TARGET_CMAKE = None CMAKE = None running: "cmake" "F:\std-training\intro\hardware-check\target\riscv32imc-esp-espidf\debug\build\esp-idf-sys-281d3f81b0a0f0ca\out" "-G" "Ninja" "-DCMAKE_TOOLCHAIN_FILE=C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools\cmake\toolchain-esp32c3.cmake" "-DCMAKE_BUILD_TYPE=" "-DPYTHON=C:/Users/wyx12/.espressif/python_env/idf4.4_py3.10_env/Scripts/python.exe" "-DCMAKE_INSTALL_PREFIX=F:\std-training\intro\hardware-check\target\riscv32imc-esp-espidf\debug\build\esp-idf-sys-281d3f81b0a0f0ca\out" "-DCMAKE_C_FLAGS= -march=rv32imc -ffunction-sections -fdata-sections -march=rv32imc -mabi=ilp32 -mcmodel=medany" "-DCMAKE_CXX_FLAGS= -march=rv32imc -ffunction-sections -fdata-sections -march=rv32imc -mabi=ilp32 -mcmodel=medany" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -march=rv32imc -mabi=ilp32 -mcmodel=medany" -- Checking Python dependencies... The following Python requirements are not satisfied: click>=7.0 pyserial>=3.3 future>=0.15.2 cryptography>=2.1.4 pyparsing>=2.0.3,<2.4.0 pyelftools>=0.22 idf-component-manager~=1.0 gdbgui==0.13.2.0; python_version < "3.11" pygdbmi<=0.9.0.2; python_version < "3.11" python-socketio<5; python_version < "3.11" jinja2<3.1; python_version < "3.11" # See espressif/esp-idf#8760 itsdangerous<2.1; python_version < "3.11" kconfiglib==13.7.1 reedsolo>=1.5.3,<=1.5.4 bitstring>=3.1.6,<4 ecdsa>=0.16.0 construct==2.10.54 esp-windows-curses; sys_platform == 'win32' Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide Diagnostic information: IDF_PYTHON_ENV_PATH: (not set) Python interpreter used: C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\Scripts\python.exe Warning: python interpreter not running from IDF_PYTHON_ENV_PATH PATH: C:\Users\wyx12.espressif\tools\riscv32-esp-elf\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\bin;C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools;C:\Users\wyx12.espressif\tools\ninja\1.10.2;C:\Users\wyx12.espressif\tools\cmake\3.23.1\bin;C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\Scripts;F:\std-training\intro\hardware-check\target\debug\deps;F:\std-training\intro\hardware-check\target\debug;C:\Users\wyx12.rustup\toolchains\nightly-2023-02-28-x86_64-pc-windows-msvc\bin;E:\APPS\Vmware16\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;E:\APPS\Bandizip;C:\Program Files\dotnet;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;E:\APPS\MSYS2\usr\bin;E:\APPS\Erlang OTP\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Git\cmd;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Common Files\Autodesk Shared;E:\APPS\matlab2022a\runtime\win64;E:\APPS\matlab2022a\bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;E:\APPS\Qt\6.2.4\mingw_64\bin;C:\Program Files (x86)\National Instruments\Shared\LabVIEW CLI;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Users\wyx12.espressif\python_env\idf4.4_py3.10_env\bin;C:\Users\wyx12.cargo\bin;C:\Users\wyx12\AppData\Local\Programs\Python\Python310\Scripts;C:\Users\wyx12\AppData\Local\Programs\Python\Python310;E:\APPS\10 2021.10\bin;C:\Users\wyx12\AppData\Local\Microsoft\WindowsApps;C:\Users\wyx12\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\wyx12.dotnet\tools -- Configuring incomplete, errors occurred! See also "F:/std-training/intro/hardware-check/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-281d3f81b0a0f0ca/out/build/CMakeFiles/CMakeOutput.log".

--- stderr Build configuration: BuildConfig { esp_idf_tools_install_dir: Some( Global, ), esp_idf_sdkconfig: None, esp_idf_sdkconfig_defaults: Some( [ "F:\std-training\intro\hardware-check./sdkconfig.defaults", ], ), mcu: None, native: NativeConfig { esp_idf_version: Some( Tag( "v4.4.4", ), ), esp_idf_repository: None, esp_idf_cmake_generator: None, idf_path: None, extra_components: [], esp_idf_components: None, }, esp_idf_sys_root_crate: None, } Using managed esp-idf repository: RemoteSdk { repo_url: None, git_ref: Tag("v4.4.4") } Using esp-idf v4.4.4 at 'C:\Users\wyx12.espressif\esp-idf\v4.4.4' CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/asio/asio is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/bootloader/subproject/components/micro-ecc/micro-ecc is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/bt/controller/lib_esp32 is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/bt/controller/lib_esp32c3_family is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/bt/host/nimble/nimble is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/cbor/tinycbor is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/cmock/CMock is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/coap/libcoap is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/esp_phy/lib is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/esp_wifi/lib is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/esptool_py/esptool is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/expat/expat is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

CMake Warning at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/git_submodules.cmake:52 (message): Git submodule components/ieee802154/lib is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:77 (git_submodule_check) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:175 (__build_get_idf_git_revision) C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/idf.cmake:50 (__build_init) CMakeLists.txt:5 (include)

C:\Users\wyx12.espressif\esp-idf\v4.4.4\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources CMake Error at C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:287 (message): Some Python dependencies must be installed. Check above message for details. Call Stack (most recent call first): C:/Users/wyx12/.espressif/esp-idf/v4.4.4/tools/cmake/build.cmake:416 (__build_check_python) CMakeLists.txt:16 (idf_build_process)

thread 'main' panicked at ' command did not execute successfully, got: exit code: 1

build script failed, must exit now', C:\Users\wyx12.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.50\src\lib.rs:1098:5 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Same error here, any solution?

@Vollbrecht
Copy link
Collaborator

@Julien-cpsn since the other problem was older, how did you setup your toolchain? also how did you generate the project. Did you go through all steps mention in the esp-rust book https://esp-rs.github.io/book/installation/index.html
and made used the https://github.com/esp-rs/esp-idf-template to make a simple hello-world with all mentiond prerequest? Also what platform you are on etc

@Julien-cpsn
Copy link

Julien-cpsn commented Oct 14, 2023

@Vollbrecht Hello, thanks for your quick reply

Yes I am stuck with an untouched esp idf hello world template that I cannot build. I also did re-do the whole installation process in order to be sure.

Here are my system versions:

  • Windows 11 22621.2283
  • rustc 1.75.0-nightly
  • cargo 1.75.0-nightly
  • ESP-IDF 5.1

My rustup targets:

  • x86_64-pc-windows-msvc (installed)
  • riscv32imac-unknown-none-elf (installed)
  • riscv32imc-unknown-none-elf (installed)

I may be creating another git issue, but let's try here first.

The problem I am running into is weird.
Sometimes it is the same problem as described above by @majorzpley and sometimes it's this one:

C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test>cargo build
   Compiling std v0.0.0 (C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std)
   Compiling semver v1.0.20
   Compiling serde_json v1.0.107
   Compiling cargo-platform v0.1.4
   Compiling envy v0.4.2
   Compiling camino v1.1.6
   Compiling rustc_version v0.4.0
error[E0583]: file not found for module `wait_status`
  --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\unix\process\process_unsupported.rs:58:1
   |
58 | mod wait_status;
   | ^^^^^^^^^^^^^^^^
   |
   = help: to create the module `wait_status`, create file "C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\unix\process\wait_status.rs" or "C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\unix\process\wait_status\mod.rs"

error[E0432]: unresolved import `wait_status::ExitStatus`
  --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\unix\process\process_unsupported.rs:59:9
   |
59 | pub use wait_status::ExitStatus;
   |         ^^^^^^^^^^^^^^^^^^^^^^^ no `ExitStatus` in `sys::unix::process::process_inner::wait_status`
   |
help: consider importing this struct instead
   |
59 | pub use crate::process::ExitStatus;
   |         ~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved import `crate::sys::process::ExitStatus`
  --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\process.rs:10:35
   |
10 | use crate::sys::process::{EnvKey, ExitStatus, Process, StdioPipes};
   |                                   ^^^^^^^^^^ no `ExitStatus` in `sys::unix::process`
   |
   = help: consider importing this struct instead:
           crate::process::ExitStatus

   Compiling heapless v0.7.16
   Compiling embuild v0.31.3
   Compiling cargo_metadata v0.15.4
error[E0599]: no function or associated item named `from_inner` found for struct `ExitStatus` in the current scope
    --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\os\unix\process.rs:300:30
     |
300  |         process::ExitStatus::from_inner(From::from(raw))
     |                              ^^^^^^^^^^ function or associated item not found in `ExitStatus`
     |
    ::: C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\process.rs:1594:1
     |
1594 | pub struct ExitStatus(imp::ExitStatus);
     | --------------------- function or associated item `from_inner` not found for this struct
     |
     = help: items from traits can only be used if the trait is implemented and in scope
note: `FromInner` defines an item `from_inner`, perhaps you need to implement it
    --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\mod.rs:80:1
     |
80   | pub trait FromInner<Inner> {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `as_inner` found for reference `&ExitStatus` in the current scope
   --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\os\unix\process.rs:304:14
    |
304 |         self.as_inner().signal()
    |              ^^^^^^^^ method not found in `&ExitStatus`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
note: `AsInner` defines an item `as_inner`, perhaps you need to implement it
   --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\mod.rs:62:1
    |
62  | pub trait AsInner<Inner: ?Sized> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `as_inner` found for reference `&ExitStatus` in the current scope
   --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\os\unix\process.rs:308:14
    |
308 |         self.as_inner().core_dumped()
    |              ^^^^^^^^ method not found in `&ExitStatus`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
note: `AsInner` defines an item `as_inner`, perhaps you need to implement it
   --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\mod.rs:62:1
    |
62  | pub trait AsInner<Inner: ?Sized> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `as_inner` found for reference `&ExitStatus` in the current scope
   --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\os\unix\process.rs:312:14
    |
312 |         self.as_inner().stopped_signal()
    |              ^^^^^^^^ method not found in `&ExitStatus`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
note: `AsInner` defines an item `as_inner`, perhaps you need to implement it
   --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\mod.rs:62:1
    |
62  | pub trait AsInner<Inner: ?Sized> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `as_inner` found for reference `&ExitStatus` in the current scope
   --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\os\unix\process.rs:316:14
    |
316 |         self.as_inner().continued()
    |              ^^^^^^^^ method not found in `&ExitStatus`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
note: `AsInner` defines an item `as_inner`, perhaps you need to implement it
   --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\mod.rs:62:1
    |
62  | pub trait AsInner<Inner: ?Sized> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `as_inner` found for struct `ExitStatus` in the current scope
    --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\os\unix\process.rs:320:14
     |
320  |         self.as_inner().into_raw().into()
     |              ^^^^^^^^ method not found in `ExitStatus`
     |
    ::: C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\process.rs:1594:1
     |
1594 | pub struct ExitStatus(imp::ExitStatus);
     | --------------------- method `as_inner` not found for this struct
     |
     = help: items from traits can only be used if the trait is implemented and in scope
note: `AsInner` defines an item `as_inner`, perhaps you need to implement it
    --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\mod.rs:62:1
     |
62   | pub trait AsInner<Inner: ?Sized> {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no function or associated item named `from_inner` found for struct `ExitStatus` in the current scope
    --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\process.rs:1601:21
     |
1594 | pub struct ExitStatus(imp::ExitStatus);
     | --------------------- function or associated item `from_inner` not found for this struct
...
1601 |         ExitStatus::from_inner(imp::ExitStatus::default())
     |                     ^^^^^^^^^^ function or associated item not found in `ExitStatus`
     |
     = help: items from traits can only be used if the trait is implemented and in scope
note: `FromInner` defines an item `from_inner`, perhaps you need to implement it
    --> C:\Users\Julien\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys_common\mod.rs:80:1
     |
80   | pub trait FromInner<Inner> {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^

Some errors have detailed explanations: E0432, E0583, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `std` (lib) due to 10 previous errors
warning: build failed, waiting for other jobs to finish...

EDIT: As you may have probably already seen it, it is surely linked to rust-lang/rust#116723

EDIT 2: I don't get the mod wait_status error when rolling back to nightly-2023-10-10-x86_64-pc-windows-msvc, however I am still getting the first error

@Vollbrecht
Copy link
Collaborator

Vollbrecht commented Oct 15, 2023

yeah this problem is the one related to the issue you pointed out and has nothing to do with the initial problem from thes issue. please just use no compiler newer than 2023-10-13 from the nightly branch. You can install every daily nightly rust compiler via rustup install nightly-2023-10-12 . Make sure to also than update the channel to nightly-<date> inside rust-toolchain.toml or specify the compiler toolchain when running cargo b

@Julien-cpsn
Copy link

Julien-cpsn commented Oct 15, 2023

After some check, my error is a little different from @majorzpley's

Also, here is my cmake version:

  • cmake version 3.27.0-rc4

And here is the trace:

   Compiling esp-idf-sys v0.33.2
   Compiling esp-idf-hal v0.41.2
   Compiling esp-idf-svc v0.46.2
   Compiling no-std-net v0.5.0
   Compiling esp32-rust-test v0.1.0 (C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test)
   Compiling embassy-futures v0.1.0
   Compiling embedded-svc v0.25.3
The following warnings were emitted during compilation:

warning: Configuring first supported MCU 'esp32c3' derived from the build target 'riscv32imc-esp-espidf' supporting MCUs [esp32c3, esp32c2, esp32h2, esp32c5]; explicitly specify an MCU to resolve this ambiguity

error: failed to run custom build command for `esp-idf-sys v0.33.2`

Caused by:
  process didn't exit successfully: `C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\target\debug\build\esp-idf-sys-972b151738ea9101\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=ESP_IDF_TOOLS_INSTALL_DIR
  cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG
  cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG_DEFAULTS
  cargo:rerun-if-env-changed=MCU
  cargo:rerun-if-env-changed=ESP_IDF_SYS_ROOT_CRATE
  cargo:rerun-if-env-changed=ESP_IDF_VERSION
  cargo:rerun-if-env-changed=ESP_IDF_REPOSITORY
  cargo:rerun-if-env-changed=ESP_IDF_CMAKE_GENERATOR
  cargo:rerun-if-env-changed=IDF_PATH
  cargo:rerun-if-env-changed=EXTRA-COMPONENTS
  cargo:rerun-if-env-changed=ESP_IDF_COMPONENTS
  cargo:warning=Configuring first supported MCU 'esp32c3' derived from the build target 'riscv32imc-esp-espidf' supporting MCUs [esp32c3, esp32c2, esp32h2, esp32c5]; explicitly specify an MCU to resolve this ambiguity
  IDF_PYTHON_ENV_PATH=C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\python_env\idf5.1_py3.11_env
  ESP_IDF_VERSION=5.1
  PATH=C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\tools\cmake\3.24.0\bin;C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\tools\ninja\1.10.2\;C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\python_env\idf5.1_py3.11_env\Scripts;C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\esp-idf\v5.1.1\tools;%PATH%
  IDF_DEACTIVATE_FILE_PATH=C:\Users\Julien\AppData\Local\Temp\tmp_urloj19idf_1656
  Current system platform: win64
  Skipping riscv32-esp-elf@esp-12.2.0_20230208 (already installed)
  Skipping cmake@3.24.0 (already installed)
  Skipping ninja@1.10.2 (already installed)
  IDF_PYTHON_ENV_PATH=C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\python_env\idf5.1_py3.11_env
  ESP_IDF_VERSION=5.1
  PATH=C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\tools\cmake\3.24.0\bin;C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\tools\ninja\1.10.2\;C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\python_env\idf5.1_py3.11_env\Scripts;C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\esp-idf\v5.1.1\tools;%PATH%
  IDF_DEACTIVATE_FILE_PATH=C:\Users\Julien\AppData\Local\Temp\tmpov6zq9l4idf_12624
  cargo:rerun-if-changed=C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\sdkconfig.defaults
  CMAKE_PREFIX_PATH_riscv32imc_zicsr_zifencei-esp-espidf = None
  CMAKE_PREFIX_PATH_riscv32imc_zicsr_zifencei_esp_espidf = None
  TARGET_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_riscv32imc_zicsr_zifencei-esp-espidf = None
  CMAKE_riscv32imc_zicsr_zifencei_esp_espidf = None
  TARGET_CMAKE = None
  CMAKE = None
  running: "cmake" "C:\\Users\\Julien\\Documents\\Programmation\\rust\\esp32-rust-test\\target\\riscv32imc-esp-espidf\\debug\\build\\esp-idf-sys-f9cb6210d5c4efc0\\out" "-G" "Ninja" "-DCMAKE_TOOLCHAIN_FILE=C:\\Users\\Julien\\Documents\\Programmation\\rust\\esp32-rust-test\\.embuild\\espressif\\esp-idf\\v5.1.1\\tools\\cmake\\toolchain-esp32c3.cmake" "-DCMAKE_BUILD_TYPE=" "-DPYTHON=C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/python_env/idf5.1_py3.11_env/Scripts/python.exe" "-DCMAKE_INSTALL_PREFIX=C:\\Users\\Julien\\Documents\\Programmation\\rust\\esp32-rust-test\\target\\riscv32imc-esp-espidf\\debug\\build\\esp-idf-sys-f9cb6210d5c4efc0\\out" "-DCMAKE_C_FLAGS= -march=rv32imc_zicsr_zifencei -ffunction-sections -fdata-sections -march=rv32imc_zicsr_zifencei -mabi=ilp32 -mcmodel=medany" "-DCMAKE_CXX_FLAGS= -march=rv32imc_zicsr_zifencei -ffunction-sections -fdata-sections -march=rv32imc_zicsr_zifencei -mabi=ilp32 -mcmodel=medany" "-DCMAKE_ASM_FLAGS=  -ffunction-sections -fdata-sections -march=rv32imc_zicsr_zifencei -mabi=ilp32 -mcmodel=medany"
  -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.41.0.windows.1")
  -- The C compiler identification is GNU 12.2.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Users/Julien/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Checking Python dependencies...
  Python requirements are satisfied.
  Constraint file: C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\espidf.constraints.v5.1.txt
  Requirement files:
   - C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\esp-idf\v5.1.1\tools\requirements\requirements.core.txt
  Python being checked: C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe
  -- Project sdkconfig file C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-f9cb6210d5c4efc0/out/sdkconfig
  Loading defaults file C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-f9cb6210d5c4efc0/out/gen-sdkconfig.defaults...
  Loading defaults file C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/sdkconfig.defaults...
  -- The CXX compiler identification is GNU 12.2.0
  -- The ASM compiler identification is GNU
  -- Found assembler: C:/Users/Julien/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Users/Julien/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Looking for sys/types.h
  -- Looking for sys/types.h - found
  -- Looking for stdint.h
  -- Looking for stdint.h - found
  -- Looking for stddef.h
  -- Looking for stddef.h - found
  -- Check size of time_t
  -- Check size of time_t - done
  -- Found Python3: C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/python_env/idf5.1_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter
  -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
  -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
  -- App "libespidf" version: 1
  -- Adding linker script C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-f9cb6210d5c4efc0/out/build/esp-idf/esp_system/ld/memory.ld
  -- Adding linker script C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_system/ld/esp32c3/sections.ld.in
  -- Adding linker script C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_rom/esp32c3/ld/esp32c3.rom.ld
  -- Adding linker script C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld
  -- Adding linker script C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld
  -- Adding linker script C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld
  -- Adding linker script C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_rom/esp32c3/ld/esp32c3.rom.version.ld
  -- Adding linker script C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_rom/esp32c3/ld/esp32c3.rom.eco3.ld
  -- Adding linker script C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/soc/esp32c3/ld/esp32c3.peripherals.ld
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-f9cb6210d5c4efc0/out/build
  running: "cmake" "--build" "." "--config" "MinSizeRel" "--parallel" "16"
  [1/854] Generating memory.ld linker script...
  [2/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_se.c.obj
  [3/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_hash.c.obj
  [4/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_pake.c.obj
  [5/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/ripemd160.c.obj
  [6/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_storage.c.obj
  [7/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_ecp.c.obj
  [8/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_mac.c.obj
  [9/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_util.c.obj
  [10/854] Generating ../../partition_table/partition-table.bin
  Partition table binary generated. Contents:
  *******************************************************************************
  # ESP-IDF Partition Table
  # Name, Type, SubType, Offset, Size, Flags
  nvs,data,nvs,0x9000,24K,
  phy_init,data,phy,0xf000,4K,
  factory,app,factory,0x10000,1M,
  *******************************************************************************
  [11/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/threading.c.obj
  [12/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_slot_management.c.obj
  [13/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_rsa.c.obj
  [14/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/timing.c.obj
  [15/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/rsa_alt_helpers.c.obj
  [16/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_its_file.c.obj
  [17/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_driver_wrappers.c.obj
  [18/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_tls13_server.c.obj
  [19/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/version.c.obj
  [20/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/b11caae7fde5ea14eb77dee52dc0c6a0/esp_aes_gdma_impl.c.obj
  [21/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/sha256.c.obj
  [22/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/sha1.c.obj
  [23/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/version_features.c.obj
  [24/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/397bb2527d16eee068cc814fed65d24c/esp_sha_gdma_impl.c.obj
  [25/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/sha512.c.obj
  [26/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_tls13_client.c.obj
  [27/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_tls13_generic.c.obj
  [28/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/7977a154a058b9ff9be114d7350c5e41/esp_crypto_shared_gdma.c.obj
  FAILED: esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/7977a154a058b9ff9be114d7350c5e41/esp_crypto_shared_gdma.c.obj
  C:\Users\Julien\.rustup\toolchains\esp\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin\riscv32-esp-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\"v5.1.1\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-f9cb6210d5c4efc0/out/build/config -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/port/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/mbedtls/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/mbedtls/library -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/port/sha/dma/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/port/aes/dma/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/newlib/platform_include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/freertos/FreeRTOS-Kernel/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/freertos/FreeRTOS-Kernel/portable/riscv/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/freertos/esp_additions/include/freertos -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/freertos/esp_additions/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/freertos/esp_additions/arch/riscv/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_hw_support/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_hw_support/include/soc -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_hw_support/include/soc/esp32c3 -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_hw_support/port/esp32c3/. -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_hw_support/port/esp32c3/private_include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/heap/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/log/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/soc/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/soc/esp32c3 -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/soc/esp32c3/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/hal/esp32c3/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/hal/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/hal/platform_port/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_rom/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_rom/include/esp32c3 -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_rom/esp32c3 -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_common/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_system/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_system/port/soc -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_system/port/include/riscv -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_system/port/include/private -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/riscv/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/lwip/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/lwip/include/apps -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/lwip/include/apps/sntp -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/lwip/lwip/src/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/lwip/port/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/lwip/port/freertos/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/lwip/port/esp32xx/include -IC:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/lwip/port/esp32xx/include/arch -march=rv32imc_zicsr_zifencei  -ffunction-sections -fdata-sections -mabi=ilp32 -mcmodel=medany -Wall -Wextra -Wwrite-strings -Wformat=2 -Wno-format-nonliteral -Wvla -Wlogical-op -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Werror -Wmissing-declarations -Wmissing-prototypes -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-f9cb6210d5c4efc0/out=. -fmacro-prefix-map=C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/7977a154a058b9ff9be114d7350c5e41/esp_crypto_shared_gdma.c.obj -MF esp-idf\mbedtls\mbedtls\library\CMakeFiles\mbedcrypto.dir\7977a154a058b9ff9be114d7350c5e41\esp_crypto_shared_gdma.c.obj.d -o esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/7977a154a058b9ff9be114d7350c5e41/esp_crypto_shared_gdma.c.obj -c C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c
  C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c:148:1: fatal error: opening dependency file esp-idf\mbedtls\mbedtls\library\CMakeFiles\mbedcrypto.dir\7977a154a058b9ff9be114d7350c5e41\esp_crypto_shared_gdma.c.obj.d: No such file or directory
    148 | }
        | ^
  compilation terminated.
  [29/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/6c03799fca99eaf637f0a199ea2e855e/esp_timing.c.obj
  [30/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/6c03799fca99eaf637f0a199ea2e855e/esp_mem.c.obj
  [31/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedtls.dir/6c03799fca99eaf637f0a199ea2e855e/mbedtls_debug.c.obj
  [32/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/6c03799fca99eaf637f0a199ea2e855e/esp_hardware.c.obj
  [33/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/8f8968d94655665eb1edb39c66d7353d/esp_sha.c.obj
  [34/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/84bf92274eee76e77544b369e4c54f4d/esp_aes_common.c.obj
  [35/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/84bf92274eee76e77544b369e4c54f4d/esp_aes_xts.c.obj
  [36/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/397bb2527d16eee068cc814fed65d24c/esp_sha1.c.obj
  [37/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedtls.dir/6c03799fca99eaf637f0a199ea2e855e/net_sockets.c.obj
  [38/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/8f8968d94655665eb1edb39c66d7353d/dma/sha.c.obj
  [39/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/21e75b724dc01a17ea4b72ee6fa1f8a0/bignum.c.obj
  [40/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/397bb2527d16eee068cc814fed65d24c/esp_sha256.c.obj
  [41/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/bfca07f917da6d0b2c4905338d9ec7fd/esp_rsa_sign_alt.c.obj
  [42/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/rsa.c.obj
  [43/854] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/b11caae7fde5ea14eb77dee52dc0c6a0/esp_aes.c.obj
  ninja: build stopped: subcommand failed.

  --- stderr
  Build configuration: BuildConfig {
      esp_idf_tools_install_dir: None,
      esp_idf_sdkconfig: None,
      esp_idf_sdkconfig_defaults: None,
      mcu: None,
      native: NativeConfig {
          esp_idf_version: Some(
              Tag(
                  "v5.1.1",
              ),
          ),
          esp_idf_repository: None,
          esp_idf_cmake_generator: None,
          idf_path: None,
          extra_components: [],
          esp_idf_components: None,
      },
      esp_idf_sys_root_crate: None,
  }
  Using managed esp-idf repository: RemoteSdk { repo_url: None, git_ref: Tag("v5.1.1") }
  Using esp-idf v5.1.1 at 'C:\Users\Julien\Documents\Programmation\rust\esp32-rust-test\.embuild\espressif\esp-idf\v5.1.1'
  CMake Warning in C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/mbedtls/library/CMakeLists.txt:
    The object file directory

      C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-f9cb6210d5c4efc0/out/build/esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/./

    has 201 characters.  The maximum full path to an object file is 250
    characters (see CMAKE_OBJECT_PATH_MAX).  Object file

      bfca07f917da6d0b2c4905338d9ec7fd/esp_rsa_sign_alt.c.obj

    cannot be safely placed under this directory.  The build may not work
    correctly.


  CMake Warning in C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/bootloader_support/CMakeLists.txt:
    The object file directory

      C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-f9cb6210d5c4efc0/out/build/esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/./

    has 210 characters.  The maximum full path to an object file is 250
    characters (see CMAKE_OBJECT_PATH_MAX).  Object file

      bootloader_flash/src/bootloader_flash_config_esp32c3.c.obj

    cannot be safely placed under this directory.  The build may not work
    correctly.


  CMake Warning in C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/.embuild/espressif/esp-idf/v5.1.1/components/wpa_supplicant/CMakeLists.txt:
    The object file directory

      C:/Users/Julien/Documents/Programmation/rust/esp32-rust-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-f9cb6210d5c4efc0/out/build/esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/./

    has 202 characters.  The maximum full path to an object file is 250
    characters (see CMAKE_OBJECT_PATH_MAX).  Object file

      esp_supplicant/src/crypto/crypto_mbedtls-bignum.c.obj

    cannot be safely placed under this directory.  The build may not work
    correctly.


  thread 'main' panicked at C:\Users\Julien\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cmake-0.1.50\src\lib.rs:1098:5:

  command did not execute successfully, got: exit code: 1

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Sadly, I really don't find where it comes from...

@Vollbrecht
Copy link
Collaborator

Vollbrecht commented Oct 15, 2023

This error you are posting again is another error, its a windows specific error. On windows the path cannot be to long (yeah wtf windows) or it dont work. The only workaround here is to directly user your projects inside a root dir like C:\your-project (trying to make the path as short as possible) or use it inside WSL where you dont have such problems. Windows gonna windows.

@Julien-cpsn
Copy link

Julien-cpsn commented Oct 15, 2023

Ok thanks man, ima go with the WSL workaround !
I'll try to let you updated if anythingh goes wrong

Update: building with WSL, flashing with Windows

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

5 participants