I get the same error. Sadly, no on has provided an answer and I don't have one either. But I'll add what I've learned about the error/condition.
Per: "Error: arch/arm/dts/.fsl-imx8mq-evk.dtb.pre.tmp:618.1-10 syntax error", I found the file, arch/arm/dts/.fsl-imx8mq-evk.dtb.pre.tmp and at line 618 I see:
\#include "fsl-imx8mq-evk-u-boot.dtsi"
I assume 1-10 refers to columns of that line which is : "\#include". That looks suspicious. I think it should not start with a backslash. If I remove the backslash and rebuild, the build fails the same way and the backslash comes back! I assume this file is generated. Gods, this is why I hate this build. An error occurs in a generated file. Changing the offending file has no effect.
Searching the codebase for the file name (.fsl-imx8mq-ddr4-arm2.dtb.pre.tmp) returns four hits – in other tmp (generated?) files. What genius invented this? I call them a genius since they are. Geniuses suck! They invent complex stuff. I want simple stuff.
Googling finds that you can include via “/include/” or “#include”. No mention of “\#include”
IDK whether it’s supposed to be “/include/” or “#include” and IDK how to change it to either.