v2.6.0-rc2 SDK build failure

Hi,

I've been building my project successfully with SDK v2.5.2 and tried to build with v2.6.0-rc2 (I also tried v2.6.0-rc1).

I now get this build failure, which looks like there's something wrong with the SDK:

-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0-rc2/zephyr), build: v3.5.99-ncs1-rc2
[22/260] Generating zephyr/autogen-pubkey.c
FAILED: zephyr/autogen-pubkey.c /Users/nickward/project/build/mcuboot/zephyr/autogen-pubkey.c
cd /Users/nickward/project/build/mcuboot && /opt/nordic/ncs/toolchains/580e4ef81c/bin/python3 /opt/nordic/ncs/v2.6.0-rc2/bootloader/mcuboot/scripts/imgtool.py getpub -k /Users/nickward/project/project-rsa-2048.pem > /Users/nickward/project/build/mcuboot/zephyr/autogen-pubkey.c
Traceback (most recent call last):
File "/opt/nordic/ncs/v2.6.0-rc2/bootloader/mcuboot/scripts/imgtool.py", line 19, in <module>
from imgtool import main
File "/opt/nordic/ncs/v2.6.0-rc2/bootloader/mcuboot/scripts/imgtool/main.py", line 26, in <module>
from imgtool import image, imgtool_version
File "/opt/nordic/ncs/v2.6.0-rc2/bootloader/mcuboot/scripts/imgtool/image.py", line 35, in <module>
from cryptography.hazmat.primitives.kdf.hkdf import HKDF
File "/Users/nickward/Library/Python/3.9/lib/python/site-packages/cryptography/hazmat/primitives/kdf/hkdf.py", line 10, in <module>
from cryptography.hazmat.primitives import constant_time, hashes, hmac
File "/Users/nickward/Library/Python/3.9/lib/python/site-packages/cryptography/hazmat/primitives/hmac.py", line 10, in <module>
from cryptography.hazmat.backends.openssl.hmac import _HMACContext
File "/Users/nickward/Library/Python/3.9/lib/python/site-packages/cryptography/hazmat/backends/openssl/__init__.py", line 6, in <module>
from cryptography.hazmat.backends.openssl.backend import backend
File "/Users/nickward/Library/Python/3.9/lib/python/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 61, in <module>
from cryptography.hazmat.bindings.openssl import binding
File "/Users/nickward/Library/Python/3.9/lib/python/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module>
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: dlopen(/Users/nickward/Library/Python/3.9/lib/python/site-packages/_cffi_backend.cpython-39-darwin.so, 0x0002): tried: '/Users/nickward/Library/Python/3.9/lib/python/site-packages/_cffi_backend.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/nickward/Library/Python/3.9/lib/python/site-packages/_cffi_backend.cpython-39-darwin.so' (no such file), '/Users/nickward/Library/Python/3.9/lib/python/site-packages/_cffi_backend.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
[33/260] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
ninja: build stopped: subcommand failed.

If I build without mcuboot and signing the build works but adding in mcuboot and application signing and it fails. If I switch back to v2.5.2 it builds successfully again.

Thanks for your help.

Parents Reply
  • Hi Nick,

    We are still looking into this. Apologies, but it was the Easter holidays and everyone's back just today, and hence the delay. THe problem arises as it's actually trying to use the system python libraries, but should only be using the ones in the toolchain. And moreover, it's a bit odd as to why is the mac toolchain python build is for x86_64. Will keep you updated as soon as we hear more from the team.

    -Priyanka

Children
Related