*error: sh1: avr-gcc no such file or directory(Error no.127)*

Oh this is interesting. My package (which is for Windows) was picked over a PlatformIO provided lib. So basically the same as in Toolchain-gccarmnoneeabi for aarch64 - #7 by dolfandringa. Try the recommendations there.