ncs 2.7.0 toolchain installation does not work

hello Nordic

trying to migrate from ncs 2.5.0 to 2.7.0

well i did the mistake of installing the toolchain via the vs code .. for some reason it installed it in the wrong directory .. then i did an uninstall and try to install it like i always did via the nrfconnect desktop application but when i try to do it now i get this error:

There are multiple errors:
Failed to clone the repositories: Error: FATAL ERROR: already initialized in /home/ziv/workspace/ncs, aborting. Hint: if you do not want a workspace there, remove this directory and re-run this command:

/home/ziv/workspace/ncs/.west Error: Launched process exited with non-zero status: 1

Error: FATAL ERROR: already initialized in /home/ziv/workspace/ncs, aborting. Hint: if you do not want a workspace there, remove this directory and re-run this command:

/home/ziv/workspace/ncs/.west Error: Launched process exited with non-zero status: 1

any idea how i can fix this issue

could the wrong installation directory caused me to fail on compilation and getting undefined on some function calls ?

p.s. On vs code after i try to uninstall and change installation directory i get this error: the argument '--install-dir <PATH>' cannot be used multiple times Usage: nrfutil toolchain-manager install [OPTIONS] <--ncs-version <VERSION>|--toolchain-bundle-id <HASH>|--toolchain-bundle <PATH>> For more information, try '--help'.

could the toolchain initial wrong installation directory cause me to fail on compilation and get ‘undefined’ on some function calls ? i actually don't think so cause tried with toolchain 2.6.1 which is installed on the right directory and still get the undefined issue  (Missing Forum Thread) 

Any ideas ?

hope to read from you soon

best regards

Ziv

Parents Reply Children
  • i deleted the dir that was created in the wrong place of the 2.7.0, in my current dir that i which to install the 2.7.0 this is the json

      {
        "default_toolchain": {
          "ncs_version": "v2.7.0"
        },
        "schema": 1,
        "toolchains": [
          {
            "identifier": {
              "ncs_version": "v2.1.2"
            },
            "ncs_versions": [
              "v2.1.2"
            ]
          },
          {
            "identifier": {
              "ncs_version": "v2.1.0"
            },
            "ncs_versions": [
              "v2.1.0"
            ]
          },
          {
            "identifier": {
              "ncs_version": "v2.3.0"
            },
            "ncs_versions": [
              "v2.3.0"
            ]
          },
          {
            "identifier": {
              "bundle_id": "7795df4459"
            },
            "ncs_versions": [
              "v2.5.0"
            ]
          },
          {
            "identifier": {
              "bundle_id": "2be090971e"
            },
            "ncs_versions": [
              "v2.6.1"
            ]
          }
        ]
      }
    ]

    to 2.7.0 there .. so i am not sure what or where to delete from ?

    hope to read you soon

    best regards

    Ziv

  • Hello Ziv,

    Also make sure to delete v2.7.0 of ncs in the folder that you are trying to install NCS v2.7.0, and then try installing it from nRF Connect for Desktop. What does it look like if it fails?

    BR,
    Edvin

  • hey Edvin

    its been sometime ..

    tried to install via nrf connect desktop app

    after i have tried to delete from ncs/downloads and from the ncs/toolchain dir .. i still see 2.7.0 as default in the toolchain.json, which seems like i can not change 

    the error i get is this 

    There are multiple errors:
    Failed to clone the repositories: Error: FATAL ERROR: already initialized in 
    /home/ziv/workspace/ncs, aborting. Hint: if you do not want a workspace there, 
    remove this directory and re-run this command:
    
    /home/ziv/workspace/ncs/.west Error: Launched process exited with non-zero status: 1
    
    Error: FATAL ERROR: already initialized in /home/ziv/workspace/ncs, aborting. Hint: if 
    you do not want a workspace there, remove this directory and re-run this command:
    
    /home/ziv/workspace/ncs/.west Error: Launched process exited with non-zero status: 1

    any ideas ?

    BR

    Ziv

  • Can you confirm that you have deleted the folder home/ziv/workspace/ncs before you tried again? Alternatively, if you don't want to delete it because you have older SDKs there, you can create a new folder, like home/ziv/test/ncs/ and point to this folder using the nRF Connect for Desktop -> Toolchain Manager:

Related