All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann Sionneau <ysionneau@kalray.eu>
To: linux-kbuild@vger.kernel.org
Cc: ysionneau@kalray.eu, robh@kernel.org
Subject: [PATCH 0/1] Use target CPP to pre-process dts as supported flag checks are done on target toolchain
Date: Mon, 20 Dec 2021 17:29:24 +0100	[thread overview]
Message-ID: <20211220162925.14441-1-ysionneau@kalray.eu> (raw)

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
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


             reply	other threads:[~2021-12-20 16:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 16:29 Yann Sionneau [this message]
2021-12-20 16:29 ` [PATCH 1/1] Use target CPP to pre-process dts as supported flag checks are done on target toolchain Yann Sionneau
2021-12-21 23:10   ` Masahiro Yamada
2021-12-21 23:30   ` Rob Herring
2021-12-21 23:08 ` [PATCH 0/1] " Masahiro Yamada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211220162925.14441-1-ysionneau@kalray.eu \
    --to=ysionneau@kalray.eu \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.