I'm trying to build binutils-2.39 and gcc-7.5.0 following the instruction here:
https://www.nongnu.org/avr-libc/user-manual/install_tools.html
These instructions have worked for me in the past. However with the above versions at least I get a non-working compiler. It fails like this:
$ avr-gcc test.c -o test
/home/tuser/local/avr/lib/gcc/avr/7.5.0/../../../../avr/bin/ld: cannot find -lm: No such file or directory
/home/tuser/local/avr/lib/gcc/avr/7.5.0/../../../../avr/bin/ld: cannot find -lc: No such file or directory
I haven't had much luck with google for these errors. Ideas?