Topic: Build error
Hi,
I am new to the wolfSSL library and I am trying to run a test application "wolfssl_test" and I am getting errors.
* Executing task: nRF Connect: Generate config nrf5340dk_nrf5340_cpuapp for d:\work\nrf\app\wolfssl_test
Building wolfssl_test
west build --build-dir d:/work/nrf/app/wolfssl_test/build d:/work/nrf/app/wolfssl_test --pristine --board nrf5340dk_nrf5340_cpuapp -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=d:/work/nrf/app/wolfssl_test/prj.conf -DBOARD_ROOT=d:/work/nrf/app/wolfssl_test
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: D:/work/nrf/app/wolfssl_test
-- Found Python3: D:/work/nrf/sdk/v2.2.0/toolchains/v2.2.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: D:/work/nrf/sdk/v2.2.0/v2.2.0/zephyr/.cache
-- Zephyr version: 3.2.99 (D:/work/nrf/sdk/v2.2.0/v2.2.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.15.1 (D:/work/nrf/sdk/v2.2.0/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (D:/work/nrf/sdk/v2.2.0/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: D:/work/nrf/sdk/v2.2.0/toolchains/v2.2.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: D:/work/nrf/sdk/v2.2.0/v2.2.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: D:/work/nrf/app/wolfssl_test/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: D:/work/nrf/app/wolfssl_test/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: D:/work/nrf/app/wolfssl_test/build/zephyr/dts.cmake
d:/work/nrf/app/wolfssl_test/prj.conf:4: warning: attempt to assign the value '16384' to the undefined symbol COMMON_LIBC_MALLOC_ARENA_SIZE
error: Aborting due to Kconfig warnings
Parsing D:/work/nrf/sdk/v2.2.0/v2.2.0/zephyr/Kconfig
Loaded configuration 'D:/work/nrf/sdk/v2.2.0/v2.2.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration 'd:/work/nrf/app/wolfssl_test/prj.conf'
CMake Error at D:/work/nrf/sdk/v2.2.0/v2.2.0/zephyr/cmake/modules/kconfig.cmake:328 (message):
command failed with return code: 1
Call Stack (most recent call first):
D:/work/nrf/sdk/v2.2.0/v2.2.0/nrf/cmake/modules/kconfig.cmake:29 (include)
D:/work/nrf/sdk/v2.2.0/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
D:/work/nrf/sdk/v2.2.0/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
D:/work/nrf/sdk/v2.2.0/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:2 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'D:\work\nrf\sdk\v2.2.0\toolchains\v2.2.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=D:\work\nrf\sdk\v2.2.0\toolchains\v2.2.0\opt\bin\python.exe' '-Bd:\work\nrf\app\wolfssl_test\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=d:/work/nrf/app/wolfssl_test/prj.conf -DBOARD_ROOT=d:/work/nrf/app/wolfssl_test '-Sd:\work\nrf\app\wolfssl_test'
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
* Executing task: nRF Connect: Build [pristine]: wolfssl_test/build (active)
Building wolfssl_test
west build --build-dir d:/work/nrf/app/wolfssl_test/build d:/work/nrf/app/wolfssl_test --pristine --board nrf5340dk_nrf5340_cpuapp --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=d:/work/nrf/app/wolfssl_test -DCONF_FILE=d:/work/nrf/app/wolfssl_test/prj.conf
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: D:/work/nrf/app/wolfssl_test
-- Found Python3: D:/work/nrf/sdk/v2.3.0/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: D:/work/nrf/sdk/v2.3.0/v2.3.0/zephyr/.cache
-- Zephyr version: 3.2.99 (D:/work/nrf/sdk/v2.3.0/v2.3.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.15.2 (D:/work/nrf/sdk/v2.3.0/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.2 (D:/work/nrf/sdk/v2.3.0/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found Dtc: D:/work/nrf/sdk/v2.3.0/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: D:/work/nrf/sdk/v2.3.0/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: D:/work/nrf/app/wolfssl_test/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: D:/work/nrf/app/wolfssl_test/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: D:/work/nrf/app/wolfssl_test/build/zephyr/dts.cmake
Parsing D:/work/nrf/sdk/v2.3.0/v2.3.0/zephyr/Kconfig
Loaded configuration 'D:/work/nrf/sdk/v2.3.0/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration 'd:/work/nrf/app/wolfssl_test/prj.conf'
d:/work/nrf/app/wolfssl_test/prj.conf:4: warning: attempt to assign the value '16384' to the undefined symbol COMMON_LIBC_MALLOC_ARENA_SIZE
error: Aborting due to Kconfig warnings
CMake Error at D:/work/nrf/sdk/v2.3.0/v2.3.0/zephyr/cmake/modules/kconfig.cmake:328 (message):
command failed with return code: 1
Call Stack (most recent call first):
D:/work/nrf/sdk/v2.3.0/v2.3.0/nrf/cmake/modules/kconfig.cmake:29 (include)
D:/work/nrf/sdk/v2.3.0/v2.3.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
D:/work/nrf/sdk/v2.3.0/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
D:/work/nrf/sdk/v2.3.0/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:2 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'D:\work\nrf\sdk\v2.3.0\toolchains\v2.3.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=D:\work\nrf\sdk\v2.3.0\toolchains\v2.3.0\opt\bin\python.exe' '-Bd:\work\nrf\app\wolfssl_test\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=d:/work/nrf/app/wolfssl_test -DCONF_FILE=d:/work/nrf/app/wolfssl_test/prj.conf '-Sd:\work\nrf\app\wolfssl_test'
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
I have followed the setup from the below reference, and I have updated the SDK.
https://github.com/wolfSSL/wolfssl/blob … /README.md
Please let me know if I am missing any setup or configuration to be done.