Mailing List Archive

*** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl'
I'm compiling a new system (in (chroot) livecd) and trying to compile a new kernel:
Running:
make && make modules_install
SYNC include/config/auto.conf
HOSTCC scripts/kconfig/conf.o
HOSTLD scripts/kconfig/conf
make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop.
make: *** [arch/x86/Makefile:242: archheaders] Error 2

kerenl is: linux-6.1.60-gentoo-dist

--
Thelma
Re: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl' [ In reply to ]
On Mon, Dec 04, 2023 at 05:48:41PM -0700, thelma@sys-concept.com wrote:
> I'm compiling a new system (in (chroot) livecd) and trying to compile a new kernel:
> Running:
> make && make modules_install
> SYNC include/config/auto.conf
> HOSTCC scripts/kconfig/conf.o
> HOSTLD scripts/kconfig/conf
> make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop.
> make: *** [arch/x86/Makefile:242: archheaders] Error 2
>
> kerenl is: linux-6.1.60-gentoo-dist

That "gentoo-dist" indicates that it is a distribution kernel[1], are
you trying to build the minimal sources provided by it? It's only
intended to build out-of-tree modules and/or things like menuconfig
given the kernel itself is built by portage.

Did you mean to install sys-kernel/gentoo-sources rather than
gentoo-kernel?

[1] https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
--
ionen
Re: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl' [ In reply to ]
On 12/5/23 01:06, Ionen Wolkens wrote:
> On Mon, Dec 04, 2023 at 05:48:41PM -0700, thelma@sys-concept.com wrote:
>> I'm compiling a new system (in (chroot) livecd) and trying to compile a new kernel:
>> Running:
>> make && make modules_install
>> SYNC include/config/auto.conf
>> HOSTCC scripts/kconfig/conf.o
>> HOSTLD scripts/kconfig/conf
>> make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop.
>> make: *** [arch/x86/Makefile:242: archheaders] Error 2
>>
>> kerenl is: linux-6.1.60-gentoo-dist
>
> That "gentoo-dist" indicates that it is a distribution kernel[1], are
> you trying to build the minimal sources provided by it? It's only
> intended to build out-of-tree modules and/or things like menuconfig
> given the kernel itself is built by portage.
>
> Did you mean to install sys-kernel/gentoo-sources rather than
> gentoo-kernel?
>
> [1] https://wiki.gentoo.org/wiki/Project:Distribution_Kernel

You are correct, thanks.
Emerging linux-6.1.57-gentoo solved the problem