On 11/04/22 01:10, Hauke Fath wrote:
On Sun, 10 Apr 2022 16:56:39 +1200, Lloyd Parkes wrote:A quick fix might be to simply delete the line defining yylloc in external/gpl2/dtc/dist/dtc-lexer.l (line 43 in my copy).Sounds nice, but results in the much longer ... Since this is about netbsd-9, should I send-pr?
Oh well. In my case I had hacked at the intermediate files to get it to work.
I like Valery's idea and I tested it by adding .if ${MKGCC:Uyes} != "no" HOST_CFLAGS+= -fcommon .endif to tools/dtc/Makefile and that fixed it for me on a host with GCC 11.I tried testing it on macOS which uses Clang instead of GCC, but the tools build seems to have more problems than just dtc on that host platform.
A PR to add -fcommon seems like the least intrusive solution to this on the netbsd-9 branch to me.
Cheers, Lloyd