]> git.baikalelectronics.ru Git - kernel.git/commit
docs/core-api: expand Fedora instructions for GCC plugins
authorRobert Elliott <elliott@hpe.com>
Sat, 27 Aug 2022 19:38:36 +0000 (14:38 -0500)
committerJonathan Corbet <corbet@lwn.net>
Tue, 27 Sep 2022 19:21:44 +0000 (13:21 -0600)
commit6448ce3bb027ade9ac82a625498085d69171be8f
tree9945bae34f699f8f992fa17743d31cdb3c71e665
parent3040d785066920865c55ac7fe0b11321c744d2ff
docs/core-api: expand Fedora instructions for GCC plugins

In Fedora 36, cross-compiling an allmodconfig configuration
for other architectures on x86 fails with this problem:

In file included from ../scripts/gcc-plugins/gcc-common.h:95,
                 from ../scripts/gcc-plugins/latent_entropy_plugin.c:78:
/usr/lib/gcc/aarch64-linux-gnu/12/plugin/include/builtins.h:23:10: fatal
error: mpc.h: No such file or directory
   23 | #include <mpc.h>
      |          ^~~~~~~
compilation terminated.

In that distro, that header file is available in the separate
libmpc-devel package.

Although future versions of Fedora might correctly mark
that dependency, mention this additional package.

To help detect such problems ahead of time, describe the
    gcc -print-file-name=plugin
command that is used by scripts/gcc-plugins/Kconfig to detect
plugins [1].

[1] https://lore.kernel.org/lkml/CAHk-=wjjiYjCp61gdAMpDOsUBU-A2hFFKJoVx5VAC7yV4K6WYg@xxxxxxxxxxxxxx/

Fixes: c11c67d5d51a77d ("docs/core-api: Add Fedora instructions for GCC plugins");
Signed-off-by: Robert Elliott <elliott@hpe.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220827193836.2582079-1-elliott@hpe.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/kbuild/gcc-plugins.rst