https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119077
Georg-Johann Lay <gjl at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-03-02 Keywords| |needs-source Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING --- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> --- I cannot reproduce this, neither with v13, v14 nor with v15. Maybe the preprocessed source as required for a PR gives you some clues. util/delay.h is provided by AVR-LibC, so maybe you are using a broken / misconfigured toolchain. For example, you are using a configure command that's not supported since configuring anywhere in the source tree is not supported according to https://gcc.gnu.org/install/configure.html So what you can try is to do is a fresh build with clean sources, clean build dir and clean install dir for Binutils, GCC and AVR-LibC, e.g somewhere in your home folder where you do not need root access. Also as you are configuring AVR-LibC, make sure it is using the expected compiler, and make sure the configure output for "checking whether avr-gcc supports __builtin_avr_delay_cycles" matches the expectations. Maybe it has to do with the linker (plugin) invocation and you get hints reading the output with -v -Wl,-v