Prestine install ubuntu 22.04 compilation error

I use Ubuntu 22.04, vscode 1.75.1, sdk 2.2.0 installed with toolchain manager 1.2.2

When I try to compile the hello_world example, with a buildconfiguration for nrf52840_dk board, I get the following:

 *  Executing task: nRF Connect: Generate config nrf52840dk_nrf52840 for /home/bergm006/nrf-projects/hello_world 

Building hello_world
west build --build-dir /home/bergm006/nrf-projects/hello_world/build_dk /home/bergm006/nrf-projects/hello_world --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE"

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/bergm006/nrf-projects/hello_world
-- Found Python3: /home/bergm006/ncs/toolchains/v2.2.0/usr/local/bin/python3.8 (found suitable exact version "3.8.2") found components: Interpreter 
-- Cache files will be written to: /home/bergm006/.cache/zephyr
-- Zephyr version: 3.2.99 (/home/bergm006/ncs/v2.2.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.1 (/home/bergm006/ncs/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (/home/bergm006/ncs/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: /home/bergm006/ncs/toolchains/v2.2.0/usr/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/bergm006/ncs/v2.2.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: /home/bergm006/nrf-projects/hello_world/build_dk/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/bergm006/nrf-projects/hello_world/build_dk/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/bergm006/nrf-projects/hello_world/build_dk/zephyr/dts.cmake
Parsing /home/bergm006/ncs/v2.2.0/zephyr/Kconfig
Loaded configuration '/home/bergm006/ncs/v2.2.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/bergm006/nrf-projects/hello_world/prj.conf'

warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at /home/bergm006/ncs/v2.2.0/nrf/lib/nrf_modem_lib/Kconfig.modemlib:158) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined)

warning: the default selection OPENTHREAD_LIBRARY (undefined) of <choice OPENTHREAD_IMPLEMENTATION> (defined at /home/bergm006/ncs/v2.2.0/nrf/subsys/net/openthread/Kconfig.defconfig:29, subsys/net/l2/openthread/Kconfig:36) is not contained in the choice

warning: HAS_NORDIC_DRIVERS (defined at modules/hal_nordic/Kconfig:7) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:
 - SOC_SERIES_NRF52X (defined at soc/arm/nordic_nrf/nrf52/Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)

warning: HAS_NRFX (defined at modules/hal_nordic/nrfx/Kconfig:4) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:
 - SOC_SERIES_NRF52X (defined at soc/arm/nordic_nrf/nrf52/Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)

warning: NRFX_GPIOTE (defined at modules/hal_nordic/nrfx/Kconfig:63) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
 - GPIO_NRFX (defined at drivers/gpio/Kconfig.nrfx:4), with value y, direct dependencies DT_HAS_NORDIC_NRF_GPIO_ENABLED && GPIO (value: y), and select condition DT_HAS_NORDIC_NRF_GPIO_ENABLED && GPIO (value: y)

warning: NRFX_CLOCK (defined at modules/hal_nordic/nrfx/Kconfig:14) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
 - CLOCK_CONTROL_NRF (defined at drivers/clock_control/Kconfig.nrf:13), with value y, direct dependencies DT_HAS_NORDIC_NRF_CLOCK_ENABLED && CLOCK_CONTROL (value: y), and select condition !CLOCK_CONTROL_NRF_FORCE_ALT && DT_HAS_NORDIC_NRF_CLOCK_ENABLED && CLOCK_CONTROL (value: y)

warning: NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED (defined at modules/hal_nordic/nrfx/Kconfig:18) has direct dependencies NRFX_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
 - CLOCK_CONTROL_NRF_K32SRC_XTAL (defined at drivers/clock_control/Kconfig.nrf:37), with value y, direct dependencies <choice CLOCK_CONTROL_NRF_SOURCE> (value: y), and select condition !SOC_SERIES_BSIM_NRFXX && !CLOCK_CONTROL_NRF_FORCE_ALT && <choice CLOCK_CONTROL_NRF_SOURCE> (value: y)

warning: NRFX_PPI (defined at modules/hal_nordic/nrfx/Kconfig:111) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
 - UART_ENHANCED_POLL_OUT (defined at drivers/serial/Kconfig.nrfx:422), with value y, direct dependencies (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y), and select condition HAS_HW_NRF_PPI && (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y)

error: Aborting due to Kconfig warnings

CMake Error at /home/bergm006/ncs/v2.2.0/zephyr/cmake/modules/kconfig.cmake:328 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /home/bergm006/ncs/v2.2.0/nrf/cmake/modules/kconfig.cmake:29 (include)
  /home/bergm006/ncs/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
  /home/bergm006/ncs/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/bergm006/ncs/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/bergm006/ncs/toolchains/v2.2.0/usr/local/bin/cmake -DWEST_PYTHON=/home/bergm006/ncs/toolchains/v2.2.0/usr/local/bin/python3.8 -B/home/bergm006/nrf-projects/hello_world/build_dk -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -S/home/bergm006/nrf-projects/hello_world

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Related