This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Fatal error: invalid -march= option: `armv4t'

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 20231009
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; 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. 

Parents
  • 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;
    }
    

Reply
  • 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;
    }
    

Children