Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

warning: attempt to assign the value 'y' to the undefined symbol

I found a lot of posts with this warning/error, but I could not find a fitting solution among them.

in my case, I copied the `peripheral_lbs` project to another folder,
then sourced the zephyr environment script from ncs/vX.X.X/zephyr and
ran west build in the project folder.
the error is:

`warning: attempt to assign the value 'y' to the undefined symbol NCS_SAMPLES_DEFAULTS`

I assume the reason is that NCS_SAMPLES_DEFAULTS is not a Zephyr definition, but a nordic specific one.
A google search gave me this result, what supports my assumption:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index-nrf.html

How do I tell kconfig/west (?) that there are more symbols available?

  • I'm sorry for all the hassle. We are aware of all the troubles regarding installing NCS on Mac, and are currently working it improving it (making the Toolchain Manager more stable and updating the documentation).

    The issues you're seeing might be due to conflicts with the Getting Started Assistant. From an earlier discussion I had with a developer I was told that it is important to either use the Toolchain Manager 100% or the Getting Started Assistant 100%, and not mix them at all. Hopefully we'll be able to fix this soon.

    Hopefully build-ncs-application-firmware-images-using-docker will help you resolve it. If not I'll try to help you with reverting all the steps from Getting Started Assistant.

    Best regards,

    Simon

Related