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

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

Open
ysak-y opened this issue Nov 14, 2023 · 17 comments
Open

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

ysak-y opened this issue Nov 14, 2023 · 17 comments

Comments

@ysak-y
Copy link
Contributor

ysak-y commented Nov 14, 2023

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 xtensa-esp32-elf@esp-12.2.0_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 cmake@3.24.0
  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 ninja@1.10.2
  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 esp32ulp-elf@2.35_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/postgresql@9.6/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/postgresql@9.6/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
@ysak-y
Copy link
Contributor Author

ysak-y commented Nov 14, 2023

I realized espup would too old (current is 0.9 but I use 0.5). I'll update espup and try again.

@SergioGasquez
Copy link
Member

Hi! Let me know how it goes after updating installation with recent espup, also, which device are you targeting ESP32?

@ysak-y
Copy link
Contributor Author

ysak-y commented Nov 14, 2023

Hi, thank you for your comment, still failing even if updating espup to 0.9. It seems same error happening.

/Users/yoshiakiyamada/git/rust-on-m5stack/play-wav/.embuild/espressif/tools/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_cf89f.dir/testCCompiler.c.obj -c /Users/yoshiakiyamada/git/rust-on-m5stack/play-wav/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-ab3bcb30f5ec8ba0/out/build/CMakeFiles/CMakeTmp/testCCompiler.c
xtensa-esp32-elf-gcc: error: unrecognized command-line option '--target=xtensa-esp32-espidf'

I noticed export-esp.sh now indicates esp-13.2.0 as PATH but it seems build script still using esp-12.2.0 that is older version as above. I wonder why... There is no esp-12.2.0 when echo $PATH but still use it when build...

My export-esp.sh is as below.

export PATH="/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:$PATH"
export LIBCLANG_PATH="/Users/yoshiakiyamada/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-16.0.0-20230516/esp-clang/lib"

Let me know if you need more information.

@LarryMerino
Copy link

Same problem with ESP32C3

[build]
target = "riscv32imc-esp-espidf"

[target.riscv32imc-esp-espidf]
linker = "ldproxy"
# runner = "espflash --monitor" # Select this runner for espflash v1.x.x
runner = "espflash flash --monitor" # Select this runner for espflash v2.x.x
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]

[unstable]
build-std = ["std", "panic_abort"]

[env]
MCU="esp32c3"
# Note: this variable is not used by the pio builder (`cargo build --features pio`)
ESP_IDF_VERSION = "v5.1.1"
aused by:
  process didn't exit successfully: `/Volumes/T7/EOS/torrot-project/sand-box/build-test/target/debug/build/esp-idf-sys-c44dda218b03b259/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=/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/tools:$PATH
  IDF_DEACTIVATE_FILE_PATH=/var/folders/45/_dlnfy713_3g0hfrjfq6syz00000gn/T/tmp31feygavidf_23205
  Creating a new Python environment in /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/python_env/idf5.1_py3.11_env
  Downloading https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.1.txt
  Destination: /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/python_env/idf5.1_py3.11_env/lib/python3.11/site-packages (from -r /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 3)) (68.2.2)
  Collecting packaging (from -r /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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_x86_64.whl (2.9 MB)
  Collecting pyparsing (from -r /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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_10_9_x86_64.whl (182 kB)
  Collecting cachecontrol[filecache] (from idf-component-manager->-r /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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_10_9_x86_64.whl (187 kB)
  Collecting requests (from idf-component-manager->-r /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt (line 14))
    Using cached bitarray-2.8.3-cp311-cp311-macosx_10_9_x86_64.whl.metadata (32 kB)
  Collecting pycparser (from cffi>=1.12->cryptography->-r /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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_10_9_x86_64.whl (235 kB)
  Collecting filelock>=3.8.0 (from cachecontrol[filecache]->idf-component-manager->-r /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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_10_9_x86_64.whl (121 kB)
  Collecting idna<4,>=2.5 (from requests->idf-component-manager->-r /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 /Volumes/T7/EOS/torrot-project/sand-box/build-test/.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_10_9_x86_64.whl (125 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: /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/espidf.constraints.v5.1.txt
   Requirement files:
    - /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/tools/requirements/requirements.core.txt
  IDF_PYTHON_ENV_PATH=/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/python_env/idf5.1_py3.11_env
  ESP_IDF_VERSION=5.1
  PATH=/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/python_env/idf5.1_py3.11_env/bin:/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/tools:$PATH
  IDF_DEACTIVATE_FILE_PATH=/var/folders/45/_dlnfy713_3g0hfrjfq6syz00000gn/T/tmp_fx4m7fmidf_23205
  Current system platform: macos
  Installing riscv32-esp-elf@esp-12.2.0_20230208
  Downloading https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/riscv32-esp-elf-12.2.0_20230208-x86_64-apple-darwin.tar.xz
  Destination: /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/dist/riscv32-esp-elf-12.2.0_20230208-x86_64-apple-darwin.tar.xz.tmp
Done
  Extracting /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/dist/riscv32-esp-elf-12.2.0_20230208-x86_64-apple-darwin.tar.xz to /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208
  Installing cmake@3.24.0
  Downloading https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0-macos-universal.tar.gz
  Destination: /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/dist/cmake-3.24.0-macos-universal.tar.gz.tmp
Done
  Extracting /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/dist/cmake-3.24.0-macos-universal.tar.gz to /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/cmake/3.24.0
  Installing ninja@1.10.2
  Downloading https://dl.espressif.com/dl/ninja-1.10.2-osx.tar.gz
  Destination: /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/dist/ninja-1.10.2-osx.tar.gz.tmp
Done
  Extracting /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/dist/ninja-1.10.2-osx.tar.gz to /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/ninja/1.10.2
  IDF_PYTHON_ENV_PATH=/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/python_env/idf5.1_py3.11_env
  ESP_IDF_VERSION=5.1
  PATH=/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/cmake/3.24.0/CMake.app/Contents/bin:/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/ninja/1.10.2/:/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/python_env/idf5.1_py3.11_env/bin:/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/tools:$PATH
  IDF_DEACTIVATE_FILE_PATH=/var/folders/45/_dlnfy713_3g0hfrjfq6syz00000gn/T/tmp9ro0uri4idf_23205
  cargo:rerun-if-changed=/Volumes/T7/EOS/torrot-project/sand-box/build-test/sdkconfig.defaults
  running: "cc" "--version"
  exit status: 0
  running: "c++" "--version"
  exit status: 0
  running: "cc" "--version"
  exit status: 0
  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: cd "/Volumes/T7/EOS/torrot-project/sand-box/build-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-1b1ac1cba6d99804/out/build" && CMAKE_PREFIX_PATH="" EXTRA_COMPONENT_DIRS="" IDF_COMPONENT_MANAGER="1" IDF_PATH="/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1" IDF_TARGET="esp32c3" IDF_TOOLS_PATH="/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif" PATH="/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/python_env/idf5.1_py3.11_env/bin:/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/cmake/3.24.0/CMake.app/Contents/bin:/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/tools:/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/ninja/1.10.2/:/Users/larry/.nvm/versions/node/v20.6.0/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/larry/.cargo/bin:/usr/local/opt/fzf/bin:/Users/larry/.flutter/bin" PROJECT_DIR="/Volumes/T7/EOS/torrot-project/sand-box/build-test" SDKCONFIG_DEFAULTS="/Volumes/T7/EOS/torrot-project/sand-box/build-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-1b1ac1cba6d99804/out/gen-sdkconfig.defaults;/Volumes/T7/EOS/torrot-project/sand-box/build-test/sdkconfig.defaults" "cmake" "/Volumes/T7/EOS/torrot-project/sand-box/build-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-1b1ac1cba6d99804/out" "-G" "Ninja" "-DCMAKE_TOOLCHAIN_FILE=/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/tools/cmake/toolchain-esp32c3.cmake" "-DCMAKE_BUILD_TYPE=" "-DPYTHON=/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/python_env/idf5.1_py3.11_env/bin/python" "-DCMAKE_INSTALL_PREFIX=/Volumes/T7/EOS/torrot-project/sand-box/build-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-1b1ac1cba6d99804/out" "-DCMAKE_C_FLAGS= -march=rv32imc_zicsr_zifencei -ffunction-sections -fdata-sections --target=riscv32imc_zicsr_zifencei-esp-espidf" "-DCMAKE_CXX_FLAGS= -march=rv32imc_zicsr_zifencei -ffunction-sections -fdata-sections --target=riscv32imc_zicsr_zifencei-esp-espidf" "-DCMAKE_ASM_FLAGS=  -ffunction-sections -fdata-sections --target=riscv32imc_zicsr_zifencei-esp-espidf"
  -- Found Git: /usr/bin/git (found version "2.39.3 (Apple Git-145)")
  -- 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: /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
  -- Check for working C compiler: /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc - broken
  -- Configuring incomplete, errors occurred!
  See also "/Volumes/T7/EOS/torrot-project/sand-box/build-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-1b1ac1cba6d99804/out/build/CMakeFiles/CMakeOutput.log".
  See also "/Volumes/T7/EOS/torrot-project/sand-box/build-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-1b1ac1cba6d99804/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(
          "esp32c3",
      ),
      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 '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32c2/esp32c2-bt-lib'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32c3_family'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32c6/esp32c6-bt-lib'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/bt/controller/lib_esp32h2/esp32h2-bt-lib'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/bt/host/nimble/nimble'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/cmock/CMock'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_coex/lib'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_phy/lib'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/heap/tlsf'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/ieee802154/lib'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/json/cJSON'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/lwip/lwip'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/mbedtls/mbedtls'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/mqtt/esp-mqtt'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/openthread/lib'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/openthread/openthread'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/protobuf-c/protobuf-c'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/spiffs/spiffs'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/components/cmock/CMock/vendor/c_exception'...
  Cloning into '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.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 '/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1'
  CMake Error at /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/cmake/3.24.0/CMake.app/Contents/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
    The C compiler

      "/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: /Volumes/T7/EOS/torrot-project/sand-box/build-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-1b1ac1cba6d99804/out/build/CMakeFiles/CMakeTmp

      Run Build Command(s):/Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/ninja/1.10.2/ninja cmTC_2df0c && [1/2] Building C object CMakeFiles/cmTC_2df0c.dir/testCCompiler.c.obj
      FAILED: CMakeFiles/cmTC_2df0c.dir/testCCompiler.c.obj
      /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc   -march=rv32imc_zicsr_zifencei  -ffunction-sections -fdata-sections --target=riscv32imc_zicsr_zifencei-esp-espidf -o CMakeFiles/cmTC_2df0c.dir/testCCompiler.c.obj -c /Volumes/T7/EOS/torrot-project/sand-box/build-test/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-1b1ac1cba6d99804/out/build/CMakeFiles/CMakeTmp/testCCompiler.c
      riscv32-esp-elf-gcc: error: unrecognized command-line option '--target=riscv32imc_zicsr_zifencei-esp-espidf'
      ninja: build stopped: subcommand failed.





    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    /Volumes/T7/EOS/torrot-project/sand-box/build-test/.embuild/espressif/esp-idf/v5.1.1/tools/cmake/project.cmake:448 (__project)
    CMakeLists.txt:28 (project)


  thread 'main' panicked at /Users/larry/.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

My Cmake version is cmake version 3.27.7

I created other projects before for the same target and didn't get this error. Any ideas what could be going on?

@ysak-y
Copy link
Contributor Author

ysak-y commented Nov 14, 2023

which device are you targeting ESP32?

I'll use M5Stack Gray. target in .cargo/config.toml indicates xtensa-esp32-espidf.

@Vollbrecht
Copy link
Collaborator

Vollbrecht commented Nov 14, 2023

The gcc version used to build esp-idf is closely tied to the esp-idf release itself. When esp-idf is installed in .embuild it will come with its own gcc version. The version that is used is essentially the one declared in the respective tools.json file.

So for std development you can pass the --std flag to espup to don't install the potential newer gcc versions. But this should not lead to any problems its just dead weight in this context.

@Vollbrecht
Copy link
Collaborator

Vollbrecht commented Nov 14, 2023

@ysak-y @LarryMerino could you test it out with CRATE_CC_NO_DEFAULTS=1 cargo build in a clean project.

Also are you both using MacOS ?

@LarryMerino
Copy link

LarryMerino commented Nov 14, 2023

Yes, I'm using MacOs @Vollbrecht
I have tried the command you suggest and it works

build-test on  master [?] is 📦 v0.1.0 via 🦀 v1.74.0-nightly on ☁️ 
❯ CRATE_CC_NO_DEFAULTS=1 cargo build
   Compiling esp-idf-sys v0.33.7
   Compiling esp-idf-hal v0.42.5
   Compiling esp-idf-svc v0.47.3
   Compiling build-test v0.1.0 (/Volumes/T7/EOS/torrot-project/sand-box/build-test)
    Finished dev [optimized + debuginfo] target(s) in 1m 08s

@Vollbrecht
Copy link
Collaborator

It seams that the new released version of the cc crate version 1.0.84 brakes MacOS. The following PR maybe introduced the behavior rust-lang/cc-rs#709

@ysak-y
Copy link
Contributor Author

ysak-y commented Nov 14, 2023

I'm using macOS and it works too. Thanks @Vollbrecht !!

@ysak-y ysak-y closed this as completed Nov 14, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Nov 14, 2023
@ivmarkov
Copy link
Collaborator

ivmarkov commented Nov 14, 2023

I'm using macOS and it works too. Thanks @Vollbrecht !!

Can you explain why you closed the bug, and how the hypothesis that the issue at hand is caused by latest CC (btw, these failures seem to only happen on Mac - CI runs fine on Linux?) fixed the problem for you?

@ivmarkov ivmarkov reopened this Nov 14, 2023
@github-project-automation github-project-automation bot moved this from Done to In Progress in esp-rs Nov 14, 2023
@ivmarkov
Copy link
Collaborator

Argh, I'm sorry. I've missed a bunch of notifications and earlier comments on the bug. It seems @Vollbrecht has suggested a solution.

@ivmarkov
Copy link
Collaborator

Still - let's keep this issue open. Ideally, we should not be asking users to use CRATE_CC_NO_DEFAULTS and we have to understand how exactly CC was regressed in such a way, that it does not even find the correct GCC anymore (even though it is the first one on the path?)

@Vollbrecht
Copy link
Collaborator

Still - let's keep this issue open. Ideally, we should not be asking users to use CRATE_CC_NO_DEFAULTS and we have to understand how exactly CC was regressed in such a way, that it does not even find the correct GCC anymore (even though it is the first one on the path?)

Can you rename the issue to make it clear that it is scoped to MacOS user?

@ivmarkov ivmarkov changed the title Can't build new project [MacOS] Can't build new project Nov 14, 2023
@ivmarkov ivmarkov changed the title [MacOS] Can't build new project [MacOS - likely recent CC regression] Can't build new project Nov 14, 2023
@ivmarkov ivmarkov pinned this issue Nov 14, 2023
@Vollbrecht
Copy link
Collaborator

cc version 1.0.84 was yanked - so if you get back to version 1.0.83 you should not need to compile with CRATE_CC_NO_DEFAULTS here are related PR's rust-lang/cc-rs#901

@MabezDev MabezDev moved this from In Progress to Todo in esp-rs Feb 20, 2024
@cKhoff
Copy link

cKhoff commented Mar 7, 2024

This helped me as well.

~/git/esp/humidity master ?8 ❯ CRATE_CC_NO_DEFAULTS=1 cargo build                                                                          19:04:31
   Compiling esp-idf-sys v0.34.1
   Compiling esp-idf-hal v0.43.1
   Compiling esp-idf-svc v0.48.1
   Compiling humidity v0.1.0 (/Users/xxxxx/git/esp/humidity)
error[E0063]: missing field `hys_ctrl_mode` in initializer of `esp_idf_sys::gpio_config_t`
    --> /Users/xxxxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-hal-0.43.1/src/gpio.rs:1442:15
     |
1442 |     let cfg = gpio_config_t {
     |               ^^^^^^^^^^^^^ missing `hys_ctrl_mode`

For more information about this error, try `rustc --explain E0063`.
error: could not compile `esp-idf-hal` (lib) due to 1 previous error

in my case i also had to monkey patch this file by adding hys_ctrl_mode: 0in line 1448 to make it successfully compile.

@SergioGasquez
Copy link
Member

This helped me as well.

~/git/esp/humidity master ?8 ❯ CRATE_CC_NO_DEFAULTS=1 cargo build                                                                          19:04:31
   Compiling esp-idf-sys v0.34.1
   Compiling esp-idf-hal v0.43.1
   Compiling esp-idf-svc v0.48.1
   Compiling humidity v0.1.0 (/Users/xxxxx/git/esp/humidity)
error[E0063]: missing field `hys_ctrl_mode` in initializer of `esp_idf_sys::gpio_config_t`
    --> /Users/xxxxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-hal-0.43.1/src/gpio.rs:1442:15
     |
1442 |     let cfg = gpio_config_t {
     |               ^^^^^^^^^^^^^ missing `hys_ctrl_mode`

For more information about this error, try `rustc --explain E0063`.
error: could not compile `esp-idf-hal` (lib) due to 1 previous error

in my case i also had to monkey patch this file by adding hys_ctrl_mode: 0in line 1448 to make it successfully compile.

This is a different issue, its now merged but not yet released, see esp-rs/esp-idf-hal#387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

7 participants