Build Error after upgrading to nrf-connect 2.8.0

Hello,

in preparation to ask for support, I wanted to upgrade a project from v2.7.99-cs2 to v2.8.0. The project builds with v2.7.99-cs2 but reproducible fails to build with v2.8.0. This is the only change, that was made to the project:

diff --git a/west.yml b/west.yml
index 0a9cfae..98e160f 100644
--- a/west.yml
+++ b/west.yml
@@ -22,7 +22,7 @@ manifest:
             description: Nordic SDK
             remote: nordic
             path: nrf
-            revision: v2.7.99-cs2
+            revision: v2.8.0
             import: true
 
         -   name: catch2

The change results in following build error:

% rm -fr ./build && west build  -b"nrf5340dk/nrf5340/cpuapp" --pristine --build-dir ./build --sysbuild  .
-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /zephyr-workspace/project-name/bin/python3.12 (found suitable version "3.12.3", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /Users/todi/Library/Caches/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
CMake Error at /zephyr-workspace/zephyr/cmake/modules/zephyr_module.cmake:73 (message):
  validation.invalid

   --- All found errors ---

  ["Key 'security' was not defined.  Path: ''"]

  ERROR: Malformed "build" section in file:
  /zephyr-workspace/modules/crypto/mbedtls/zephyr/module.yml


  <SchemaError: error code 2: Schema validation failed:

   - Key 'security' was not defined. Path: ''.: Path: '/'>

Call Stack (most recent call first):
  cmake/modules/sysbuild_default.cmake:13 (include)
  /zephyr-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  /zephyr-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  /zephyr-workspace/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /opt/homebrew/bin/cmake -DWEST_PYTHON=/zephyr-workspace/project-name/bin/python3.12 -B/zephyr-workspace/project-name/build -GNinja -DBOARD=nrf5340dk/nrf5340/cpuapp -S/zephyr-workspace/zephyr/share/sysbuild -DAPP_DIR:PATH=/zephyr-workspace/project-name

I have problems, to understand the error message and to derive any fix from the provided information. What could be the problem here and how to fix it?

best regards

Torsten

Parents
  • Hi there,

    The error message is complaining that the  /zephyr-workspace/modules/crypto/mbedtls/zephyr/module.yml doesn't have all of the expected definitions, more specifically "security".

    In v2.8.0:

    build:
      cmake-ext: True
      kconfig-ext: True
    security:
      external-references:
        - cpe:2.3:a:arm:mbed_tls:3.6.2:*:*:*:*:*:*:*
        - pkg:github/Mbed-TLS/[email protected]
    

    Can you do a diff between the v2.7.0-rc2 version and see if the security is defined?

    Also remember to do a clean before you build,

    regards

    Jared 

     

  • Hey Jared,

    thanks for looking into this. My fault! In our application, I have to have a patch in the sdk-zepyr repository. And when upgrading to 2.8.0, I have, of cause, to pick the correct version from nrf/west.yml, create a branch of that and apply my fix there again.

    After doing so, the software builds again. Again, sorry for that mistake!

    best regards

    Torsten

Reply Children
Related