I am attempting to use CMake with the Ninja generator to cross compile a project for ARM. Part of this project consists of .asm files that are passed to arm-none-eabi-as during the build process.
However, when I attempt to build the project I am returned with the following error when Ninja invokes arm-none-eabi-as:
/opt/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-as: invalid option -- 'F'
Looking at the rules.ninja
file generated by CMake I can find the corresponding rule:
rule ASM_COMPILER__qpc_
depfile = $DEP_FILE
deps = gcc
command = /opt/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-as $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building ASM object $out
As far as I can tell -MF
is a supported argument for GCC, but it is not for GNU as
.
What I am failing to grasp though is whether this is the result of a misconfiguration in my CMake project or a bug in CMake. I am using CMake version 3.17.3.
Could anyone shed any light?
Thank you