The plugins are not necessary the first thing that is build, hence other parts may fail due to plugins being not yet available:
scripts/kconfig/conf --silentoldconfig Kconfig
HOSTCXX -fPIC tools/gcc/colorize_plugin.o
HOSTCXX -fPIC tools/gcc/latent_entropy_plugin.o
cc1: error: cannot load plugin /root/build-3.2.55-hardened-r3/tools/gcc/colorize_plugin.so
/root/build-3.2.55-hardened-r3/tools/gcc/colorize_plugin.so: cannot open shared object file: No such file or directory
cc1: error: cannot load plugin /root/build-3.2.55-hardened-r3/tools/gcc/structleak_plugin.so
/root/build-3.2.55-hardened-r3/tools/gcc/structleak_plugin.so: cannot open shared object file: No such file or directory
cc1: error: cannot load plugin /root/build-3.2.55-hardened-r3/tools/gcc/latent_entropy_plugin.so
/root/build-3.2.55-hardened-r3/tools/gcc/latent_entropy_plugin.so: cannot open shared object file: No such file or directory
cc1: error: cannot load plugin /root/build-3.2.55-hardened-r3/tools/gcc/randomize_layout_plugin.so
/root/build-3.2.55-hardened-r3/tools/gcc/randomize_layout_plugin.so: cannot open shared object file: No such file or directory
make: *** [arch/ia64/kernel/nr-irqs.s] Error 1
make: *** [make_nr_irqs_h] Error 2
make: *** Waiting for unfinished jobs....
HOSTCXX -fPIC tools/gcc/structleak_plugin.o
HOSTCXX -fPIC tools/gcc/randomize_layout_plugin.o
HOSTLLD -shared tools/gcc/latent_entropy_plugin.so
HOSTLLD -shared tools/gcc/colorize_plugin.so
HOSTLLD -shared tools/gcc/structleak_plugin.so
HOSTLLD -shared tools/gcc/randomize_layout_plugin.so
make: *** [sub-make] Error 2
make: *** [all] Error 2
This appears to be an IA64 only bug. Are you still hitting this?
The machine with the hardened kernel died a few months ago. So, no, I am not hitting that anymore. I am migrating away from Itanium at the moment, due to the age of my machines and ia64 support status.
(In reply to Dennis Schridde from comment #2)
> The machine with the hardened kernel died a few months ago. So, no, I am not
> hitting that anymore. I am migrating away from Itanium at the moment, due to
> the age of my machines and ia64 support status.
Thanks Dennis. I tried to keep up with ia64 but really couldn't without any equipment to test on.
(In reply to Anthony Basile from comment #3)
> I tried to keep up with ia64 but really couldn't without any
> equipment to test on.
Oh, I am not blaming you. All kinds of software is breaking on ia64, and I just do not have the time to dive into it at the moment.
this appears to be some make target dependency issue that apparently manifests on ia64 but not elsewhere. a quick look at around the dependency chain of nr-irqs.s shows that make_nr_irqs_h is a dependency of archprepare on ia64 but so is scripts_basic (whose dependency is gcc-plugins) and there's no ordering between these two. just for the record in case anyone else bumps into this in the future, perhaps try the following patch and let me know if it helped (i'll carry it in PaX regardless):
@@ -101,5 +101,6 @@
archprepare: make_nr_irqs_h FORCE
PHONY += make_nr_irqs_h FORCE
+make_nr_irqs_h: KBUILD_CFLAGS := $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS))
$(Q)$(MAKE) $(build)=arch/ia64/kernel include/generated/nr-irqs.h