FS#78697 - [avr-gcc] avr-gcc does not target attiny202

Attached to Project: Arch Linux
Opened by Joshua Milas (Buster) - Saturday, 03 June 2023, 23:37 GMT
Last edited by Toolybird (Toolybird) - Sunday, 04 June 2023, 20:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
avr-gcc seems to be missing some targets that are described in the avr-gcc documentation (https://gcc.gnu.org/onlinedocs/gcc/AVR-Options.html). Specifically I am trying to target the attiny202 and I am unsure if there are others. I compiled avr-gcc myself and do not see the target there either. I also cannot find the crtattiny202.o file. I do not see anything strange in the PKGBUILD script and I also don't see anything in the ./configure script to enable or disable certain targets.

Additional info:
* package version(s)
avr-gcc: 12.2.0


Steps to reproduce:
Run `avr-gcc --target-help | grep attiny202` and see if there is any output
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 04 June 2023, 20:31 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Sunday, 04 June 2023, 01:15 GMT
> missing some targets

I think you might be looking in the wrong place. The support seems to be there if you do this:

$ avr-gcc -mmcu=attiny202 -Q --help=target

Note what it says in the output for "-mmcu=MCU"

> I also cannot find the crtattiny202.o

The crt* files come from "avr-libc" pkg. Support for attiny202 is added upstream, but not in a released version yet [1]

[1] https://github.com/avrdudes/avr-libc/commit/960a359d854001399b8fb445a9ad0ce3ea80f4d0
Comment by Joshua Milas (Buster) - Sunday, 04 June 2023, 12:19 GMT
I compiled a newer version of avr-libc and got a different issue which I think is an issue with my toolchain. Thank you for your time, this ticket can be closed.

Loading...