Linux-Sparse Archive mirror
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: linux-sparse@vger.kernel.org
Subject: building Linux for ARMv7 with llvm breaks sparse
Date: Thu, 31 Mar 2022 13:01:18 +0200	[thread overview]
Message-ID: <20220331110118.vr4miyyytqlssjoi@pengutronix.de> (raw)

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

Hello,

building a 32bit ARM kernel with llvm (LLVM=1 LLVM_IAS=1) and C=1 breaks
current sparse:

| sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise
| -Wno-return-void -Wno-unknown-attribute -D__ARMEL__ -D__arm__
| --arch=arm -mlittle-endian -m32 -Wp,-MMD,scripts/mod/.empty.o.d
| -nostdinc -I/path/to/linux/arch/arm/include
| -I./arch/arm/include/generated
| -I/path/to/linux/include -I./include
| -I/path/to/linux/arch/arm/include/uapi
| -I./arch/arm/include/generated/uapi
| -I/path/to/linux/include/uapi
| -I./include/generated/uapi -include
| /path/to/linux/include/linux/compiler-version.h
| -include /path/to/linux/include/linux/kconfig.h
| -include
| /path/to/linux/include/linux/compiler_types.h
| -D__KERNEL__ -mlittle-endian -Qunused-arguments
| -fmacro-prefix-map=/path/to/linux/=
| -DKBUILD_EXTRA_WARN1 -Wall -Wundef -Werror=strict-prototypes
| -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE
| -Werror=implicit-function-declaration -Werror=implicit-int
| -Werror=return-type -Wno-format-security -std=gnu11
| --target=arm-linux-gnueabi -fintegrated-as
| -Werror=unknown-warning-option -Werror=ignored-optimization-argument
| -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mfpu=vfp -funwind-tables
| -meabi gnu -marm -Wa,-W -D__LINUX_ARM_ARCH__=6 -march=armv6k
  ^^^^^^^^^^
| -mtune=arm1136j-s -msoft-float -Uarm -fno-delete-null-pointer-checks
| -Wno-frame-address -Wno-address-of-packed-member -O2
| -Wframe-larger-than=1024 -fstack-protector-strong -Werror -Wno-gnu
| -mno-global-merge -Wno-unused-but-set-variable
| -Wno-unused-const-variable -fomit-frame-pointer
| -fno-stack-clash-protection -Wdeclaration-after-statement -Wvla
| -Wno-pointer-sign -Wcast-function-type -fno-strict-overflow
| -fno-stack-check -Werror=date-time -Werror=incompatible-pointer-types
| -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations
| -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition
| -Wmissing-include-dirs -Wunused-but-set-variable
| -Wunused-const-variable -Wno-missing-field-initializers
| -Wno-sign-compare -Wno-type-limits -Wno-shift-negative-value -g
| -gdwarf-4 -I /path/to/linux/scripts/mod -I
| ./scripts/mod -DKBUILD_MODFILE='"scripts/mod/empty"'
| -DKBUILD_BASENAME='"empty"' -DKBUILD_MODNAME='"empty"'
| -D__KBUILD_MODNAME=kmod_empty
| /path/to/linux/scripts/mod/empty.c
| 
| No such file: gnu

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 11:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31 11:01 Marc Kleine-Budde [this message]
2022-03-31 19:17 ` building Linux for ARMv7 with llvm breaks sparse Linus Torvalds
2022-03-31 19:22   ` Linus Torvalds
2022-03-31 19:31     ` Marc Kleine-Budde
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=20220331110118.vr4miyyytqlssjoi@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=linux-sparse@vger.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 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 read-only IMAP folder(s) and NNTP newsgroup(s).