Warning: "attempt to assign the value 'y' to the undefined symbol"

Hello,
I'm having issues when building the peripheral_nfc_pairing and central_nfc_pairing samples from ncs 2.2.0 in VSCode. I've build before and haven't gotten any errors. I saw that post and try to update SDK via Toolchain Manager and run "west update" with the command prompt, but this doesn't work. When building I get the following in the terminal:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Building central_nfc_pairing
/bin/sh -c west build --build-dir /home/andreribeiro/ncs/v2.2.0/nrf/samples/bluetooth/central_nfc_pairing/build /home/andreribeiro/ncs/v2.2.0/nrf/samples/bluetooth/central_nfc_pairing --pristine --board nrf52dk_nrf52832 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONF_FILE:STRING="/home/andreribeiro/ncs/v2.2.0/nrf/samples/bluetooth/central_nfc_pairing/prj.conf"
WARNING: ZEPHYR_BASE=/home/andreribeiro/zephyrproject/zephyr in the calling environment will be used,
but the zephyr.base config option in /home/andreribeiro/ncs/v2.2.0 is "zephyr"
which implies a different ZEPHYR_BASE=/home/andreribeiro/ncs/v2.2.0/zephyr
To disable this warning in the future, execute 'west config --global zephyr.base-prefer env'
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/andreribeiro/ncs/v2.2.0/nrf/samples/bluetooth/central_nfc_pairing
-- CMake version: 3.20.5
-- Found Python3: /home/andreribeiro/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/andreribeiro/.cache/zephyr
-- Zephyr version: 3.3.99 (/home/andreribeiro/zephyrproject/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf52dk_nrf52832
-- Found host-tools: zephyr 0.15.1 (/home/andreribeiro/ncs/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (/home/andreribeiro/ncs/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: /home/andreribeiro/ncs/toolchains/v2.2.0/usr/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: /home/andreribeiro/zephyrproject/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts
-- Found devicetree overlay: /home/andreribeiro/ncs/v2.2.0/nrf/samples/bluetooth/central_nfc_pairing/nrf52dk_nrf52832.overlay
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Any advice would be greatly appreciated.

  • Hi,

    I've build before and haven't gotten any errors.

    Are you getting error now on the same SDK version? Without any updates done?

    Also, are you using a DK?

    Best Regards,

    Priyanka

    • Yes, in the same SDK version without any updates done. I only tried to update SDK after get the errors. I'm using the same nRF52832 DK.

      • Have you tried building via command prompt? Just to check if this is a VSCode issue.

        And if that too fails, could you try building with nRF Connect SDK v2.3.0?

        -Priyanka

        • Yes, I tried building via command prompt and doesn't work too. And building with nRF Connect SDK v2.3.0 doesn't work also.

          • I already understand what is the problem. Thank you!

            • Hi,

              Do you mean you were able to resolve the problem? Or you still have the issue?

              -Priyanka

              • Hi,
                Yes, I was able to resolve the problem. Thank you!

                • Please tell me what you did to resolve that problem? I have the similar issue.

                  • Fullscreen
                    1
                    2
                    3
                    WARNING: ZEPHYR_BASE=/home/andreribeiro/zephyrproject/zephyr in the calling environment will be used,
                    but the zephyr.base config option in /home/andreribeiro/ncs/v2.2.0 is "zephyr"
                    which implies a different ZEPHYR_BASE=/home/andreribeiro/ncs/v2.2.0/zephyr
                    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

                    My problem was that I was using the zephyr path instead of the nRF SDK path because I have two different paths and it was conflicting now not sure why. So I eliminate the zephyr path outside of the nRF SDK path that was useless and I was left with only one path. With this I solved the problem and the build not failed anymore.

                    • I meet same problem, could u tell me how to eliminate zephyr path? I want to see if I have the same case