All of lore.kernel.org
 help / color / mirror / Atom feed
* commit ("1e860048c53ee gcc-plugins: simplify GCC plugin-dev capability test")
@ 2021-01-06 14:44 Dinh Nguyen
  2021-01-06 23:14 ` Kees Cook
  0 siblings, 1 reply; 3+ messages in thread
From: Dinh Nguyen @ 2021-01-06 14:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: masahiroy, keescook

Hi Masahiro,

With v5.11-rc1 and commit("1e860048c53ee gcc-plugins: simplify GCC 
plugin-dev capability test"), I get this error for my arm 
socfpga_defconfig build. I have been building the kernel the same way 
for many years now. Do you know what I might be doing wrong?

$ make ARCH=arm CROSS_COMPILE=${CROSS_COMPILE}
   SYNC    include/config/auto.conf.cmd
   SYSHDR  arch/arm/include/generated/uapi/asm/unistd-common.h
   SYSHDR  arch/arm/include/generated/uapi/asm/unistd-oabi.h
   SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h
   REMOVE  arch/arm/include/generated/asm/mm-arch-hooks.h
   HOSTCXX scripts/gcc-plugins/arm_ssp_per_task_plugin.so
In file included from scripts/gcc-plugins/gcc-common.h:103:0,
                  from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
/home/dinguyen/linux_dev/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.2.1/plugin/include/builtins.h:23:10: 
fatal error: mpc.h: No such file or directory
#include <mpc.h>
           ^~~~~~~
compilation terminated.
scripts/gcc-plugins/Makefile:47: recipe for target 
'scripts/gcc-plugins/arm_ssp_per_task_plugin.so' failed
make[2]: *** [scripts/gcc-plugins/arm_ssp_per_task_plugin.so] Error 1
scripts/Makefile.build:496: recipe for target 'scripts/gcc-plugins' failed
make[1]: *** [scripts/gcc-plugins] Error 2
Makefile:1190: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
   UPD     include/config/kernel.release

Thanks,
Dinh

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: commit ("1e860048c53ee gcc-plugins: simplify GCC plugin-dev capability test")
  2021-01-06 14:44 commit ("1e860048c53ee gcc-plugins: simplify GCC plugin-dev capability test") Dinh Nguyen
@ 2021-01-06 23:14 ` Kees Cook
  2021-01-07 14:45   ` Dinh Nguyen
  0 siblings, 1 reply; 3+ messages in thread
From: Kees Cook @ 2021-01-06 23:14 UTC (permalink / raw)
  To: Dinh Nguyen; +Cc: linux-kernel, masahiroy

On Wed, Jan 06, 2021 at 08:44:58AM -0600, Dinh Nguyen wrote:
> Hi Masahiro,
> 
> With v5.11-rc1 and commit("1e860048c53ee gcc-plugins: simplify GCC
> plugin-dev capability test"), I get this error for my arm socfpga_defconfig
> build. I have been building the kernel the same way for many years now. Do
> you know what I might be doing wrong?
> 
> $ make ARCH=arm CROSS_COMPILE=${CROSS_COMPILE}
>   SYNC    include/config/auto.conf.cmd
>   SYSHDR  arch/arm/include/generated/uapi/asm/unistd-common.h
>   SYSHDR  arch/arm/include/generated/uapi/asm/unistd-oabi.h
>   SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h
>   REMOVE  arch/arm/include/generated/asm/mm-arch-hooks.h
>   HOSTCXX scripts/gcc-plugins/arm_ssp_per_task_plugin.so
> In file included from scripts/gcc-plugins/gcc-common.h:103:0,
>                  from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
> /home/dinguyen/linux_dev/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.2.1/plugin/include/builtins.h:23:10:
> fatal error: mpc.h: No such file or directory
> #include <mpc.h>
>           ^~~~~~~
> compilation terminated.
> scripts/gcc-plugins/Makefile:47: recipe for target
> 'scripts/gcc-plugins/arm_ssp_per_task_plugin.so' failed
> make[2]: *** [scripts/gcc-plugins/arm_ssp_per_task_plugin.so] Error 1
> scripts/Makefile.build:496: recipe for target 'scripts/gcc-plugins' failed
> make[1]: *** [scripts/gcc-plugins] Error 2
> Makefile:1190: recipe for target 'scripts' failed
> make: *** [scripts] Error 2
> make: *** Waiting for unfinished jobs....
>   UPD     include/config/kernel.release
> 
> Thanks,
> Dinh

Hi! Thanks for the report. Other folks have also encountered this,
and it appears to be a problem with distro packaging of the gcc plugin
development packages. You'll need to install the GNU multiprecision
libraries ("gmp-devel" on most rpm-based systems, "libgmp-dev" on most
debian systems)[1].

Hopefully that'll work!

-Kees

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

-- 
Kees Cook

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: commit ("1e860048c53ee gcc-plugins: simplify GCC plugin-dev capability test")
  2021-01-06 23:14 ` Kees Cook
@ 2021-01-07 14:45   ` Dinh Nguyen
  0 siblings, 0 replies; 3+ messages in thread
From: Dinh Nguyen @ 2021-01-07 14:45 UTC (permalink / raw)
  To: Kees Cook; +Cc: linux-kernel, masahiroy



On 1/6/21 5:14 PM, Kees Cook wrote:
> On Wed, Jan 06, 2021 at 08:44:58AM -0600, Dinh Nguyen wrote:
>> Hi Masahiro,
>>
>> With v5.11-rc1 and commit("1e860048c53ee gcc-plugins: simplify GCC
>> plugin-dev capability test"), I get this error for my arm socfpga_defconfig
>> build. I have been building the kernel the same way for many years now. Do
>> you know what I might be doing wrong?
>>
>> $ make ARCH=arm CROSS_COMPILE=${CROSS_COMPILE}
>>    SYNC    include/config/auto.conf.cmd
>>    SYSHDR  arch/arm/include/generated/uapi/asm/unistd-common.h
>>    SYSHDR  arch/arm/include/generated/uapi/asm/unistd-oabi.h
>>    SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h
>>    REMOVE  arch/arm/include/generated/asm/mm-arch-hooks.h
>>    HOSTCXX scripts/gcc-plugins/arm_ssp_per_task_plugin.so
>> In file included from scripts/gcc-plugins/gcc-common.h:103:0,
>>                   from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
>> /home/dinguyen/linux_dev/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.2.1/plugin/include/builtins.h:23:10:
>> fatal error: mpc.h: No such file or directory
>> #include <mpc.h>
>>            ^~~~~~~
>> compilation terminated.
>> scripts/gcc-plugins/Makefile:47: recipe for target
>> 'scripts/gcc-plugins/arm_ssp_per_task_plugin.so' failed
>> make[2]: *** [scripts/gcc-plugins/arm_ssp_per_task_plugin.so] Error 1
>> scripts/Makefile.build:496: recipe for target 'scripts/gcc-plugins' failed
>> make[1]: *** [scripts/gcc-plugins] Error 2
>> Makefile:1190: recipe for target 'scripts' failed
>> make: *** [scripts] Error 2
>> make: *** Waiting for unfinished jobs....
>>    UPD     include/config/kernel.release
>>
>> Thanks,
>> Dinh
> 
> Hi! Thanks for the report. Other folks have also encountered this,
> and it appears to be a problem with distro packaging of the gcc plugin
> development packages. You'll need to install the GNU multiprecision
> libraries ("gmp-devel" on most rpm-based systems, "libgmp-dev" on most
> debian systems)[1].
> 
> Hopefully that'll work!
> 

Thanks, that worked! I also had to install libmpc-dev as well.

Dinh

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-07 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 14:44 commit ("1e860048c53ee gcc-plugins: simplify GCC plugin-dev capability test") Dinh Nguyen
2021-01-06 23:14 ` Kees Cook
2021-01-07 14:45   ` Dinh Nguyen

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.