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

GCC error

I am getting this error again and again despite that I have copied the right path and version to Makefile.windows file.

C:\Nrf_Env\nRF5SDK14101dda907\examples\ble_peripheral\ble_app_beacon\pca10040e\s112\armgcc>make
process_begin: CreateProcess(NULL, "C:\Program Files (x86)\GNU Tools ARM Embedded\8 2019-q3-updatearm-none-eabi-gcc" --version, ...) failed.
make: ../../../../../../components/toolchain/gcc/Makefile.common:129: pipe: No error
Cannot find: 'C:\Program Files (x86)\GNU Tools ARM Embedded\8 2019-q3-updatearm-none-eabi-gcc'.
Please set values in: "C:/Nrf_Env/nRF5SDK14101dda907/components/toolchain/gcc/Makefile.windows"
according to the actual configuration of your system.
../../../../../../components/toolchain/gcc/Makefile.common:129: *** Cannot continue. Stop.

Parents Reply
  • Maybe it's an issue with spaces (' ') embedded within the command; here is an example for a different compiler which I wanted to use from the command line (with a great deal of trouble):

    rem: Actual full path is as follows, but invokation must not use spaces (escape with %)
    rem:   C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\common\bin\IarBuild.exe
    rem:
    echo Setting build path to: C:\Program Files(x86)\IAR Systems\Embedded Workbench 8.4_3\common\bin
    rem: SET  path=%ProgramFiles(x86)%\IAR Systems\Embedded Workbench 7.4\common\bin;%path%;
    SET path==%ProgramFiles(x86)%\IAR Systems\Embedded Workbench 8.4_3\common\bin;%path%;

    This is only a suggestion, I don't have a sample for gcc just yet

Children
Related