linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Sparse Mailing-list <linux-sparse@vger.kernel.org>
Subject: Re: building Linux for ARMv7 with llvm breaks sparse
Date: Thu, 31 Mar 2022 21:31:39 +0200	[thread overview]
Message-ID: <20220331193139.x3mqngrci3tc6sqo@pengutronix.de> (raw)
In-Reply-To: <CAHk-=wjeYjkXDpdHwobJ1X+Tk+N8xYPe_O6CbB3zg=fKRVhYJg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]

On 31.03.2022 12:22:08, Linus Torvalds wrote:
> On Thu, Mar 31, 2022 at 12:17 PM Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
> >
> > Does it all work if we just make the kernel use the normal
> >
> >   -meabi=gnu
> >
> > syntax instead?
> 
> IOW, just something like this
> 
>     --- a/arch/arm/Makefile
>     +++ b/arch/arm/Makefile
>     @@ -110,7 +110,7 @@ CFLAGS_ABI      +=-funwind-tables
>      endif
> 
>      ifeq ($(CONFIG_CC_IS_CLANG),y)
>     -CFLAGS_ABI += -meabi gnu
>     +CFLAGS_ABI += -meabi=gnu
>      endif
> 
>      ifeq ($(CONFIG_CURRENT_POINTER_IN_TPIDRURO),y)
> 
> that's basically what we do for all the other '-mxyz=abc' cases, so
> it's really that use of -meabi that stands out as being the odd man
> out.

No :/

| clang: error: unknown argument '-meabi=gnu'; did you mean '-mabi=gnu'?

The documentation says no "=":

| https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-meabi

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2022-03-31 19:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31 11:01 building Linux for ARMv7 with llvm breaks sparse Marc Kleine-Budde
2022-03-31 19:17 ` Linus Torvalds
2022-03-31 19:22   ` Linus Torvalds
2022-03-31 19:31     ` Marc Kleine-Budde [this message]
2022-03-31 19:57       ` Linus Torvalds
2022-05-22  9:08         ` [PATCH] handle clang's option "-meabi gnu" Luc Van Oostenryck
2022-05-23  9:17           ` Marc Kleine-Budde

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=20220331193139.x3mqngrci3tc6sqo@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=linux-sparse@vger.kernel.org \
    --cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).