#1148773 gcc-avr: Case sensitivity of mmcu

Package:
gcc-avr
Source:
gcc-avr
Description:
GNU C compiler (cross compiler for avr)
Submitter:
Joseph
Date:
2026-09-23 14:39:02 UTC
Severity:
normal
#1148773#5
Date:
2026-09-23 10:45:14 UTC
From:
To:
Dear Maintainer,

When compiling with -mmcu=attiny412, the include macro's are not resolving to __AVR_ATtiny412__, but when --mmcu=ATtiny412 is used (e.g. first two letter upper case), it works. However, then the compiler throws the error "avr-gcc: fatal error: cannot read spec file ‘device-specs/specs-ATtiny412’: No such file or directory". The wile does exist, however, in lower case.

#1148773#10
Date:
2026-09-23 14:37:03 UTC
From:
To:
Further searching, issue is different than reported;
Echo | avr-gcc -mmcu=attiny412 -dM -E -
reveals the define resolves correctly to __AVR_ATtiny412__

Can’t reproduce either, please close bug report.