ESP-MATTER installation fails - pigweed related?

rubydan650
Posts: 1
Joined: Sun Jul 09, 2023 9:39 pm

ESP-MATTER installation fails - pigweed related?

Postby rubydan650 » Sun Jul 09, 2023 11:42 pm

Hi - I am going through the installation instructions for ESP-MATTER described https://docs.espressif.com/projects/esp ... oping.html. I am on a Mac M1 (Ventura 13.4.1)

ESP-IDF was installed without any problems.

However, the ESP-MATTER installation fails as seen below during the install.sh stage (after doing all the git cloning and submodule updates. It looks like it had trouble with pigweed installation (it skipped it; even so, it said the environment passed all the checks).

Welcome any advice and guidance. Am looking forward to developing on the ESP32-H2. Thanks! Dan.

Code: Select all

ydr@MacBook-Pro esp-matter % ./install.sh 

Running Matter Setup

Synchronizing submodule url for 'connectedhomeip/connectedhomeip'
[... deleted a bunch of similar statements... ]
Synchronizing submodule url for 'connectedhomeip/connectedhomeip/third_party/pybind11/repo'

  WELCOME TO...

         █
         █
     ▄   █   ▄                                █     █
     ▀▀█████▀▀      ▄▀▀▀▄ ▄▀▀▀▄    ▄▀▀▀▀▄█  ▀▀█▀▀▀▀▀█▀▀   ▄▀▀▀▀▄    ▄▀▀
   ▀█▄       ▄█▀   █     █     █  █      █    █     █    █▄▄▄▄▄▄█  █   
     ▀█▄   ▄█▀     █     █     █  █      █    █     █    █         █   
  ▄██▀▀█   █▀▀██▄  █     █     █   ▀▄▄▄▄▀█    ▀▄▄   ▀▄▄   ▀▄▄▄▄▀   █   
 ▀▀    █   █    ▀▀

  BOOTSTRAP! Bootstrap may take a few minutes; please be patient.

Downloading and installing packages into local source directory:

  Setting up CIPD package manager...done (8.3s)
  Setting up Python environment.....done (49.6s)
  Setting up pw packages............skipped (0.1s)
  Setting up Host tools.............done (0.1s)

Activating environment (setting environment variables):

  Setting environment variables for CIPD package manager...done
  Setting environment variables for Python environment.....done
  Setting environment variables for pw packages............skipped
  Setting environment variables for Host tools.............done

Checking the environment:

20230709 16:25:47 INF Environment passes all checks!

Environment looks good, you are ready to go!

To reactivate this environment in the future, run this in your 
terminal:

  source ./activate.sh

To deactivate this environment, run this:

  deactivate

Installing pip requirements for all...
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [662 lines of output]
      Testing support for clang
      Target does not support clang
      Testing support for gcc
      Target does not support gcc
      Testing support for stdint.h header
      Target does not support stdint.h header
      Testing support for 128-bit integer
      Target does not support 128-bit integer
      Testing support for cpuid.h header
      Target does not support cpuid.h header
      Testing support for intrin.h header
      Target does not support intrin.h header
      Testing support for posix_memalign
      Target does not support posix_memalign
      Testing support for memalign
      Target does not support memalign
      Testing support for SSE2(intrin.h)
      Target does not support SSE2(intrin.h)
      Testing support for SSE2(x86intrin.h)
      Target does not support SSE2(x86intrin.h)
      Testing support for SSE2(emmintrin.h)
      Target does not support SSE2(emmintrin.h)
      Warning: compiler does not support AESNI instructions
      Warning: compiler does not support CLMUL instructions
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-10.9-universal2-cpython-39
      creating build/lib.macosx-10.9-universal2-cpython-39/Crypto
      copying lib/Crypto/__init__.py -> build/lib.macosx-10.9-universal2-cpython-39/Crypto
      creating build/lib.macosx-10.9-universal2-cpython-39/Crypto/Cipher
      copying lib/Crypto/Cipher/CAST.py -> build/lib.macosx-10.9-universal2-cpython-39/Crypto/Cipher

     [... deleted a bunch of similar statements... ]

      copying lib/Crypto/SelfTest/Signature/test_vectors/wycheproof/ecdsa_secp224r1_sha224_p1363_test.json -> build/lib.macosx-10.9-universal2-cpython-39/Crypto/SelfTest/Signature/test_vectors/wycheproof
      copying lib/Crypto/SelfTest/Signature/test_vectors/wycheproof/rsa_signature_2048_sha3_512_test.json -> build/lib.macosx-10.9-universal2-cpython-39/Crypto/SelfTest/Signature/test_vectors/wycheproof
      running build_ext
      building 'Crypto.Hash._MD2' extension
      creating build/temp.macosx-10.9-universal2-cpython-39
      creating build/temp.macosx-10.9-universal2-cpython-39/src
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DPYCRYPTO_LITTLE_ENDIAN -DSYS_BITS=64 -DLTC_NO_ASM -Isrc/ -I/Users/ydr/esp/esp-matter/connectedhomeip/connectedhomeip/.environment/pigweed-venv/include -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -c src/MD2.c -o build/temp.macosx-10.9-universal2-cpython-39/src/MD2.o
      In file included from src/MD2.c:28:
      src/common.h:34:10: fatal error: 'stdio.h' file not found
         34 | #include <stdio.h>
            |          ^~~~~~~~~
      1 error generated.
      error: command '/Users/ydr/esp/esp-matter/connectedhomeip/connectedhomeip/.environment/cipd/packages/pigweed/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycryptodome
ERROR: Could not build wheels for pycryptodome, which is required to install pyproject.toml-based projects

Who is online

Users browsing this forum: iancoullie and 97 guests