ccache: FATAL: Could not find compiler "C:\Nordic\v1.8.0\toolchain\opt\bin\arm-none-eabi-gcc.exe" in PATH

I'm faced with a special error: we are not able to install the nRF Connect V1.8.0 using the tools published by Nordic.

We use the latest version of the tool chain manager and this claims to be successful

When attempting to build a blinky example for the nRF9160DK using SES we stumble upon the PATH not being correctly set for the compiler.

We tried to add the PATH manually, but this does not solve the issue.

We use this in an IoT oriented education, where we see this with one Windows 10 station, the other students have no problems.

The specific computer is not managed by a corporation, it is a personal laptop. I tried to replicate the issue, but was not successful.

  • I have the exact same issue same issue using Visual Studio Code on Windows 10

    > Executing task: nRF Connect: Build hello_world/build (active) <
    
    Building hello_world
    west build --build-dir d:\Projects\Nordic\MyApps\hello_world\build d:\Projects\Nordic\MyApps\hello_world
    
    [1/143] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    FAILED: zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj 
    ccache C:\NordicSemi\v1.7.1\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.6.99-ncs1-1 -DKERNEL -DNRF52832_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/NordicSemi/v1.7.1/zephyr/kernel/include -IC:/NordicSemi/v1.7.1/zephyr/arch/arm/include -IC:/NordicSemi/v1.7.1/zephyr/include -Izephyr/include/generated -IC:/NordicSemi/v1.7.1/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/NordicSemi/v1.7.1/nrf/include -IC:/NordicSemi/v1.7.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/NordicSemi/v1.7.1/modules/hal/nordic/nrfx -IC:/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/include -IC:/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/mdk -IC:/NordicSemi/v1.7.1/zephyr/modules/hal_nordic/nrfx/. -IC:/NordicSemi/v1.7.1/modules/debug/segger/SEGGER -IC:/NordicSemi/v1.7.1/modules/debug/segger/Config -IC:/NordicSemi/v1.7.1/zephyr/modules/segger/. -isystem C:/NordicSemi/v1.7.1/zephyr/lib/libc/minimal/include -isystem c:/nordicsemi/v1.7.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/nordicsemi/v1.7.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Og -imacros D:/Projects/Nordic/MyApps/hello_world/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -imacros C:/NordicSemi/v1.7.1/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=D:/Projects/Nordic/MyApps/hello_world=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/NordicSemi/v1.7.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/NordicSemi/v1.7.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -MF zephyr\CMakeFiles\offsets.dir\arch\arm\core\offsets\offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -c C:/NordicSemi/v1.7.1/zephyr/arch/arm/core/offsets/offsets.c
    ccache: FATAL: Could not find compiler "C:\NordicSemi\v1.7.1\toolchain\opt\bin\arm-none-eabi-gcc.exe" in PATH
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'c:\NordicSemi\v1.7.1\toolchain\opt\bin\cmake.EXE' --build 'd:\Projects\Nordic\MyApps\hello_world\build'
    The terminal process terminated with exit code: 1.

    I have tried uninstalling and re-installing:

    • nrfConnect for desktop 3.10.0
    • toolchain manager v0.10.3
    • nFR Connect SDK v1.7.1
    • nrfConnect SDK v1.8.0
    • Visual Studio Code V1.64.2(user setup)
    • nRF Connect Extension Pack v2021.9.1

    I have also tried different locations for the SDKs

    • D:\Projects\Nordic\nRFConnectSDK\
    • C:\NordicSemi\

    but I always get the same error.

    I can confirm the existence of the not found .exe from my command line

  • Update: it is to do with ccache... but I don't know why yet...

  • I have been successful in fixing this on my machine. 
    I had the location of ccache.exe on my path. Removing the path and re-creating a build fixed it. 

  • ccache was included as part of previous cygwin install C:\cygwin64\bin

  • Happy to hear! Thanks for verifying the issue with cygwin64

Related