esp-rs / embuild

Build support for embedded Rust: Cargo integration with other embedded build ecosystems & tools, like PlatformIO, CMake and kconfig.
Apache License 2.0
139 stars 40 forks source link

Build failed on RPi5 #93

Open miksax opened 2 months ago

miksax commented 2 months ago

When I want to compile esp-idf-svc on RPi5, but it does not work (on x86_64 is everything OK).

Error is caused there: https://github.com/esp-rs/embuild/blob/master/src/espidf.rs#L246

First interesting error: stderror:

  Build configuration: BuildConfig {
      esp_idf_tools_install_dir: None,
      esp_idf_sdkconfig: None,
      esp_idf_sdkconfig_defaults: Some(
          [
              "sdkconfig.defaults",
          ],
      ),
      mcu: Some(
          "esp32c3",
      ),
      native: NativeConfig {
          esp_idf_version: Some(
              Tag(
                  "v5.2.2",
              ),
          ),
          esp_idf_repository: None,
          esp_idf_cmake_generator: None,
          idf_path: None,
          extra_components: [],
          esp_idf_components: None,
          esp_idf_component_manager: None,
      },
      esp_idf_sys_root_crate: Some(
          "demo",
      ),
  }

Content of: std::env::consts::OS: linux std::env::consts::ARCH: arm

Content of version:

VersionInfo { any: None, linux_amd64: Some(PlatformDownloadInfo { rename_dist: Some("ninja-linux-v1.11.1.zip"), sha256: "b901ba96e486dce377f9a070ed4ef3f79deb45f4ffe2938f8e7ddc69cfb3df77", size: 119463, url: "https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip" }), linux_arm64: None, linux_armel: None, linux_i686: None, macos: Some(PlatformDownloadInfo { rename_dist: Some("ninja-mac-v1.11.1.zip"), sha256: "482ecb23c59ae3d4f158029112de172dd96bb0e97549c4b1ca32d8fad11f873e", size: 277306, url: "https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-mac.zip" }), macos_arm64: Some(PlatformDownloadInfo { rename_dist: Some("ninja-mac-v1.11.1.zip"), sha256: "482ecb23c59ae3d4f158029112de172dd96bb0e97549c4b1ca32d8fad11f873e", size: 277306, url: "https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-mac.zip" }), name: Some("1.11.1"), status: Some(Recommended), win32: None, win64: Some(PlatformDownloadInfo { rename_dist: Some("ninja-win-v1.11.1.zip"), sha256: "524b344a1a9a55005eaf868d991e090ab8ce07fa109f1820d40e74642e289abc", size: 285922, url: "https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip" }) }

Whole log: compile.txt