Zephyr compile error after (unknown) update

soc/arm/ambiq/apollo4x/Kconfig.defconfig.apollo4p:13: error: couldn't parse 'default $(dt_node_reg_size_int,$(DT_NODE_SRAM),1,K)': macro expanded to blank string

This issue is most likely related to a recent update, as Mac1 first started experiencing the problem while Mac2 was still functioning normally. However, after restarting Visual Studio Code on Mac2, the same issue appeared. I also noticed that, before the restart, the build configuration edit page was different between Mac1 and Mac2.

The problem also occurs across all of the example projects that I tested.

Additionally, when trying to open the GUI Kconfig interface, I get this message:
Unable to find Kconfig information to display. Please select a Kconfig file first.

  • Hello,

    Thank you for the screenshot. Could you please share the build log as well? You can attach the complete build log using the insert tab.

    Are you encountering the same error message when using the latest SDK and toolchain (V2.7.0)?

    Kind regards,
    Abhijith

  • *  Executing task: nRF Connect: Build [pristine]: hello_world/build (active) 
    
    Building hello_world
    west build --build-dir /Users/me/Nordic/hello_world/build /Users/me/Nordic/hello_world --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=prj.conf
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: /Users/me/Nordic/hello_world
    -- CMake version: 3.20.5
    -- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/opt/[email protected]/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /Users/me/Library/Caches/zephyr
    -- Zephyr version: 3.4.99 (/opt/nordic/ncs/v2.5.2/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf52840dk_nrf52840
    -- Found host-tools: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/20d68df7e5/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
    -- Found BOARD.dts: /opt/nordic/ncs/v2.5.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: /Users/me/Nordic/hello_world/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Users/me/Nordic/hello_world/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /Users/me/Nordic/hello_world/build/zephyr/dts.cmake
    Parsing /opt/nordic/ncs/v2.5.2/zephyr/Kconfig
    Loaded configuration '/opt/nordic/ncs/v2.5.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
    Merged configuration '/Users/me/Nordic/hello_world/prj.conf'
    Configuration saved to '/Users/me/Nordic/hello_world/build/zephyr/.config'
    Kconfig header saved to '/Users/me/Nordic/hello_world/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/me/Nordic/hello_world/build
    -- west build: building application
    [1/142] Preparing syscall dependency handling
    
    [8/142] Generating include/generated/version.h
    -- Zephyr version: 3.4.99 (/opt/nordic/ncs/v2.5.2/zephyr), build: 4b5ef270413a
    [142/142] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       22124 B         1 MB      2.11%
                 RAM:        7564 B       256 KB      2.89%
            IDT_LIST:          0 GB         2 KB      0.00%
     *  Terminal will be reused by tasks, press any key to close it. 

    Is this the build log you were looking for? For some reason, the error doesn’t appear there.

    I am unable to update the toolchain in the production environment and we had to roll back the Nordic extensions to a version from two months ago, disabling updates (which makes everything work).

  • Hello,

    jtf said:
    Is this the build log you were looking for? For some reason, the error doesn’t appear there.

    From the shared log, it seems like a clean build with no reported issues. Does the error in your screenshot appear whenever you open VS Code or the nRF Connect extension? To me, it doesn’t seem related to the application itself.

    Kind Regards,

    Abhijith

  • The problem seems to be in Kconfig extension. If I update to the latest version, nRF Kconfig GUI does not work anymore

Related