Skip to content

[MacOS - likely recent CC regression] Can't build new projectΒ #174

@ysak-y

Description

@ysak-y

UPDATE:: Use the following command line to build on MacOSX:

CRATE_CC_NO_DEFAULTS=1 cargo build

================

Bug description

Build fail when build new project from esp-idf-template.

  • Would you like to work on a fix? n

To Reproduce

Steps to reproduce the behavior:

  1. Run cargo generate esp-rs/esp-idf-template cargo and generate project without advanced configurations
  2. Run cargo build on project directory

Expected behavior

Build success.

Screenshots

Below is full build log. xtensa-esp32-elf-gcc: error: unrecognized command-line option '--target=xtensa-esp32-espidf' is the actual reason of error. I'm not sure whether it should be reported on this repository, please let me know if there is proper place to report.
I did prerequisites already and I can build the project until sometime yesterday.

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

Caused by:
  process didn't exit successfully: `/Users/yoshiakiyamada/git/rust-on-m5stack/test2/target/debug/build/esp-idf-sys-19b83de14286a6a1/build-script-build` (exit status: 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:rerun-if-env-changed=ESP_IDF_COMPONENT_MANAGER
  Submodule path 'components/bootloader/subproject/components/micro-ecc/micro-ecc': checked out 'd037ec89546fad14b5c4d5456c2e23a71e554966'
  Submodule path 'components/bt/controller/lib_esp32': checked out 'e1b3a29c58a452a6c017113686262094afd87042'
  Submodule path 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib': checked out '5fcfd0e457a76ebb234086ccd6dc391690d69e90'
  Submodule path 'components/bt/controller/lib_esp32c3_family': checked out 'b438f60a295183e7c67eb42ae05f4580f4b1ced0'
  Submodule path 'components/bt/controller/lib_esp32c6/esp32c6-bt-lib': checked out 'd785de0a7c46d9badcd73bc83c2e5cb78f7054b2'
  Submodule path 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib': checked out '35bd3cd7352014d303a96c46d8ea8446ea0a9a54'
  Submodule path 'components/bt/host/nimble/nimble': checked out '9478bc510fa9fc792d98efbc80dc547b97a13b99'
  Submodule path 'components/cmock/CMock': checked out 'eeecc49ce8af123cf8ad40efdb9673e37b56230f'
  Submodule path 'components/cmock/CMock/vendor/c_exception': checked out '71b47be7c950f1bf5f7e5303779fa99a16224bb6'
  Submodule path 'components/cmock/CMock/vendor/unity': checked out 'cf949f45ca6d172a177b00da21310607b97bc7a7'
  Submodule path 'components/esp_coex/lib': checked out '37698e17a4c7fd2e0872317fc8befaac3bb10cb4'
  Submodule path 'components/esp_phy/lib': checked out '998e05636344949ba219e8ac56feb733e27bf5d2'
  Submodule path 'components/esp_wifi/lib': checked out '0a89d5ffd2c452407940c2e617434e54f3c34576'
  Submodule path 'components/heap/tlsf': checked out '8c9cd0517adf99e363812e9a295dfe3898fdd345'
  Submodule path 'components/ieee802154/lib': checked out '102b03c8095de8a337c293f79dce189be63186f3'
  Submodule path 'components/json/cJSON': checked out 'd348621ca93571343a56862df7de4ff3bc9b5667'
  Submodule path 'components/lwip/lwip': checked out '269a58f18597aedec31c439e34cdaea47229dda3'
  Submodule path 'components/mbedtls/mbedtls': checked out '65b3c0857c9f207dcb0b646f2b4ebd8e5edf83c1'
  Submodule path 'components/mqtt/esp-mqtt': checked out 'dffabb067fb3c39f486033d2e47eb4b1416f0c82'
  Submodule path 'components/openthread/lib': checked out 'c9c17a0b6634af016111c9817f0be1fe0e7112f6'
  Submodule path 'components/openthread/openthread': checked out '5beae143700db54c6e9bd4b15a568abe2f305723'
  Submodule path 'components/protobuf-c/protobuf-c': checked out 'abc67a11c6db271bedbb9f58be85d6f4e2ea8389'
  Submodule path 'components/spiffs/spiffs': checked out '0dbb3f71c5f6fae3747a9d935372773762baf852'
  Submodule path 'components/unity/unity': checked out '7d2bf62b7e6afaf38153041a9d53c21aeeca9a25'
  ESP_IDF_VERSION=5.1
  PATH=/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools:$PATH
  IDF_DEACTIVATE_FILE_PATH=/var/folders/_p/r21b9lq54713qfqnxhpsmpvr0000gn/T/tmpitdv2oanidf_37438
  Creating a new Python environment in /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/python_env/idf5.1_py3.11_env
  Downloading https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.1.txt
  Destination: /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/espidf.constraints.v5.1.txt.tmp
Done
  Looking in indexes: https://pypi.org/simple, https://dl.espressif.com/pypi
  Ignoring importlib_metadata: markers 'python_version < "3.8"' don't match your environment
  Requirement already satisfied: setuptools in /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/python_env/idf5.1_py3.11_env/lib/python3.11/site-packages (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 3)) (68.2.2)
  Collecting packaging (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 4))
    Using cached https://dl.espressif.com/pypi/packaging/packaging-23.2-py3-none-any.whl (53 kB)
  Collecting click (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 7))
    Using cached https://dl.espressif.com/pypi/click/click-8.0.4-py3-none-any.whl (97 kB)
  Collecting pyserial (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 8))
    Using cached https://dl.espressif.com/pypi/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
  Collecting cryptography (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 9))
    Using cached https://dl.espressif.com/pypi/cryptography/cryptography-39.0.2-cp36-abi3-macosx_10_12_universal2.whl (5.4 MB)
  Collecting pyparsing (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 10))
    Using cached https://dl.espressif.com/pypi/pyparsing/pyparsing-3.0.9-py3-none-any.whl (98 kB)
  Collecting pyelftools (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 11))
    Using cached https://dl.espressif.com/pypi/pyelftools/pyelftools-0.29-py2.py3-none-any.whl (174 kB)
  Collecting idf-component-manager (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/idf-component-manager/idf_component_manager-1.4.1-py3-none-any.whl (140 kB)
  Collecting esp-coredump (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 13))
    Using cached https://dl.espressif.com/pypi/esp-coredump/esp_coredump-1.7.0-py3-none-any.whl (38 kB)
  Collecting esptool (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 14))
    Using cached https://dl.espressif.com/pypi/esptool/esptool-4.7.dev3-py3-none-any.whl (368 kB)
  Collecting esp-idf-kconfig (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 15))
    Using cached https://dl.espressif.com/pypi/esp-idf-kconfig/esp_idf_kconfig-1.4.0-py3-none-any.whl (29 kB)
  Collecting esp-idf-monitor (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 16))
    Using cached https://dl.espressif.com/pypi/esp-idf-monitor/esp_idf_monitor-1.3.3-py3-none-any.whl (44 kB)
  Collecting esp-idf-size (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 17))
    Using cached esp_idf_size-0.4.3-py3-none-any.whl.metadata (1.4 kB)
  Collecting freertos_gdb (from -r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 20))
    Using cached https://dl.espressif.com/pypi/freertos-gdb/freertos_gdb-1.0.2-py3-none-any.whl (14 kB)
  Collecting cffi>=1.12 (from cryptography->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 9))
    Using cached https://dl.espressif.com/pypi/cffi/cffi-1.16.0-cp311-cp311-macosx_11_0_arm64.whl (176 kB)
  Collecting cachecontrol[filecache] (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/cachecontrol/cachecontrol-0.13.1-py3-none-any.whl (22 kB)
  Collecting colorama (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/colorama/colorama-0.4.6-py2.py3-none-any.whl (25 kB)
  Collecting pyyaml (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/pyyaml/PyYAML-6.0.1-cp311-cp311-macosx_11_0_arm64.whl (167 kB)
  Collecting requests (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/requests/requests-2.31.0-py3-none-any.whl (62 kB)
  Collecting requests-file (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/requests-file/requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB)
  Collecting requests-toolbelt (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/requests-toolbelt/requests_toolbelt-1.0.0-py2.py3-none-any.whl (51 kB)
  Collecting schema (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/schema/schema-0.7.5-py2.py3-none-any.whl (17 kB)
  Collecting six (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/six/six-1.16.0-py2.py3-none-any.whl (11 kB)
  Collecting tqdm (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/tqdm/tqdm-4.66.1-py3-none-any.whl (78 kB)
  Collecting urllib3<2 (from idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/urllib3/urllib3-1.26.18-py2.py3-none-any.whl (143 kB)
  Collecting construct~=2.10 (from esp-coredump->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 13))
    Using cached https://dl.espressif.com/pypi/construct/construct-2.10.69-py3-none-any.whl (62 kB)
  Collecting pygdbmi>=0.9.0.2 (from esp-coredump->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 13))
    Using cached https://dl.espressif.com/pypi/pygdbmi/pygdbmi-0.9.0.2-py3-none-any.whl (16 kB)
  Collecting bitstring>=3.1.6 (from esptool->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 14))
    Using cached https://dl.espressif.com/pypi/bitstring/bitstring-4.1.2-py3-none-any.whl (59 kB)
  Collecting ecdsa>=0.16.0 (from esptool->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 14))
    Using cached https://dl.espressif.com/pypi/ecdsa/ecdsa-0.18.0-py2.py3-none-any.whl (142 kB)
  Collecting reedsolo<1.8,>=1.5.3 (from esptool->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 14))
    Using cached https://dl.espressif.com/pypi/reedsolo/reedsolo-1.7.0-py3-none-any.whl (32 kB)
  Collecting intelhex (from esptool->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 14))
    Using cached https://dl.espressif.com/pypi/intelhex/intelhex-2.3.0-py2.py3-none-any.whl (50 kB)
  Collecting kconfiglib>=13.7.1 (from esp-idf-kconfig->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 15))
    Using cached https://dl.espressif.com/pypi/kconfiglib/kconfiglib-14.1.0-py2.py3-none-any.whl (145 kB)
  Collecting esp-idf-panic-decoder (from esp-idf-monitor->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 16))
    Using cached https://dl.espressif.com/pypi/esp-idf-panic-decoder/esp_idf_panic_decoder-0.2.0-py3-none-any.whl (15 kB)
  Collecting bitarray<3.0.0,>=2.8.0 (from bitstring>=3.1.6->esptool->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 14))
    Using cached bitarray-2.8.3-cp311-cp311-macosx_11_0_arm64.whl.metadata (32 kB)
  Collecting pycparser (from cffi>=1.12->cryptography->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 9))
    Using cached https://dl.espressif.com/pypi/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB)
  Collecting msgpack>=0.5.2 (from cachecontrol[filecache]->idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/msgpack/msgpack-1.0.7-cp311-cp311-macosx_11_0_arm64.whl (231 kB)
  Collecting filelock>=3.8.0 (from cachecontrol[filecache]->idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/filelock/filelock-3.13.1-py3-none-any.whl (11 kB)
  Collecting charset-normalizer<4,>=2 (from requests->idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/charset-normalizer/charset_normalizer-3.3.2-cp311-cp311-macosx_11_0_arm64.whl (118 kB)
  Collecting idna<4,>=2.5 (from requests->idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/idna/idna-3.4-py3-none-any.whl (61 kB)
  Collecting certifi>=2017.4.17 (from requests->idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/certifi/certifi-2023.7.22-py3-none-any.whl (158 kB)
  Collecting contextlib2>=0.5.5 (from schema->idf-component-manager->-r /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 12))
    Using cached https://dl.espressif.com/pypi/contextlib2/contextlib2-21.6.0-py2.py3-none-any.whl (13 kB)
  Using cached esp_idf_size-0.4.3-py3-none-any.whl (22 kB)
  Using cached bitarray-2.8.3-cp311-cp311-macosx_11_0_arm64.whl (122 kB)
  Installing collected packages: reedsolo, pyserial, pygdbmi, pyelftools, intelhex, bitarray, urllib3, tqdm, six, pyyaml, pyparsing, pycparser, packaging, msgpack, kconfiglib, idna, freertos_gdb, filelock, esp-idf-panic-decoder, contextlib2, construct, colorama, click, charset-normalizer, certifi, bitstring, schema, requests, esp-idf-size, esp-idf-kconfig, ecdsa, cffi, requests-toolbelt, requests-file, cryptography, cachecontrol, esptool, idf-component-manager, esp-coredump, esp-idf-monitor
  Successfully installed bitarray-2.8.3 bitstring-4.1.2 cachecontrol-0.13.1 certifi-2023.7.22 cffi-1.16.0 charset-normalizer-3.3.2 click-8.0.4 colorama-0.4.6 construct-2.10.69 contextlib2-21.6.0 cryptography-39.0.2 ecdsa-0.18.0 esp-coredump-1.7.0 esp-idf-kconfig-1.4.0 esp-idf-monitor-1.3.3 esp-idf-panic-decoder-0.2.0 esp-idf-size-0.4.3 esptool-4.7.dev3 filelock-3.13.1 freertos_gdb-1.0.2 idf-component-manager-1.4.1 idna-3.4 intelhex-2.3.0 kconfiglib-14.1.0 msgpack-1.0.7 packaging-23.2 pycparser-2.21 pyelftools-0.29 pygdbmi-0.9.0.2 pyparsing-3.0.9 pyserial-3.5 pyyaml-6.0.1 reedsolo-1.7.0 requests-2.31.0 requests-file-1.5.1 requests-toolbelt-1.0.0 schema-0.7.5 six-1.16.0 tqdm-4.66.1 urllib3-1.26.18
  Installing Python packages
   Constraint file: /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/espidf.constraints.v5.1.txt
   Requirement files:
    - /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt
  IDF_PYTHON_ENV_PATH=/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/python_env/idf5.1_py3.11_env
  ESP_IDF_VERSION=5.1
  PATH=/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/python_env/idf5.1_py3.11_env/bin:/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools:$PATH
  IDF_DEACTIVATE_FILE_PATH=/var/folders/_p/r21b9lq54713qfqnxhpsmpvr0000gn/T/tmph6pt9upnidf_37438
  Current system platform: macos-arm64
  Installing [email protected]_20230208
  Downloading https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32-elf-12.2.0_20230208-aarch64-apple-darwin.tar.xz
  Destination: /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/dist/xtensa-esp32-elf-12.2.0_20230208-aarch64-apple-darwin.tar.xz.tmp
Done
  Extracting /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/dist/xtensa-esp32-elf-12.2.0_20230208-aarch64-apple-darwin.tar.xz to /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208
  Installing [email protected]
  Downloading https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0-macos-universal.tar.gz
  Destination: /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/dist/cmake-3.24.0-macos-universal.tar.gz.tmp
Done
  Extracting /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/dist/cmake-3.24.0-macos-universal.tar.gz to /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/cmake/3.24.0
  Installing [email protected]
  Downloading https://dl.espressif.com/dl/ninja-1.10.2-osx.tar.gz
  Destination: /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/dist/ninja-1.10.2-osx.tar.gz.tmp
Done
  Extracting /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/dist/ninja-1.10.2-osx.tar.gz to /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/ninja/1.10.2
  Installing [email protected]_20220830
  Downloading https://github.com/espressif/binutils-gdb/releases/download/esp32ulp-elf-v2.35_20220830/esp32ulp-elf-2.35_20220830-macos-arm64.tar.gz
  Destination: /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/dist/esp32ulp-elf-2.35_20220830-macos-arm64.tar.gz.tmp
Done
  Extracting /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/dist/esp32ulp-elf-2.35_20220830-macos-arm64.tar.gz to /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/esp32ulp-elf/2.35_20220830
  IDF_PYTHON_ENV_PATH=/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/python_env/idf5.1_py3.11_env
  ESP_IDF_VERSION=5.1
  PATH=/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/cmake/3.24.0/CMake.app/Contents/bin:/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/ninja/1.10.2/:/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/python_env/idf5.1_py3.11_env/bin:/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools:$PATH
  IDF_DEACTIVATE_FILE_PATH=/var/folders/_p/r21b9lq54713qfqnxhpsmpvr0000gn/T/tmpafs8ohi2idf_37438
  cargo:rerun-if-changed=/Users/yoshiakiyamada/git/rust-on-m5stack/test2/sdkconfig.defaults
  running: "cc" "--version"
  exit status: 0
  running: "c++" "--version"
  exit status: 0
  running: "cc" "--version"
  exit status: 0
  CMAKE_PREFIX_PATH_xtensa-esp32-espidf = None
  CMAKE_PREFIX_PATH_xtensa_esp32_espidf = None
  TARGET_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_xtensa-esp32-espidf = None
  CMAKE_xtensa_esp32_espidf = None
  TARGET_CMAKE = None
  CMAKE = None
  running: cd "/Users/yoshiakiyamada/git/rust-on-m5stack/test2/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-8fb7717dc012a26e/out/build" && CMAKE_PREFIX_PATH="" EXTRA_COMPONENT_DIRS="" IDF_COMPONENT_MANAGER="1" IDF_PATH="/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1" IDF_TARGET="esp32" IDF_TOOLS_PATH="/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif" PATH="/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/cmake/3.24.0/CMake.app/Contents/bin:/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/ninja/1.10.2/:/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/python_env/idf5.1_py3.11_env/bin:/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools:/Users/yoshiakiyamada/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/Users/yoshiakiyamada/.espressif/tools/cmake/3.24.0/bin/:/Users/yoshiakiyamada/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/Users/yoshiakiyamada/.espressif/tools/cmake/3.24.0/bin/:/Users/yoshiakiyamada/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/Users/yoshiakiyamada/Projects/moddable/build/bin/mac/release:/Users/yoshiakiyamada/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/opt/homebrew/opt/m4/bin:/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/yoshiakiyamada/.nodenv/shims:/Users/yoshiakiyamada/.nodenv/bin:/usr/local/bin:/Users/yoshiakiyamada/node_modules/.bin:/usr/local/bin/platform-tools:/Users/yoshiakiyamada/google-cloud-sdk:/Users/yoshiakiyamada/google-cloud-sdk/bin:/usr/local/opt/[email protected]/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home:/Users/yoshiakiyamada/.rbenv/shims:/Users/yoshiakiyamada/.pyenv/plugins/pyenv-virtualenv/shims:/Users/yoshiakiyamada/.pyenv/shims:/Users/yoshiakiyamada/.pyenv/bin:/Users/yoshiakiyamada/.mos/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/yoshiakiyamada/Projects/moddable/build/bin/mac/release:/Users/yoshiakiyamada/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/opt/homebrew/opt/m4/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/yoshiakiyamada/.nodenv/shims:/Users/yoshiakiyamada/.nodenv/bin:/Users/yoshiakiyamada/node_modules/.bin:/usr/local/bin/platform-tools:/Users/yoshiakiyamada/google-cloud-sdk:/Users/yoshiakiyamada/google-cloud-sdk/bin:/usr/local/opt/[email protected]/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home:/Users/yoshiakiyamada/.rbenv/shims:/Users/yoshiakiyamada/.pyenv/plugins/pyenv-virtualenv/shims:/Users/yoshiakiyamada/.pyenv/shims:/Users/yoshiakiyamada/.pyenv/bin:/Users/yoshiakiyamada/.mos/bin:/Users/yoshiakiyamada/.cargo/bin:/node_modules/.bin:/Users/yoshiakiyamada/bin:/Users/yoshiakiyamada/.local/bin:/usr/local/lib/flutter/bin:/Users/yoshiakiyamada/Library/Android/sdk/emulator:/Users/yoshiakiyamada/Library/Android/sdk/tools:/Users/yoshiakiyamada/Library/Android/sdk/tools/bin:/Users/yoshiakiyamada/Library/Android/sdk/platform-tools:/Users/yoshiakiyamada/.cargo/bin/:/Users/yoshiakiyamada/bin:/Users/yoshiakiyamada/.local/bin:/usr/local/lib/flutter/bin:/Users/yoshiakiyamada/Library/Android/sdk/emulator:/Users/yoshiakiyamada/Library/Android/sdk/tools:/Users/yoshiakiyamada/Library/Android/sdk/tools/bin:/Users/yoshiakiyamada/Library/Android/sdk/platform-tools:/Users/yoshiakiyamada/.cargo/bin/" PROJECT_DIR="/Users/yoshiakiyamada/git/rust-on-m5stack/test2" SDKCONFIG_DEFAULTS="/Users/yoshiakiyamada/git/rust-on-m5stack/test2/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-8fb7717dc012a26e/out/gen-sdkconfig.defaults;/Users/yoshiakiyamada/git/rust-on-m5stack/test2/sdkconfig.defaults" "cmake" "/Users/yoshiakiyamada/git/rust-on-m5stack/test2/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-8fb7717dc012a26e/out" "-G" "Ninja" "-DCMAKE_TOOLCHAIN_FILE=/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/cmake/toolchain-esp32.cmake" "-DCMAKE_BUILD_TYPE=" "-DPYTHON=/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/python_env/idf5.1_py3.11_env/bin/python" "-DCMAKE_INSTALL_PREFIX=/Users/yoshiakiyamada/git/rust-on-m5stack/test2/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-8fb7717dc012a26e/out" "-DCMAKE_C_FLAGS= -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections --target=xtensa-esp32-espidf" "-DCMAKE_CXX_FLAGS= -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections --target=xtensa-esp32-espidf" "-DCMAKE_ASM_FLAGS= -mlongcalls -ffunction-sections -fdata-sections --target=xtensa-esp32-espidf"
  -- Found Git: /opt/homebrew/bin/git (found version "2.42.1") 
  -- The C compiler identification is GNU 12.2.0
  -- The CXX compiler identification is GNU 12.2.0
  -- The ASM compiler identification is GNU
  -- Found assembler: /Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: /Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
  -- Check for working C compiler: /Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - broken
  -- Configuring incomplete, errors occurred!
  See also "/Users/yoshiakiyamada/git/rust-on-m5stack/test2/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-8fb7717dc012a26e/out/build/CMakeFiles/CMakeOutput.log".
  See also "/Users/yoshiakiyamada/git/rust-on-m5stack/test2/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-8fb7717dc012a26e/out/build/CMakeFiles/CMakeError.log".

  --- stderr
  Build configuration: BuildConfig {
      esp_idf_tools_install_dir: None,
      esp_idf_sdkconfig: None,
      esp_idf_sdkconfig_defaults: None,
      mcu: Some(
          "esp32",
      ),
      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_component_manager: None,
      },
      esp_idf_sys_root_crate: None,
  }
  Using managed esp-idf repository: RemoteSdk { repo_url: None, git_ref: Tag("v5.1.1") }
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1'...
  Note: switching to 'e088c3766ba440e72268b458a68f27b6e7d63986'.

  You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by switching back to a branch.

  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -c with the switch command. Example:

    git switch -c <new-branch-name>

  Or undo this operation with:

    git switch -

  Turn off this advice by setting config variable advice.detachedHead to false

Updating files: 100% (11722/11722), done.
  Submodule 'components/bootloader/subproject/components/micro-ecc/micro-ecc' (https://github.com/kmackay/micro-ecc.git) registered for path 'components/bootloader/subproject/components/micro-ecc/micro-ecc'
  Submodule 'components/bt/controller/lib_esp32' (https://github.com/espressif/esp32-bt-lib.git) registered for path 'components/bt/controller/lib_esp32'
  Submodule 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib' (https://github.com/espressif/esp32c2-bt-lib.git) registered for path 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib'
  Submodule 'components/bt/controller/lib_esp32c3_family' (https://github.com/espressif/esp32c3-bt-lib.git) registered for path 'components/bt/controller/lib_esp32c3_family'
  Submodule 'components/bt/controller/lib_esp32c6/esp32c6-bt-lib' (https://github.com/espressif/esp32c6-bt-lib.git) registered for path 'components/bt/controller/lib_esp32c6/esp32c6-bt-lib'
  Submodule 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib' (https://github.com/espressif/esp32h2-bt-lib.git) registered for path 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib'
  Submodule 'components/bt/host/nimble/nimble' (https://github.com/espressif/esp-nimble.git) registered for path 'components/bt/host/nimble/nimble'
  Submodule 'components/cmock/CMock' (https://github.com/ThrowTheSwitch/CMock.git) registered for path 'components/cmock/CMock'
  Submodule 'components/esp_coex/lib' (https://github.com/espressif/esp-coex-lib.git) registered for path 'components/esp_coex/lib'
  Submodule 'components/esp_phy/lib' (https://github.com/espressif/esp-phy-lib.git) registered for path 'components/esp_phy/lib'
  Submodule 'components/esp_wifi/lib' (https://github.com/espressif/esp32-wifi-lib.git) registered for path 'components/esp_wifi/lib'
  Submodule 'components/heap/tlsf' (https://github.com/espressif/tlsf.git) registered for path 'components/heap/tlsf'
  Submodule 'components/ieee802154/lib' (https://github.com/espressif/esp-ieee802154-lib.git) registered for path 'components/ieee802154/lib'
  Submodule 'components/json/cJSON' (https://github.com/DaveGamble/cJSON.git) registered for path 'components/json/cJSON'
  Submodule 'components/lwip/lwip' (https://github.com/espressif/esp-lwip.git) registered for path 'components/lwip/lwip'
  Submodule 'components/mbedtls/mbedtls' (https://github.com/espressif/mbedtls.git) registered for path 'components/mbedtls/mbedtls'
  Submodule 'components/mqtt/esp-mqtt' (https://github.com/espressif/esp-mqtt.git) registered for path 'components/mqtt/esp-mqtt'
  Submodule 'components/openthread/lib' (https://github.com/espressif/esp-thread-lib.git) registered for path 'components/openthread/lib'
  Submodule 'components/openthread/openthread' (https://github.com/espressif/openthread.git) registered for path 'components/openthread/openthread'
  Submodule 'components/protobuf-c/protobuf-c' (https://github.com/protobuf-c/protobuf-c.git) registered for path 'components/protobuf-c/protobuf-c'
  Submodule 'components/spiffs/spiffs' (https://github.com/pellepl/spiffs.git) registered for path 'components/spiffs/spiffs'
  Submodule 'components/unity/unity' (https://github.com/ThrowTheSwitch/Unity.git) registered for path 'components/unity/unity'
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32c2/esp32c2-bt-lib'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32c3_family'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32c6/esp32c6-bt-lib'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32h2/esp32h2-bt-lib'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/bt/host/nimble/nimble'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/cmock/CMock'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/esp_coex/lib'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/esp_phy/lib'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/heap/tlsf'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/ieee802154/lib'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/json/cJSON'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/lwip/lwip'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/mbedtls'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/mqtt/esp-mqtt'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/openthread/lib'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/openthread/openthread'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/protobuf-c/protobuf-c'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/spiffs/spiffs'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/unity/unity'...
  From https://github.com/kmackay/micro-ecc
   * branch            d037ec89546fad14b5c4d5456c2e23a71e554966 -> FETCH_HEAD
  From https://github.com/espressif/esp32-bt-lib
   * branch            e1b3a29c58a452a6c017113686262094afd87042 -> FETCH_HEAD
  From https://github.com/espressif/esp32c2-bt-lib
   * branch            5fcfd0e457a76ebb234086ccd6dc391690d69e90 -> FETCH_HEAD
  From https://github.com/espressif/esp32c3-bt-lib
   * branch            b438f60a295183e7c67eb42ae05f4580f4b1ced0 -> FETCH_HEAD
  From https://github.com/espressif/esp32c6-bt-lib
   * branch            d785de0a7c46d9badcd73bc83c2e5cb78f7054b2 -> FETCH_HEAD
  From https://github.com/espressif/esp32h2-bt-lib
   * branch            35bd3cd7352014d303a96c46d8ea8446ea0a9a54 -> FETCH_HEAD
  From https://github.com/espressif/esp-nimble
   * branch            9478bc510fa9fc792d98efbc80dc547b97a13b99 -> FETCH_HEAD
  From https://github.com/ThrowTheSwitch/CMock
   * branch            eeecc49ce8af123cf8ad40efdb9673e37b56230f -> FETCH_HEAD
  Submodule 'vendor/c_exception' (https://github.com/throwtheswitch/cexception.git) registered for path 'components/cmock/CMock/vendor/c_exception'
  Submodule 'vendor/unity' (https://github.com/throwtheswitch/unity.git) registered for path 'components/cmock/CMock/vendor/unity'
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/cmock/CMock/vendor/c_exception'...
  Cloning into '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/components/cmock/CMock/vendor/unity'...
  From https://github.com/throwtheswitch/cexception
   * branch            71b47be7c950f1bf5f7e5303779fa99a16224bb6 -> FETCH_HEAD
  From https://github.com/throwtheswitch/unity
   * branch            cf949f45ca6d172a177b00da21310607b97bc7a7 -> FETCH_HEAD
  From https://github.com/espressif/esp-coex-lib
   * branch            37698e17a4c7fd2e0872317fc8befaac3bb10cb4 -> FETCH_HEAD
  From https://github.com/espressif/esp-phy-lib
   * branch            998e05636344949ba219e8ac56feb733e27bf5d2 -> FETCH_HEAD
  From https://github.com/espressif/esp32-wifi-lib
   * branch            0a89d5ffd2c452407940c2e617434e54f3c34576 -> FETCH_HEAD
  From https://github.com/espressif/tlsf
   * branch            8c9cd0517adf99e363812e9a295dfe3898fdd345 -> FETCH_HEAD
  From https://github.com/DaveGamble/cJSON
   * branch            d348621ca93571343a56862df7de4ff3bc9b5667 -> FETCH_HEAD
  From https://github.com/espressif/esp-lwip
   * branch            269a58f18597aedec31c439e34cdaea47229dda3 -> FETCH_HEAD
  From https://github.com/espressif/mbedtls
   * branch            65b3c0857c9f207dcb0b646f2b4ebd8e5edf83c1 -> FETCH_HEAD
  From https://github.com/espressif/esp-mqtt
   * branch            dffabb067fb3c39f486033d2e47eb4b1416f0c82 -> FETCH_HEAD
  From https://github.com/espressif/esp-thread-lib
   * branch            c9c17a0b6634af016111c9817f0be1fe0e7112f6 -> FETCH_HEAD
  From https://github.com/espressif/openthread
   * branch            5beae143700db54c6e9bd4b15a568abe2f305723 -> FETCH_HEAD
  From https://github.com/pellepl/spiffs
   * branch            0dbb3f71c5f6fae3747a9d935372773762baf852 -> FETCH_HEAD
  From https://github.com/ThrowTheSwitch/Unity
   * branch            7d2bf62b7e6afaf38153041a9d53c21aeeca9a25 -> FETCH_HEAD
  Using esp-idf v5.1.1 at '/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1'
  CMake Error at /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/cmake/3.24.0/CMake.app/Contents/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
    The C compiler

      "/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: /Users/yoshiakiyamada/git/rust-on-m5stack/test2/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-8fb7717dc012a26e/out/build/CMakeFiles/CMakeTmp
      
      Run Build Command(s):/Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/tools/ninja/1.10.2/ninja cmTC_93ccf && [1/2] Building C object CMakeFiles/cmTC_93ccf.dir/testCCompiler.c.obj
      FAILED: CMakeFiles/cmTC_93ccf.dir/testCCompiler.c.obj 
      /Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc   -mlongcalls -Wno-frame-address  -ffunction-sections -fdata-sections --target=xtensa-esp32-espidf -o CMakeFiles/cmTC_93ccf.dir/testCCompiler.c.obj -c /Users/yoshiakiyamada/git/rust-on-m5stack/test2/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-8fb7717dc012a26e/out/build/CMakeFiles/CMakeTmp/testCCompiler.c
      xtensa-esp32-elf-gcc: error: unrecognized command-line option '--target=xtensa-esp32-espidf'
      ninja: build stopped: subcommand failed.
      
      

    

    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    /Users/yoshiakiyamada/git/rust-on-m5stack/test2/.embuild/espressif/esp-idf/v5.1.1/tools/cmake/project.cmake:448 (__project)
    CMakeLists.txt:28 (project)


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

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

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

Environment

  • OS: macOS 14.0
  • How did you install the environment: espup 0.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions