[Buildroot] compiler plugins & compiling the kernel
Peter Korsgaard
peter at korsgaard.com
Wed Aug 24 09:34:17 UTC 2016
>>>>> "Arnout" == Arnout Vandecappelle <arnout at mind.be> writes:
Hi,
>>>>> linux-headers 3.14.51 Configuring...
>> ...
>> make[2]: Entering directory ... build/linux-headers-3.14.51
>> Makefile:652 *** Your gcc installation does not support plugins. If
>> the necessary headers for plugin support are missing, they should be
>> installed. On Debian, apt-get install gcc-<ver>-plugin-dev. If you
>> choose to ignore this error and...
> Ah, this is annoying...
> When installing linux-headers, we don't pass the cross-compilation arguments,
> because the cross-compiler doesn't exist yet at that point. So the installation
> will use the host compiler instead for that check. Which is of course wrong.
> Well, actually it's a bug in gr-security, because this check shouldn't be done
> for install_headers (gcc isn't even called).
Yes, to me this is really a bug in gr-security, and not much we can do
about it.
>>>> You're not correct. Support for plugins should be added to the
>>>> cross-compiler if you need plugin support to build your kernel.
>>>>
>>>
>>> That doesn't appear to be an option in buildroot.
> Well, we pass --enable-plugins when BR2_GCC_ENABLE_LTO is set. We don't pass
> --disable-plugins so it really depends on the gcc defaults. But then, we don't
> install the plugin development headers to HOST_DIR, so it will probably be
> difficult to actually compile a plugin.
But patches are welcome!
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list