求大佬帮忙看下,安装matter环境失败原因。

JokerWWW
Posts: 3
Joined: Tue Jun 11, 2024 7:30 am

求大佬帮忙看下,安装matter环境失败原因。

Postby JokerWWW » Tue Jun 11, 2024 7:36 am

MacOS 按照文档的步骤进行环境的配置, esp-matter执行./install.sh的时候报错:
Downloading and installing packages into local source directory:

Setting up CIPD package manager...done (11.5s)
Setting up Project actions........skipped (0.1s)
Setting up Python environment.....[|]
ERROR at /Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_build/facade.gni:187:7: Assertion failed.
assert(_dep_is_in_link_dependencies,
^-----
/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_log:impl must be listed in the pw_build_LINK_DEPS build arg when the /Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_log:pw_log facade is in use. Please update your toolchain configuration.
See /Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_log/BUILD.gn:47:1: whence it was called.
pw_facade("pw_log") {
^--------------------
See //src/lib/support/BUILD.gn:351:5: which caused the file to be included.
"$dir_pw_log:impl",
^-----------------
['gn', 'gen', '/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/.environment/gn_out', '--args=chip_crypto="boringssl" dir_pigweed="/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo"']

Traceback (most recent call last):
File "/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 402, in install_packages
subprocess.check_call(
File "/usr/local/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gn', 'gen', '/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/.environment/gn_out', '--args=chip_crypto="boringssl" dir_pigweed="/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo"']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 995, in <module>
sys.exit(main())
^^^^^^
File "/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 987, in main
return EnvSetup(**vars(parse())).setup()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 577, in setup
result = step(spin)
^^^^^^^^^^
File "/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 766, in virtualenv
if not virtualenv_setup.install(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 443, in install
install_packages(gn_target)
File "/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 410, in install_packages
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['gn', 'gen', '/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/.environment/gn_out', '--args=chip_crypto="boringssl" dir_pigweed="/Users/wangxiufeng/desktop/matter/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo"']' returned non-zero exit status 1.

请问是什么原因导致的,谢谢大佬

Who is online

Users browsing this forum: No registered users and 153 guests