zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.85k stars 6.61k forks source link

crypto: secp256r1: crypto.secp256r1.p256-m_raw does not build #75710

Closed katgiadla closed 3 months ago

katgiadla commented 4 months ago

Describe the bug The test crypto/secp256r1/crypto.secp256r1.p256-m_raw does not build.

Observed for:

To Reproduce Steps to reproduce the behavior:

  1. have nrf5340dk/nrf5340/cpuapp connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T tests/crypto/secp256r1 -p nrf5340dk/nrf5340/cpuapp/ns --device-testing --device-serial /dev/ttyACM1 -v --inline-logs --west-flash="--erase"
  4. See console output with error

Expected behavior Valid console output

Impact Not clear

Logs and console output

-- Including generated dts.cmake file: /zephyr/zephyr/twister-out/nrf5340dk_nrf5340_cpuapp_ns/tests/crypto/secp256r1/crypto.secp256r1.p256-m_raw/zephyr/dts.cmake

warning: MBEDTLS_PSA_CRYPTO_C (defined at modules/mbedtls/Kconfig.tls-generic:485,
modules/mbedtls/Kconfig.tls-generic:485) was assigned the value 'y' but got the value 'n'. Check
these unsatisfied dependencies: ((!BUILD_WITH_TFM && MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-
tls-generic.h" && MBEDTLS) || (!BUILD_WITH_TFM && MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-tls-
generic.h" && MBEDTLS && 0)) (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MBEDTLS_PSA_CRYPTO_C and/or look up
MBEDTLS_PSA_CRYPTO_C in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

warning: The choice symbol MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG (defined at modules/mbedtls/Kconfig.tls-
generic:468, modules/mbedtls/Kconfig.tls-generic:468) was selected (set =y), but no symbol ended up
as the choice selection. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG and/or look
up MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG in the menuconfig/guiconfig interface. The Application
Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
the manual might be helpful too.

Parsing /zephyr/zephyr/zephyr/Kconfig
Loaded configuration '/zephyr/zephyr/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns_defconfig'
Merged configuration '/zephyr/zephyr/zephyr/tests/crypto/secp256r1/prj.conf'
Merged configuration '/zephyr/zephyr/zephyr/tests/crypto/secp256r1/p256-m_raw.conf'
Merged configuration '/zephyr/zephyr/twister-out/nrf5340dk_nrf5340_cpuapp_ns/tests/crypto/secp256r1/crypto.secp256r1.p256-m_raw/zephyr/misc/generated/extra_kconfig_options.conf'

warning: MBEDTLS_PSA_P256M_DRIVER_ENABLED (defined at modules/mbedtls/Kconfig.tls-generic:509, modules/mbedtls/Kconfig.tls-generic:509) has direct dependencies (MBEDTLS_PSA_CRYPTO_C && MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-tls-generic.h" && MBEDTLS) || (MBEDTLS_PSA_CRYPTO_C && MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-tls-generic.h" && MBEDTLS && 0) with value n, but is currently being y-selected by the following symbols:
 - MBEDTLS_PSA_P256M_DRIVER_RAW (defined at modules/mbedtls/Kconfig.tls-generic:517, modules/mbedtls/Kconfig.tls-generic:517), with value y, direct dependencies (MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-tls-generic.h" && MBEDTLS) || (MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-tls-generic.h" && MBEDTLS && 0) (value: y), and select condition MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-tls-generic.h" && MBEDTLS (value: y)

error: Aborting due to Kconfig warnings

CMake Error at zephyr/cmake/modules/kconfig.cmake:389 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  zephyr/cmake/modules/zephyr_default.cmake:132 (include)
  zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  zephyr/cmake/package_helper.cmake:126 (find_package)

Environment (please complete the following information):

Additional context Probably introduced by 83cd9f5a01664e82d3a0cb062b356b9a4de3e755

hakehuang commented 4 months ago

NXP has the same issue on lpcxpresso55s69/lpc55s69/cpu0/ns

nashif commented 3 months ago

marking as release blocker due to countless build errors on multiple platforms.