From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [android-common:android15-6.6 13711/13775] Makefile:1012: *** "Enabling Rust and CFI silently changes the KMI.". Stop.
Date: Wed, 10 Jul 2024 13:42:23 +0800 [thread overview]
Message-ID: <202407101315.jpMVTUp9-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "only Makefile file changed"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: cros-kernel-buildreports@googlegroups.com
tree: https://android.googlesource.com/kernel/common android15-6.6
head: c7b8a41d0f4f3bcecca0ce69965792c0fad27835
commit: 691810c3b9c0c8567ce2f409048b5db2d8890af5 [13711/13775] ANDROID: Makefile: Fail the build if RUST and CFI are both enabled
:::::: branch date: 7 hours ago
:::::: commit date: 7 days ago
config: x86_64-randconfig-123-20240710 (https://download.01.org/0day-ci/archive/20240710/202407101315.jpMVTUp9-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240710/202407101315.jpMVTUp9-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202407101315.jpMVTUp9-lkp@intel.com/
All errors (new ones prefixed by >>):
>> Makefile:1012: *** "Enabling Rust and CFI silently changes the KMI.". Stop.
make[1]: *** [Makefile:252: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:252: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_MIPI_DSI
Depends on [n]: HAS_IOMEM [=y] && DRM [=n]
Selected by [y]:
- GKI_HIDDEN_DRM_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_JACK
Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_VMASTER
Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for CAN_RX_OFFLOAD
Depends on [n]: NETDEVICES [=y] && CAN_DEV [=n] && CAN_NETLINK [=n]
Selected by [y]:
- GKI_HIDDEN_MCP251XFD_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_PCM_IEC958
Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_SOC_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV
Depends on [n]: SOUND [=y] && SND [=n] && SND_JACK [=y]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_PCM_ELD
Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_INTEL_NHLT
Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y] && ACPI [=y]
vim +1012 Makefile
dc5723b02e523b Sami Tolvanen 2020-12-11 1003
cf68fffb66d60d Sami Tolvanen 2021-04-08 1004 ifdef CONFIG_CFI_CLANG
89245600941e4e Sami Tolvanen 2022-09-08 1005 CC_FLAGS_CFI := -fsanitize=kcfi
37e90c8aef834f Matthew Maurer 2023-09-15 1006 ifdef CONFIG_RUST
37e90c8aef834f Matthew Maurer 2023-09-15 1007 # If Rust is enabled, this flag is required to support cross-language
37e90c8aef834f Matthew Maurer 2023-09-15 1008 # integer types.
37e90c8aef834f Matthew Maurer 2023-09-15 1009 # This addresses the problem that on e.g. i686, int != long, and Rust
37e90c8aef834f Matthew Maurer 2023-09-15 1010 # maps both to i32.
37e90c8aef834f Matthew Maurer 2023-09-15 1011 # See https://rcvalle.com/docs/rust-cfi-design-doc.pdf for details.
691810c3b9c0c8 Will Deacon 2024-07-03 @1012 $(error "Enabling Rust and CFI silently changes the KMI.")
37e90c8aef834f Matthew Maurer 2023-09-15 1013 CC_FLAGS_CFI += -fsanitize-cfi-icall-experimental-normalize-integers
37e90c8aef834f Matthew Maurer 2023-09-15 1014 RS_FLAGS_CFI := -Zsanitizer=kcfi -Zsanitizer-cfi-normalize-integers
37e90c8aef834f Matthew Maurer 2023-09-15 1015 KBUILD_RUSTFLAGS += $(RS_FLAGS_CFI)
37e90c8aef834f Matthew Maurer 2023-09-15 1016 export RS_FLAGS_CFI
37e90c8aef834f Matthew Maurer 2023-09-15 1017 endif
cf68fffb66d60d Sami Tolvanen 2021-04-08 1018 KBUILD_CFLAGS += $(CC_FLAGS_CFI)
cf68fffb66d60d Sami Tolvanen 2021-04-08 1019 export CC_FLAGS_CFI
cf68fffb66d60d Sami Tolvanen 2021-04-08 1020 endif
cf68fffb66d60d Sami Tolvanen 2021-04-08 1021
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-07-10 5:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202407101315.jpMVTUp9-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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.