Getting warning "

Dear team,

   I am trying to build my CPP project with Nordic Zephyr SDK. I am using following commands:

west build --build-dir nrf_build -b nrf52840dk_nrf52840 sample -DZEPHYR_TOOLCHAIN_VARIANT="gnuarmemb" -DGNUARMEMB_TOOLCHAIN_PATH="/home/projects/gcc-arm-none-eabi-10.3-2021.10"

The following is part of my generated compile commands file:

"directory": "/home/projects/zephyrproject/nrf_build",
"command": "/home/projects/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ -DCONFIG_ARMV8_M_DSP=1 -DENABLE_DROPIN_HEXDUMP=1 -DIOT_CONFIG_ENABLE_OBJECT_PRINT -DIOT_VERSION_MAJOR=1 -DIOT_VERSION_MINOR=1 -DIOT_VERSION_PATCH=0 -DKERNEL -DKERNEL=1 -DKNXIOT_ACCESS_TOKEN_MAX_COUNT=15 -DKNXIOT_BUILD_INTERFACE -DKNXIOT_LOG_LEVEL=7 -DKNX_IOT_PLATFORM_OS_DIR_zephyr -DKNX_KDC_DEBUG_VERBOSE=1 -DK_HEAP_MEM_POOL_SIZE=24000 -DMBEDTLS_CONFIG_FILE=\"\\\\\\\"nrf-config.h\\\\\\\"\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"\\\\\\\"nrf-psa-crypto-want-config.h\\\\\\\"\"

If you see it has multiple "\"s because of which I am getting the following warnings:

"<command-line>: warning: missing terminating " character"

Parents Reply
  • I have never tested just pulling Zephyr but it looks like the the environment variables might not have been set correctly. Have you done the steps mentioned here?

    Also can you print all your environment variables to see if some important variables like ZEPHYR_TOOLCHAIN_VARIANT are set correctly? 

    Also this documentation you are linking to seems to be imported from the Zephyr Project and not something we have made in Nordic, so if there are any issues in the documentation of the Zephyr Project, we still need to go to the Zephyr forum. 

Children
Related