This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Invocation:
/opt/ti/msp430-gcc-9.2.0.0/bin/msp430-elf-gcc -c -mmcu=msp430fr2422 -std=gnu11 -g -Os -Wall -pedantic -Wunused -ffunction-sections -fdata-sections -minrt -fomit-frame-pointer -fwrapv -MMD -I . -I ../Common -I/opt/ti/msp430-gcc-9.2.0.0/include -o prog.o prog.c
error:
Assembler messages:
Fatal error: MCU option requires a name
however as specified
-mmcu=msp430fr2422
As this is a FATAL error I assume it will be treated with the highest priority?
Hi Dave,
to be honest; I personally have not played with msp430-gcc yet. I will try to get this problem solved, but it might take some days.
Meanwhile if someone else knows the solution, please don't hesitate....
Johann
It would seem to be something about those specific options. I can replicate that error with the 9.2 compiler but not 8.3. On the other hand, it doesn't happen with the options I normally use with my code. Adding --verbose shows the actual as command line as:
/usr/ti/gcc/bin/../lib/gcc/msp430-elf/9.2.0/../../../../msp430-elf/bin/as --traditional-format -mP -mcpu=msp430xv2 -gdwarf-sections -mi -o rump.o /tmp/ccZpYfMU.s Assembler messages: Fatal error: MCU option requires a name
Deleting "-minrt" from the command line seems to have eliminated the error:
/usr/ti/gcc/bin/../lib/gcc/msp430-elf/9.2.0/../../../../msp430-elf/bin/as --traditional-format -mP -mcpu=msp430xv2 -gdwarf-sections -o rump.o /tmp/cc36YG5q.s
The only difference I can see is "-mi". My decoder ring doesn't reveal what that is supposed to mean as it isn't listed in the msp430 specific options.
As David said, -minrt is deprecated.
GCC should be emitting an error when -minrt is used, indicating that it is deprecated. This will be fixed in the next release.
Removing the option from the msp430-elf-gcc invocation will fix the error.
Regards,
**Attention** This is a public forum