Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39495 - genkernel fails make modules_install due to -j2
Summary: genkernel fails make modules_install due to -j2
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-26 13:32 UTC by Jeroen Roos
Modified: 2004-06-23 13:47 UTC (History)
0 users

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 Jeroen Roos 2004-01-26 13:32:45 UTC
Running genkernel-3.0.1_beta6 fails with the following error:
* gen_die(): compile of modules_install failed





Reproducible: Always
Steps to Reproduce:
1. Run genkernel all
2. Wait
Actual Results:  
genkernel stops with an error

Expected Results:  
finish it's job

A tail from /var/log/genkernel shows:

COMMAND: make -j2 modules_install
make -C  kernel modules_install
make[1]: Entering directory `/usr/src/linux-2.4.22-gentoo-r5/kernel'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/kernel'
make -C  drivers modules_install
make[1]: Entering directory `/usr/src/linux-2.4.22-gentoo-r5/drivers'
make -C acpi modules_install
make[2]: Entering directory `/usr/src/linux-2.4.22-gentoo-r5/drivers/acpi'
mkdir -p /lib/modules/2.4.22-gentoo-r5/kernel/drivers/acpi/
cp ac.o battery.o button.o fan.o processor.o thermal.o toshiba_acpi.o /lib/modul
es/2.4.22-gentoo-r5/kernel/drivers/acpi/
cp: `/lib/modules/2.4.22-gentoo-r5/kernel/drivers/acpi/': specified destination 
directory does not exist
Try `cp --help' for more information.
make[2]: *** [_modinst__] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers/acpi'
make[1]: *** [_modinst_acpi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers'
make: *** [_modinst_drivers] Error 2
make: *** Waiting for unfinished jobs....
make: *** Waiting for unfinished jobs....
make: *** Waiting for unfinished jobs....
make: *** Waiting for unfinished jobs....
* gen_die(): compile of modules_install failed

After I removed the ${MAKE_OPTS} from compile_generic() in gen_compile.sh, it
works fine. So I guess the -j2 is causing the troubles (probably because one
thread 'overtakes' the other one, and tries to create files in non-existant
directories, that the other one was supposed to be creating first). Also, this
-j2 is a bit strange, since my /etc/make.conf says "-j6".
Comment 1 Corey Betka 2004-01-28 19:14:22 UTC
The make options are coming from /usr/share/genkernel/{arch}/config.sh, /usr/share/genkernel/x86/config.sh in my case.

I had the same results with MAKEOPTS="-j2", make modules_install failed. Without -j2, it runs fine.
Comment 2 Jose Gonzalez Gomez 2004-02-06 16:45:10 UTC
I'm getting the same on genkernel 3.0.1_beta9
Comment 3 Brad House 2004-02-07 06:56:05 UTC
ok, fixed in CVS, expect the next release to be good.
Comment 4 Jeroen Roos 2004-06-23 13:47:57 UTC
Haven't seen problem anymore. Thanks for fixing.