west build using wrong toolchain.

i have two toolchains inside my ncs directory.
i am trying to build my main program using west build and the west exe that i am using is the one from the right toolchain.
for some reason, it uses the other toolchain.

does it have something to do with the PYTHON_PREFER variable?
how does west find the oter toolchain? i dont see it on my system path.

Parents Reply Children
  • Has this been an issue for long

    hey, not for long.
    i am a junior ncs developer so i started working with the newest version of ncs with the tutorial and crashcourses on the devacademy. recently started working on a project requiring an older version of ncs.
    i installed the suitable toolchain from the toolchain manager on nrf for desktop and the command line tools. since then i am trying to build the project, a built it a week ago but now I noticed it is using the wrong toolchain in the process.



    Are you building it from VSC

    I am using a git bash ming terminal from VSC.

  • I assume that there are some path variables that haven't been set correctly. 

    Could you try building it with either the terminal that comes with the extension inside VSC, or the terminal you can find in the drop-down menu for a given version of NCS in Toolchain Manager? Those should have all the right path variables set.

    Regards,

    Elfving

  • i tried to build again, this time witout the other toolchain inside the ncs folder.
    this time it found the correct toolchain.
    it seems that west is looking for the newest toolchain it can find inside the ncd folder, regardless of where the west executable actually is.
    thnaks anyway!

Related