Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744076 - sys-kernel/gentoo-kernel-5.8.10[savedconfig] fails to compile: No rule to make target 'modules_prepare'
Summary: sys-kernel/gentoo-kernel-5.8.10[savedconfig] fails to compile: No rule to mak...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2020-09-22 09:22 UTC by Jaak Ristioja
Modified: 2020-10-02 06:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2020-09-22 09:22:14 UTC
#
# configuration written to .config
#
make[1]: Leaving directory '/var/tmp/portage/sys-kernel/gentoo-kernel-5.8.10/work/modprep'
make -j5 O=/var/tmp/portage/sys-kernel/gentoo-kernel-5.8.10/work/modprep V=1 HOSTCC=x86_64-pc-linux-gnu-gcc HOSTCXX=x86_64-pc-linux-gnu-g++ 'HOSTCFLAGS=-mtune=native -O2 -pipe' 'HOSTLDFLAGS=-Wl,-O1 -Wl,--as-needed' CROSS_COMPILE=x86_64-pc-linux-gnu- AS=x86_64-pc-linux-gnu-as CC=x86_64-pc-linux-gnu-gcc LD=x86_64-pc-linux-gnu-ld.bfd AR=x86_64-pc-linux-gnu-ar NM=x86_64-pc-linux-gnu-nm STRIP=: OBJCOPY=x86_64-pc-linux-gnu-objcopy OBJDUMP=x86_64-pc-linux-gnu-objdump ARCH=x86 modules_prepare 
make -C /var/tmp/portage/sys-kernel/gentoo-kernel-5.8.10/work/modprep -f /var/tmp/portage/sys-kernel/gentoo-kernel-5.8.10/work/linux-5.8/Makefile modules_prepare
make[1]: Entering directory '/var/tmp/portage/sys-kernel/gentoo-kernel-5.8.10/work/modprep'
make[1]: *** No rule to make target 'modules_prepare'.  Stop.
make[1]: Leaving directory '/var/tmp/portage/sys-kernel/gentoo-kernel-5.8.10/work/modprep'
make: *** [Makefile:185: __sub-make] Error 2

Maybe gentoo-kernel incorrectly assumes that all configurations have enabled support for loadable modules (CONFIG_MODULES)?
Comment 1 Georgy Yakovlev gentoo-dev 2020-09-22 10:55:33 UTC
kernel-build.eclass ineed assumes that modules enabled.
Comment 2 Ionen Wolkens 2020-09-22 12:47:02 UTC
Had the same issue on my embedded system with no modules, ended up enabling it anyway but it wasn't ideal.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-10-02 06:47:23 UTC
A patch (to kernel-build.eclass) would be helpful.