I am trying to configure Gradle to use ARM gcc cross compiler (https://launchpad.net/gcc-arm-embedded)
It is configured properly, I can access it from the console.
My problem is that all the toolchain executables have the “arm-none-eabi” prefix, for instance “arm-none-eabi-gcc.exe”.
Could you please explain how to tell gradle to use such prefix ? Thanks.
I have found a related topic 2 years old without any answer.
See this post for how you can set the executable for each platform: Having gradle compile with g++ and not gcc. You can use tools.platform to access the individual platform and make a choice about what executable to use.
:assemble FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':assemble'.
> No buildable binaries found:
- shared library 'crc16:debug:sharedLibrary': No tool chain is available to
build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- static library 'crc16:debug:staticLibrary': No tool chain is available to
build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- shared library 'crc16:release:sharedLibrary': No tool chain is available t
o build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- static library 'crc16:release:staticLibrary': No tool chain is available t
o build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- shared library 'framing:debug:sharedLibrary': No tool chain is available t
o build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- static library 'framing:debug:staticLibrary': No tool chain is available t
o build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- shared library 'framing:release:sharedLibrary': No tool chain is available
to build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- static library 'framing:release:staticLibrary': No tool chain is available
to build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- executable 'main:debug:executable': No tool chain is available to build fo
r platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- executable 'main:release:executable': No tool chain is available to build
for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- shared library 'telemetry:debug:sharedLibrary': No tool chain is available
to build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- static library 'telemetry:debug:staticLibrary': No tool chain is available
to build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- shared library 'telemetry:release:sharedLibrary': No tool chain is availab
le to build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- static library 'telemetry:release:staticLibrary': No tool chain is availab
le to build for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- executable 'tests:debug:executable': No tool chain is available to build f
or platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
- executable 'tests:release:executable': No tool chain is available to build
for platform 'windows_x86':
- Tool chain 'gcc' (GNU GCC): Could not determine GCC version: failed to
execute arm-none-eabi-gcc.exe -m32 -dM -E -.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 10.77 secs
arm-none-eabi-gcc is well accessible from the console though