How to fix UML build because of missing gcc-plugins?
Hi,
UML fails to build with gcc-plugins because the gcc-plugins doesn't get build before the archheaders:
arch/um/Makefile:115: target 'archheaders' does not exist make KBUILD_SRC= ARCH=x86 archheadersarch/x86/Makefile:228: target 'archheaders' does not exist make -f ./scripts/Makefile.build obj=arch/x86/entry/syscalls all arch/x86/entry/syscalls/Makefile:69: update target 'all' due to:arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h :
Makefile:1155: update target '__headers' due to:include/generated/uapi/linux/version.h scripts_basic asm-generic archheaders archscripts
make -f ./scripts/Makefile.build obj=scripts build_unifdef scripts/Makefile.host:107: update target 'scripts/unifdef' due to:
FORCE
set -e; echo ' gcc -Wp,-MD,scripts/.unifdef.d -Wall -Wmissing-
prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89 -
I./tools/include -o scripts/unifdef scripts/unifdef.c '; gcc -Wp,- MD,scripts/.unifdef.d -Wall -Wmissing-prototypes -Wstrict-prototypes
-O2 -fomit-frame-pointer -std=gnu89 -I./tools/include -oscripts/unifdef scripts/unifdef.c ; scripts/basic/fixdep scripts/.unifdef.d scripts/unifdef 'gcc -Wp,-MD,scripts/.unifdef.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
-std=gnu89 -I./tools/include -o scripts/unifdef scripts/unifdef.c '
Quoted 1 line
scripts/.unifdef.tmp; rm -fscripts/.unifdef.d; mv -f
scripts/.unifdef.tmp scripts/.unifdef.cmd;
gcc -Wp,-MD,scripts/.unifdef.d -Wall -Wmissing-prototypes -Wstrict-
prototypes -O2 -fomit-frame-pointer -std=gnu89 -I./tools/include -oscripts/unifdef scripts/unifdef.cscripts/Makefile:35: update target 'build_unifdef' due to:scripts/unifdef
:arch/um/Makefile:150: update target 'arch/x86/um/user-offsets.s' due
to: __headers FORCE
make -f ./scripts/Makefile.build obj=arch/x86/um arch/x86/um/user- offsets.sscripts/Makefile.build:154: update target 'arch/x86/um/user-offsets.s' due to: arch/x86/um/user-offsets.c FORCE
It looks like arch/um/Makefile calls recursivley archheaders on x86:
114 archheaders:
115 $(Q)$(MAKE) KBUILD_SRC= ARCH=$(HEADER_ARCH) archheaders
and then this rule gets build:
149 $(HOST_DIR)/um/user-offsets.s: __headers FORCE
150 $(Q)$(MAKE) $(build)=$(HOST_DIR)/um $@
but the target gcc-plugins is missing.
any ideas whats missing here?
with kind regards
thomas