gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/usr/local/etc\" -Wall -g -O2
-MT libavrdude_a-config_gram.o -MD -MP -MF
.deps/libavrdude_a-config_gram.Tpo -c -o libavrdude_a-config_gram.o
`test -f 'config_gram.c' || echo './'`config_gram.c
mv -f .deps/libavrdude_a-config_gram.Tpo
.deps/libavrdude_a-config_gram.Po
/bin/bash ./ylwrap lexer.l lex.yy.c lexer.c -- flex
m4: bad option: -P
It seems the lexer wrapper script requires a GNU version of the m4
macro processor. This one is often called "gm4" (on systems where the
native m4 command is not the GNU one).
What is this "AVRDUDE patch tracker" thing?
https://savannah.nongnu.org/patch/?group=avrdude
In particular, have a look at patch #6866.