m5stack / Core2-for-AWS-IoT-Kit

Accompanying code for use with AWS IoT Kit content. Works with PlatformIO and ESP-IDF v4.2.
https://m5stack.com/collections/m5-core/products/m5stack-core2-esp32-iot-development-kit-for-aws-iot-edukit
MIT License
127 stars 66 forks source link

Does not work on M1 Mac #86

Closed PeterJBurke closed 2 years ago

PeterJBurke commented 2 years ago
pip install cryptoauthlib fails on M1 mac.

See also https://github.com/m5stack/Core2-for-AWS-IoT-EduKit/issues/85 https://github.com/MicrochipTech/cryptoauthlib/issues/281

Here is the error message I get: peterburke@Peters-MacBook-Air Blinky-Hello-World % pip install cryptoauthlib Collecting cryptoauthlib Using cached cryptoauthlib-20211006.tar.gz (438 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: cryptoauthlib Building wheel for cryptoauthlib (setup.py) ... error ERROR: Command errored out with exit status 1: command: /Users/peterburke/.platformio/penv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py'"'"'; file='"'"'/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-wheel-avzy9plw cwd: /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/ Complete output (302 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.14.6-arm64-3.8 creating build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/tng.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/library.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/device.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/iface.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/atjwt.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/init.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/atcab.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/atcacert.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/sha206_api.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/exceptions.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/talib.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/atcaenum.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib copying cryptoauthlib/status.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib running egg_info writing cryptoauthlib.egg-info/PKG-INFO writing dependency_links to cryptoauthlib.egg-info/dependency_links.txt writing requirements to cryptoauthlib.egg-info/requires.txt writing top-level names to cryptoauthlib.egg-info/top_level.txt reading manifest file 'cryptoauthlib.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'release_notes.md' writing manifest file 'cryptoauthlib.egg-info/SOURCES.txt' copying cryptoauthlib/cryptoauth.json -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib running build_ext Traceback (most recent call last): File "/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py", line 187, in build_extension subprocess.check_output(['cmake', '--build', '.'] + build_args, cwd=os.path.abspath(self.build_temp), stderr=subprocess.STDOUT) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 415, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release']' returned non-zero exit status 2.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py", line 213, in setup( File "/Users/peterburke/.platformio/penv/lib/python3.8/site-packages/setuptools/init.py", line 165, in setup return distutils.core.setup(**attrs) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/peterburke/.platformio/penv/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run self.run_command('build') File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/peterburke/.platformio/penv/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 87, in run _build_ext.run(self) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py", line 192, in build_extension raise RuntimeError(e.output.decode('utf-8')) RuntimeError: [ 1%] Building C object CMakeFiles/cryptoauth.dir/atca_basic.c.o [ 2%] Building C object CMakeFiles/cryptoauth.dir/atca_cfgs.c.o [ 4%] Building C object CMakeFiles/cryptoauth.dir/atca_debug.c.o [ 5%] Building C object CMakeFiles/cryptoauth.dir/atca_device.c.o [ 6%] Building C object CMakeFiles/cryptoauth.dir/atca_helpers.c.o [ 8%] Building C object CMakeFiles/cryptoauth.dir/atca_iface.c.o [ 9%] Building C object CMakeFiles/cryptoauth.dir/atca_utils_sizes.c.o [ 10%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_aes.c.o [ 12%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_aes_gcm.c.o [ 13%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_basic.c.o [ 15%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_checkmac.c.o [ 16%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_command.c.o [ 17%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_counter.c.o [ 19%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_derivekey.c.o [ 20%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_ecdh.c.o [ 21%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_execution.c.o [ 23%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_gendig.c.o [ 24%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_genkey.c.o [ 26%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_helpers.c.o [ 27%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_hmac.c.o [ 28%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_info.c.o [ 30%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_kdf.c.o [ 31%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_lock.c.o [ 32%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_mac.c.o [ 34%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_nonce.c.o [ 35%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_privwrite.c.o [ 36%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_random.c.o [ 38%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_read.c.o [ 39%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_secureboot.c.o [ 41%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_selftest.c.o [ 42%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_sha.c.o [ 43%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_sign.c.o [ 45%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_updateextra.c.o [ 46%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_verify.c.o [ 47%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_write.c.o [ 49%] Building C object CMakeFiles/cryptoauth.dir/host/atca_host.c.o [ 50%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_client.c.o [ 52%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_date.c.o [ 53%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_def.c.o [ 54%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_der.c.o [ 56%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_host_hw.c.o [ 57%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_host_sw.c.o [ 58%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_pem.c.o [ 60%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_cbc.c.o [ 61%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_cbcmac.c.o [ 63%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_ccm.c.o [ 64%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_cmac.c.o [ 65%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_ctr.c.o [ 67%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_pbkdf2.c.o [ 68%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_sw_ecdsa.c.o [ 69%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_sw_rand.c.o [ 71%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_sw_sha1.c.o [ 72%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_sw_sha2.c.o [ 73%] Building C object CMakeFiles/cryptoauth.dir/crypto/hashes/sha1_routines.c.o [ 75%] Building C object CMakeFiles/cryptoauth.dir/crypto/hashes/sha2_routines.c.o [ 76%] Building C object CMakeFiles/cryptoauth.dir/jwt/atca_jwt.c.o [ 78%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tflxtls_cert_def_4_device.c.o [ 79%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tng_atca.c.o [ 80%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tng_atcacert_client.c.o [ 82%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tng_root_cert.c.o [ 83%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_1_signer.c.o [ 84%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_2_device.c.o [ 86%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_4_device.c.o [ 87%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_1_signer.c.o [ 89%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_2_device.c.o [ 90%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_3_device.c.o [ 91%] Building C object CMakeFiles/cryptoauth.dir/hal/atca_hal.c.o /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/atca_hal.c:309:33: warning: incompatible function pointer types assigning to 'ATCA_STATUS ()(ATCAIface, ATCAIfaceCfg )' (aka 'ATCA_STATUS ()(struct atca_iface , ATCAIfaceCfg )') from 'ATCA_STATUS ()(void , void )' [-Wincompatible-function-pointer-types] (hal)->halinit = cfg->atcacustom.halinit; ^ ~~~~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/atca_hal.c:310:37: warning: incompatible function pointer types assigning to 'ATCA_STATUS ()(ATCAIface)' (aka 'ATCA_STATUS ()(struct atca_iface )') from 'ATCA_STATUS ()(void )' [-Wincompatible-function-pointer-types] (hal)->halpostinit = cfg->atcacustom.halpostinit; ^ ~~~~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/atca_hal.c:311:36: warning: incompatible function pointer types assigning to 'ATCA_STATUS ()(ATCAIface, uint8_t, uint8_t , uint16_t )' (aka 'ATCA_STATUS ()(struct atca_iface , unsigned char, unsigned char , unsigned short )') from 'ATCA_STATUS ()(void , uint8_t, uint8_t , uint16_t )' (aka 'ATCA_STATUS ()(void , unsigned char, unsigned char , unsigned short )') [-Wincompatible-function-pointer-types] (hal)->halreceive = cfg->atcacustom.halreceive; ^ ~~~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/atca_hal.c:312:33: warning: incompatible function pointer types assigning to 'ATCA_STATUS ()(ATCAIface, uint8_t, uint8_t , int)' (aka 'ATCA_STATUS ()(struct atca_iface , unsigned char, unsigned char , int)') from 'ATCA_STATUS ()(void , uint8_t, uint8_t , int)' (aka 'ATCA_STATUS ()(void , unsigned char, unsigned char , int)') [-Wincompatible-function-pointer-types] (hal)->halsend = cfg->atcacustom.halsend; ^ ~~~~~~~ 4 warnings generated. [ 93%] Building C object CMakeFiles/cryptoauth.dir/hal/hal_linux.c.o [ 94%] Building C object CMakeFiles/cryptoauth.dir/hal/kit_protocol.c.o /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:347:59: warning: passing 'char [32]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_send(iface, txbuf, txlen))) ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t txdata, int txlength) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:354:62: warning: passing 'char [42]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_receive(iface, rxbuf, &rxlen))) ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t rxdata, int rxsize) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:390:63: warning: passing 'char [32]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_send(iface, txbuf, txlen))) ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t txdata, int txlength) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:396:45: warning: passing 'char [42]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] status = kit_phy_receive(iface, rxbuf, &rxlen); ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t rxdata, int rxsize) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:414:67: warning: passing 'char [32]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_send(iface, txbuf, txlen))) ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t txdata, int txlength) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:421:46: warning: passing 'char [42]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] (void)kit_phy_receive(iface, rxbuf, &rxlen); ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t rxdata, int rxsize) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:431:67: warning: passing 'char [32]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_send(iface, txbuf, txlen))) ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t txdata, int txlength) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:437:49: warning: passing 'char [42]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] status = kit_phy_receive(iface, rxbuf, &rxlen); ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t rxdata, int rxsize) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:480:34: warning: passing 'char [32]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] status = kit_phy_send(iface, txbuf, txbuf_size); ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t txdata, int txlength) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:501:58: warning: passing 'char [38]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_receive(iface, reply, &replysize))) ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t rxdata, int rxsize) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:577:59: warning: passing 'char ' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_send(iface, pkitbuf, nkitbuf))) ^~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t txdata, int txlength) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:638:62: warning: passing 'char ' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_receive(iface, pkitbuf, &nkitbuf))) ^~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t rxdata, int rxsize) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:688:34: warning: passing 'char [7]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] status = kit_phy_send(iface, wake, wakesize); ^~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t txdata, int txlength) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:697:58: warning: passing 'char [42]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_receive(iface, reply, &replysize))) ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t rxdata, int rxsize) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:734:34: warning: passing 'char [7]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] status = kit_phy_send(iface, idle, idlesize); ^~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t txdata, int txlength) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:743:58: warning: passing 'char [38]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_receive(iface, reply, &replysize))) ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t rxdata, int rxsize) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:781:34: warning: passing 'char [7]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] status = kit_phy_send(iface, sleep, sleepsize); ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t txdata, int txlength) ^ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:790:58: warning: passing 'char [38]' to parameter of type 'uint8_t ' (aka 'unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign] if (ATCA_SUCCESS != (status = kit_phy_receive(iface, reply, &replysize))) ^~~~~ /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t rxdata, int rxsize) ^ 18 warnings generated. [ 95%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/third_party/hidapi/mac/hid.c.o /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/third_party/hidapi/mac/hid.c:693:34: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations] entry = IORegistryEntryFromPath(kIOMasterPortDefault, path); ^~~~~~~~ kIOMainPortDefault /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:123:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here const mach_port_t kIOMasterPortDefault ^ 1 warning generated. [ 97%] Building C object CMakeFiles/cryptoauth.dir/hal/hal_all_platforms_kit_hidapi.c.o /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/hal_all_platforms_kit_hidapi.c:127:17: warning: result of comparison of constant -1 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare] if (*rxsize == -1)


  1 warning generated.
  [ 98%] Building C object CMakeFiles/cryptoauth.dir/hal/hal_linux_uart_userspace.c.o
  [100%] Linking C shared library /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib/libcryptoauth.dylib
  ld: warning: pointer not aligned at address 0x2836B (_g_tflxtls_cert_def_4_device + 99 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tflxtls_cert_def_4_device.c.o)
  ld: warning: pointer not aligned at address 0x28361 (_g_tflxtls_cert_def_4_device + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tflxtls_cert_def_4_device.c.o)
  ld: warning: pointer not aligned at address 0x283C3 (_g_tnglora_cert_def_1_signer + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_1_signer.c.o)
  ld: warning: pointer not aligned at address 0x28441 (_g_tnglora_cert_def_2_device + 99 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_2_device.c.o)
  ld: warning: pointer not aligned at address 0x28437 (_g_tnglora_cert_def_2_device + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_2_device.c.o)
  ld: warning: pointer not aligned at address 0x2842E (_g_tnglora_cert_def_2_device + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_2_device.c.o)
  ld: warning: pointer not aligned at address 0x284A2 (_g_tnglora_cert_def_4_device + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_4_device.c.o)
  ld: warning: pointer not aligned at address 0x28499 (_g_tnglora_cert_def_4_device + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_4_device.c.o)
  ld: warning: pointer not aligned at address 0x2850D (_g_tngtls_cert_def_1_signer + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_1_signer.c.o)
  ld: warning: pointer not aligned at address 0x28582 (_g_tngtls_cert_def_2_device + 99 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_2_device.c.o)
  ld: warning: pointer not aligned at address 0x2856F (_g_tngtls_cert_def_2_device + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_2_device.c.o)
  ld: warning: pointer not aligned at address 0x285ED (_g_tngtls_cert_def_3_device + 99 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_3_device.c.o)
  ld: warning: pointer not aligned at address 0x285E3 (_g_tngtls_cert_def_3_device + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_3_device.c.o)
  ld: warning: pointer not aligned at address 0x285DA (_g_tngtls_cert_def_3_device + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_3_device.c.o)
  ld: unaligned pointer(s) for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[2]: *** [/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib/libcryptoauth.dylib] Error 1
  make[1]: *** [CMakeFiles/cryptoauth.dir/all] Error 2
  make: *** [all] Error 2

  ----------------------------------------
  ERROR: Failed building wheel for cryptoauthlib
  Running setup.py clean for cryptoauthlib
Failed to build cryptoauthlib
Installing collected packages: cryptoauthlib
    Running setup.py install for cryptoauthlib ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/peterburke/.platformio/penv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py'"'"'; __file__='"'"'/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-record-agok2izz/install-record.txt --single-version-externally-managed --compile --install-headers /Users/peterburke/.platformio/penv/include/site/python3.8/cryptoauthlib
         cwd: /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/
    Complete output (304 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.14.6-arm64-3.8
    creating build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/tng.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/library.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/device.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/iface.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/atjwt.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/__init__.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/atcab.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/atcacert.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/sha206_api.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/exceptions.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/talib.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/atcaenum.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    copying cryptoauthlib/status.py -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    running egg_info
    writing cryptoauthlib.egg-info/PKG-INFO
    writing dependency_links to cryptoauthlib.egg-info/dependency_links.txt
    writing requirements to cryptoauthlib.egg-info/requires.txt
    writing top-level names to cryptoauthlib.egg-info/top_level.txt
    reading manifest file 'cryptoauthlib.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'release_notes.md'
    writing manifest file 'cryptoauthlib.egg-info/SOURCES.txt'
    copying cryptoauthlib/cryptoauth.json -> build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib
    running build_ext
    Traceback (most recent call last):
      File "/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py", line 187, in build_extension
        subprocess.check_output(['cmake', '--build', '.'] + build_args, cwd=os.path.abspath(self.build_temp), stderr=subprocess.STDOUT)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 415, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 516, in run
        raise CalledProcessError(retcode, process.args,
    subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release']' returned non-zero exit status 2.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py", line 213, in <module>
        setup(
      File "/Users/peterburke/.platformio/penv/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup
        return distutils.core.setup(**attrs)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/peterburke/.platformio/penv/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/install.py", line 561, in run
        self.run_command('build')
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/peterburke/.platformio/penv/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 87, in run
        _build_ext.run(self)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
        self._build_extensions_serial()
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
        self.build_extension(ext)
      File "/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py", line 192, in build_extension
        raise RuntimeError(e.output.decode('utf-8'))
    RuntimeError: [  1%] Building C object CMakeFiles/cryptoauth.dir/atca_basic.c.o
    [  2%] Building C object CMakeFiles/cryptoauth.dir/atca_cfgs.c.o
    [  4%] Building C object CMakeFiles/cryptoauth.dir/atca_debug.c.o
    [  5%] Building C object CMakeFiles/cryptoauth.dir/atca_device.c.o
    [  6%] Building C object CMakeFiles/cryptoauth.dir/atca_helpers.c.o
    [  8%] Building C object CMakeFiles/cryptoauth.dir/atca_iface.c.o
    [  9%] Building C object CMakeFiles/cryptoauth.dir/atca_utils_sizes.c.o
    [ 10%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_aes.c.o
    [ 12%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_aes_gcm.c.o
    [ 13%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_basic.c.o
    [ 15%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_checkmac.c.o
    [ 16%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_command.c.o
    [ 17%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_counter.c.o
    [ 19%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_derivekey.c.o
    [ 20%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_ecdh.c.o
    [ 21%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_execution.c.o
    [ 23%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_gendig.c.o
    [ 24%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_genkey.c.o
    [ 26%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_helpers.c.o
    [ 27%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_hmac.c.o
    [ 28%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_info.c.o
    [ 30%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_kdf.c.o
    [ 31%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_lock.c.o
    [ 32%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_mac.c.o
    [ 34%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_nonce.c.o
    [ 35%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_privwrite.c.o
    [ 36%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_random.c.o
    [ 38%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_read.c.o
    [ 39%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_secureboot.c.o
    [ 41%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_selftest.c.o
    [ 42%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_sha.c.o
    [ 43%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_sign.c.o
    [ 45%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_updateextra.c.o
    [ 46%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_verify.c.o
    [ 47%] Building C object CMakeFiles/cryptoauth.dir/calib/calib_write.c.o
    [ 49%] Building C object CMakeFiles/cryptoauth.dir/host/atca_host.c.o
    [ 50%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_client.c.o
    [ 52%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_date.c.o
    [ 53%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_def.c.o
    [ 54%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_der.c.o
    [ 56%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_host_hw.c.o
    [ 57%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_host_sw.c.o
    [ 58%] Building C object CMakeFiles/cryptoauth.dir/atcacert/atcacert_pem.c.o
    [ 60%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_cbc.c.o
    [ 61%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_cbcmac.c.o
    [ 63%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_ccm.c.o
    [ 64%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_cmac.c.o
    [ 65%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_hw_aes_ctr.c.o
    [ 67%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_pbkdf2.c.o
    [ 68%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_sw_ecdsa.c.o
    [ 69%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_sw_rand.c.o
    [ 71%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_sw_sha1.c.o
    [ 72%] Building C object CMakeFiles/cryptoauth.dir/crypto/atca_crypto_sw_sha2.c.o
    [ 73%] Building C object CMakeFiles/cryptoauth.dir/crypto/hashes/sha1_routines.c.o
    [ 75%] Building C object CMakeFiles/cryptoauth.dir/crypto/hashes/sha2_routines.c.o
    [ 76%] Building C object CMakeFiles/cryptoauth.dir/jwt/atca_jwt.c.o
    [ 78%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tflxtls_cert_def_4_device.c.o
    [ 79%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tng_atca.c.o
    [ 80%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tng_atcacert_client.c.o
    [ 82%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tng_root_cert.c.o
    [ 83%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_1_signer.c.o
    [ 84%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_2_device.c.o
    [ 86%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_4_device.c.o
    [ 87%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_1_signer.c.o
    [ 89%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_2_device.c.o
    [ 90%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_3_device.c.o
    [ 91%] Building C object CMakeFiles/cryptoauth.dir/hal/atca_hal.c.o
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/atca_hal.c:309:33: warning: incompatible function pointer types assigning to 'ATCA_STATUS (*)(ATCAIface, ATCAIfaceCfg *)' (aka 'ATCA_STATUS (*)(struct atca_iface *, ATCAIfaceCfg *)') from 'ATCA_STATUS (*)(void *, void *)' [-Wincompatible-function-pointer-types]
                    (*hal)->halinit = cfg->atcacustom.halinit;
                                    ^ ~~~~~~~~~~~~~~~~~~~~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/atca_hal.c:310:37: warning: incompatible function pointer types assigning to 'ATCA_STATUS (*)(ATCAIface)' (aka 'ATCA_STATUS (*)(struct atca_iface *)') from 'ATCA_STATUS (*)(void *)' [-Wincompatible-function-pointer-types]
                    (*hal)->halpostinit = cfg->atcacustom.halpostinit;
                                        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/atca_hal.c:311:36: warning: incompatible function pointer types assigning to 'ATCA_STATUS (*)(ATCAIface, uint8_t, uint8_t *, uint16_t *)' (aka 'ATCA_STATUS (*)(struct atca_iface *, unsigned char, unsigned char *, unsigned short *)') from 'ATCA_STATUS (*)(void *, uint8_t, uint8_t *, uint16_t *)' (aka 'ATCA_STATUS (*)(void *, unsigned char, unsigned char *, unsigned short *)') [-Wincompatible-function-pointer-types]
                    (*hal)->halreceive = cfg->atcacustom.halreceive;
                                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/atca_hal.c:312:33: warning: incompatible function pointer types assigning to 'ATCA_STATUS (*)(ATCAIface, uint8_t, uint8_t *, int)' (aka 'ATCA_STATUS (*)(struct atca_iface *, unsigned char, unsigned char *, int)') from 'ATCA_STATUS (*)(void *, uint8_t, uint8_t *, int)' (aka 'ATCA_STATUS (*)(void *, unsigned char, unsigned char *, int)') [-Wincompatible-function-pointer-types]
                    (*hal)->halsend = cfg->atcacustom.halsend;
                                    ^ ~~~~~~~~~~~~~~~~~~~~~~~
    4 warnings generated.
    [ 93%] Building C object CMakeFiles/cryptoauth.dir/hal/hal_linux.c.o
    [ 94%] Building C object CMakeFiles/cryptoauth.dir/hal/kit_protocol.c.o
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:347:59: warning: passing 'char [32]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
            if (ATCA_SUCCESS != (status = kit_phy_send(iface, txbuf, txlen)))
                                                              ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here
    ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t* txdata, int txlength)
                                                       ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:354:62: warning: passing 'char [42]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
            if (ATCA_SUCCESS != (status = kit_phy_receive(iface, rxbuf, &rxlen)))
                                                                 ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here
    ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t* rxdata, int* rxsize)
                                                          ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:390:63: warning: passing 'char [32]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                if (ATCA_SUCCESS != (status = kit_phy_send(iface, txbuf, txlen)))
                                                                  ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here
    ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t* txdata, int txlength)
                                                       ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:396:45: warning: passing 'char [42]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                status = kit_phy_receive(iface, rxbuf, &rxlen);
                                                ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here
    ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t* rxdata, int* rxsize)
                                                          ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:414:67: warning: passing 'char [32]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                    if (ATCA_SUCCESS != (status = kit_phy_send(iface, txbuf, txlen)))
                                                                      ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here
    ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t* txdata, int txlength)
                                                       ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:421:46: warning: passing 'char [42]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                    (void)kit_phy_receive(iface, rxbuf, &rxlen);
                                                 ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here
    ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t* rxdata, int* rxsize)
                                                          ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:431:67: warning: passing 'char [32]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                    if (ATCA_SUCCESS != (status = kit_phy_send(iface, txbuf, txlen)))
                                                                      ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here
    ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t* txdata, int txlength)
                                                       ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:437:49: warning: passing 'char [42]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                    status = kit_phy_receive(iface, rxbuf, &rxlen);
                                                    ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here
    ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t* rxdata, int* rxsize)
                                                          ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:480:34: warning: passing 'char [32]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        status = kit_phy_send(iface, txbuf, txbuf_size);
                                     ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here
    ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t* txdata, int txlength)
                                                       ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:501:58: warning: passing 'char [38]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        if (ATCA_SUCCESS != (status = kit_phy_receive(iface, reply, &replysize)))
                                                             ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here
    ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t* rxdata, int* rxsize)
                                                          ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:577:59: warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
            if (ATCA_SUCCESS != (status = kit_phy_send(iface, pkitbuf, nkitbuf)))
                                                              ^~~~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here
    ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t* txdata, int txlength)
                                                       ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:638:62: warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
            if (ATCA_SUCCESS != (status = kit_phy_receive(iface, pkitbuf, &nkitbuf)))
                                                                 ^~~~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here
    ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t* rxdata, int* rxsize)
                                                          ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:688:34: warning: passing 'char [7]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        status = kit_phy_send(iface, wake, wakesize);
                                     ^~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here
    ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t* txdata, int txlength)
                                                       ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:697:58: warning: passing 'char [42]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        if (ATCA_SUCCESS != (status = kit_phy_receive(iface, reply, &replysize)))
                                                             ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here
    ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t* rxdata, int* rxsize)
                                                          ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:734:34: warning: passing 'char [7]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        status = kit_phy_send(iface, idle, idlesize);
                                     ^~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here
    ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t* txdata, int txlength)
                                                       ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:743:58: warning: passing 'char [38]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        if (ATCA_SUCCESS != (status = kit_phy_receive(iface, reply, &replysize)))
                                                             ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here
    ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t* rxdata, int* rxsize)
                                                          ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:781:34: warning: passing 'char [7]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        status = kit_phy_send(iface, sleep, sleepsize);
                                     ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:129:52: note: passing argument to parameter 'txdata' here
    ATCA_STATUS kit_phy_send(ATCAIface iface, uint8_t* txdata, int txlength)
                                                       ^
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:790:58: warning: passing 'char [38]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        if (ATCA_SUCCESS != (status = kit_phy_receive(iface, reply, &replysize)))
                                                             ^~~~~
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/kit_protocol.c:222:55: note: passing argument to parameter 'rxdata' here
    ATCA_STATUS kit_phy_receive(ATCAIface iface, uint8_t* rxdata, int* rxsize)
                                                          ^
    18 warnings generated.
    [ 95%] Building C object CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/third_party/hidapi/mac/hid.c.o
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/third_party/hidapi/mac/hid.c:693:34: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
            entry = IORegistryEntryFromPath(kIOMasterPortDefault, path);
                                            ^~~~~~~~~~~~~~~~~~~~
                                            kIOMainPortDefault
    /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:123:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here
    const mach_port_t kIOMasterPortDefault
                      ^
    1 warning generated.
    [ 97%] Building C object CMakeFiles/cryptoauth.dir/hal/hal_all_platforms_kit_hidapi.c.o
    /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/lib/hal/hal_all_platforms_kit_hidapi.c:127:17: warning: result of comparison of constant -1 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
        if (*rxsize == -1)
            ~~~~~~~ ^  ~~
    1 warning generated.
    [ 98%] Building C object CMakeFiles/cryptoauth.dir/hal/hal_linux_uart_userspace.c.o
    [100%] Linking C shared library /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib/libcryptoauth.dylib
    ld: warning: pointer not aligned at address 0x2836B (_g_tflxtls_cert_def_4_device + 99 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tflxtls_cert_def_4_device.c.o)
    ld: warning: pointer not aligned at address 0x28361 (_g_tflxtls_cert_def_4_device + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tflxtls_cert_def_4_device.c.o)
    ld: warning: pointer not aligned at address 0x283C3 (_g_tnglora_cert_def_1_signer + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_1_signer.c.o)
    ld: warning: pointer not aligned at address 0x28441 (_g_tnglora_cert_def_2_device + 99 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_2_device.c.o)
    ld: warning: pointer not aligned at address 0x28437 (_g_tnglora_cert_def_2_device + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_2_device.c.o)
    ld: warning: pointer not aligned at address 0x2842E (_g_tnglora_cert_def_2_device + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_2_device.c.o)
    ld: warning: pointer not aligned at address 0x284A2 (_g_tnglora_cert_def_4_device + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_4_device.c.o)
    ld: warning: pointer not aligned at address 0x28499 (_g_tnglora_cert_def_4_device + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tnglora_cert_def_4_device.c.o)
    ld: warning: pointer not aligned at address 0x2850D (_g_tngtls_cert_def_1_signer + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_1_signer.c.o)
    ld: warning: pointer not aligned at address 0x28582 (_g_tngtls_cert_def_2_device + 99 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_2_device.c.o)
    ld: warning: pointer not aligned at address 0x2856F (_g_tngtls_cert_def_2_device + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_2_device.c.o)
    ld: warning: pointer not aligned at address 0x285ED (_g_tngtls_cert_def_3_device + 99 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_3_device.c.o)
    ld: warning: pointer not aligned at address 0x285E3 (_g_tngtls_cert_def_3_device + 89 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_3_device.c.o)
    ld: warning: pointer not aligned at address 0x285DA (_g_tngtls_cert_def_3_device + 80 from CMakeFiles/cryptoauth.dir/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/app/tng/tngtls_cert_def_3_device.c.o)
    ld: unaligned pointer(s) for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/build/lib.macosx-10.14.6-arm64-3.8/cryptoauthlib/libcryptoauth.dylib] Error 1
    make[1]: *** [CMakeFiles/cryptoauth.dir/all] Error 2
    make: *** [all] Error 2

    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/peterburke/.platformio/penv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py'"'"'; __file__='"'"'/private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-install-pv9wthdb/cryptoauthlib_8b5200c2d9b54c6193a75ea3867e9438/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xg/_zygyhl957x91rl34w_6nw5c0000gn/T/pip-record-agok2izz/install-record.txt --single-version-externally-managed --compile --install-headers /Users/peterburke/.platformio/penv/include/site/python3.8/cryptoauthlib Check the logs for full command output.
peterburke@Peters-MacBook-Air Blinky-Hello-World % 
rashedtalukder commented 2 years ago

Take a look at: https://github.com/m5stack/Core2-for-AWS-IoT-EduKit/issues/85#issuecomment-1001280007

Downloading and using the x86 version of PlatformIO should let you move forward.

rashedtalukder commented 2 years ago

I know this took a while to resolve, but https://github.com/m5stack/Core2-for-AWS-IoT-EduKit/commit/2b4287b16b506d217d98df001efc4c48479efffc should fix the issue you were facing on an M1 Mac. This has been pretty challenging to be able to systematically test since we normally use VMs and this is currently not possible.