when attempting to use arm-none-eabi-gcc I get an "invalid -march=" option error message. This occurs when no -march option is specified or any of the valid march options are specified.
arm-none-eabi-gcc -c test.c Assembler messages:Fatal error: invalid -march= option: `armv4t'
arm-none-eabi-gcc --version arm-none-eabi-gcc (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009Copyright (C) 2023 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
arm-none-eabi-gcc was obtained from the following link:
developer.arm.com/.../arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz
I'm using an amd x86 linux RH8 system. I assume it's some sort of setup issue
Any pointers on how to resolve would be appreciated. Thanks.
Hello,
I cannot replicate this (with the Windows version).
I note that the error relates to "Assembler messages". Could you share the test.c that you are using?
I added inline assembler to my test case, but it compiled without issue.
void foo(){ asm( "mov r0, r0" ); return; }
Hi Ronan, I see the same with the windows version. The test.c could be anything, I see the fail with your example and even with just "void foo(){}"
I should clarify. I too see the windows version work as expected. The linux version is where I see the issue.
Can you search for the presence of a prebuilt assembler? -march option usually defaults to armv4t in the absence of a prebuilt assembler.
I tested on Ubuntu and RH8, and it 'just works'.
There is nothing obvious in the 'known dependencies' section of the release notes.
You could try to reinstall? Perhaps something went wrong the first time?
Sorry, I am not sure how to help further.