I have a [project](https://github.com/dwhall/arm_sandbox) that builds a very 
simple program via cross-compiling using the arm-none-eabi-gcc toolchain. Most 
cross-compile options given to nim are in the project's `nim.cfg` only the gcc 
binary is given on the command line. On a MacOS host, `nim` finds the 
cross-compiler `arm-none-eabi-gcc` in the PATH. On a Win10 host, `nim` does NOT 
find the cross-compiler `arm-none-eabi-gcc.exe` despite it being in PATH. Any 
ideas why not?
    
    
    PS D:\code\nim\arm_sandbox> nim c 
--arm.standalone.gcc.exe=arm-none-eabi-gcc.exe .\src\before.nim
    Hint: used config file 'D:\nim-1.6.10\config\nim.cfg' [Conf]
    Hint: used config file 'D:\nim-1.6.10\config\config.nims' [Conf]
    Hint: used config file 'D:\code\nim\arm_sandbox\nim.cfg' [Conf]
    .........................................................
    CC: ../../../nim-1.6.10/lib/system.nim
    Error: invocation of external compiler program failed. The system cannot 
find the file specified.
    Additional info: Requested command not found: 
'D:\nim-1.6.10\dist\mingw64\bin\arm-none-eabi-gcc.exe -c -w -fmax-errors=3 
-mno-ms-bitfields -w -fmax-errors=4 -mthumb   -ID:\nim-1.6.10\lib 
-ID:\code\nim\arm_sandbox\src -o 
D:\code\nim\arm_sandbox\build\nimcache\@m..@s..@s..@snim-1.6.10@s...@ssystem.nim.c.o
 
D:\code\nim\arm_sandbox\build\nimcache\@m..@s..@s..@snim-1.6.10@s...@ssystem.nim.c'.
 OS error: 2
    
    PS D:\code\nim\arm_sandbox> which arm-none-eabi-gcc.exe
    /c/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/13.2 
Rel1/bin/arm-none-eabi-gcc.exe
    
    
    Run

Reply via email to