On Tue, Dec 21, 2021 at 1:37 AM Yann Sionneau <ysionneau@xxxxxxxxx> wrote: > > Hello, > > I have encountered an issue with the following setup: > * host toolchain gcc 7.5.0 (Ubuntu 18.04 LTS) > * target toolchain gcc 9.4.1 > > In this case I got build error while compiling DTBs because of the following flag: -fmacro-prefix-map -fmacro-prefix-map is never used for compiling DTBs. If it is, it is a bug. But, I do not see such a case. > This flag was known to my target toolchain (CC) but not by my HOSTCC. > One might say that Ubuntu 18.04 is pretty old and I should upgrade but I think it's fundamentally broken to check flags on toolchain A and use them on toolchain B. We could have other issues like this in the future. > I'm proposing this change to open the discussion. > Regards, > > Yann Sionneau (1): > Use target CPP to pre-process dts as supported flag checks are done on > target toolchain > > scripts/Makefile.lib | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > -- > 2.17.1 > -- Best Regards Masahiro Yamada