avrdude needs to be built with MAKEOPTS=-j1, otherwise the compilation sometimes fails with "no such file or directory: config_gram.h". Reproducible: Sometimes Steps to Reproduce: 1.MAKEOPTS=-j1 emerge avrdude 2. 3.
I can confirm this, the reason is this line in the ebuild: # let the build system re-generate these, bug #120194 rm -f lexer.c config_gram.c config_gram.h So these files have to be generated before compiling starts, which does not work when building in in parallel.
Sorry, I removed the -j1 because I thought I had tested this thoroughly enough. I still can't reproduce it but since it has been reported to me by other users I believed it. So I looked for a clean way to patch the autothings files instead of just re-adding -j1, but couldn't find one. Some day I'll understand how the autothings work. Maybe. In the meantime I'm re-adding -j1. Denis.