Re: building Linux for ARMv7 with llvm breaks sparse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31.03.2022 12:22:08, Linus Torvalds wrote:
> On Thu, Mar 31, 2022 at 12:17 PM Linus Torvalds
> <torvalds@xxxxxxxxxxxxxxxxxxxx> 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: signature.asc
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux