after emerging =sys-kernel/vanilla-sources-4.19.254 # cd /usr/src/linux-4.19.254 # make menuconfig Makefile:547: arch/amd64/Makefile: No such file or directory make: *** No rule to make target 'arch/amd64/Makefile'. Stop. It looks like the directory arch/amd64 or arch/x86_64 is missing in the upstream tarball but I don't get why
The upstream tarball correctly doesn't have arch/amd64/Makefile as x86_64 get translated to x86 by the makefile is this a cross compilation environment for amd64? can you give the env file ? I cannot reproduce your problem on my environment you could do make ARCH=x86_64 menuconfig
for example on 5.19: ➜ linux-5.19 make ARCH=x86_64 menuconfig HOSTCC scripts/basic/fixdep UPD scripts/kconfig/mconf-cfg HOSTCC scripts/kconfig/mconf.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/inputbox.o HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/util.o HOSTCC scripts/kconfig/lxdialog/yesno.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTLD scripts/kconfig/mconf # # using defaults found in arch/x86/configs/x86_64_defconfig # Your configuration changes were NOT saved. ➜ linux-5.19 make ARCH=amd64 menuconfig Makefile:622: arch/amd64/Makefile: No such file or directory make: *** No rule to make target 'arch/amd64/Makefile'. Stop.
Sorry for the noise, it was my bad because I have ARCH=amd64 in my bashrc.