Description of Problem: After performing a clean install of RH 8.0 I got the following "make" error when attempting to compile a custom kernel: make[2]:***[loop.0] Error1 make[2]: Leaving directory '/usr/src/linux-2.4.18-14/drivers/block' make[1]:***[_modsubdir_block] Error 2 make[1]: Leaving directory '/usr/linux-2.4.18-14/drivers' make:***[_mod_drivers] Error 2 I tried reconfiguring the kernel without the "loopback" module then recompiling. I got the same type of error, albeit with reference to a different module. Version-Release number of selected component (if applicable): How Reproducible: Compile a custom kernel Steps to Reproduce: 1. make dep 2. make bzImage 3. make modules Actual Results: Error and program termination Expected Results: Successful compilation of modules Additional Information:
Please prepend `make mrproper` to your list of build steps (even before any configuration steps), and also include here the steps that you're using to configure the kernel build. Setting compontent to kernel, this looks like an issue specific to the kernel-source package, not to make.
need a few more lines above the error...
I installed redhat-8 + the new kernel (2.4.18-17) kernel + source. I had the same problem, a CIPE related source file, an ATM related source file, and the loop related source file all failed to build with a fatal error. make mrproper fixed this for me.
I just tried to compile a 2.4.18-18.8.0 and get the same erros (CIPE module) If I do a "make mrproper" before the compile it will fail to do "make dep" rigth at the begining. To reproduce. 1) install kernel-source 2) make mrproper 3) cp configs/kernel-2.4.18-i686.config .config 4) make dep results in [root@soliton linux-2.4.18-18.8.0]# make dep make[1]: Entering directory `/usr/src/linux-2.4.18-18.8.0/arch/i386/boot' make[1]: Nothing to be done for `dep'. make[1]: Leaving directory `/usr/src/linux-2.4.18-18.8.0/arch/i386/boot' scripts/mkdep -- init/*.c > .depend scripts/mkdep -- `find /usr/src/linux-2.4.18-18.8.0/include/asm /usr/src/linux-2.4.18-18.8.0/include/linux /usr/src/linux-2.4.18-18.8.0/include/scsi /usr/src/linux-2.4.18-18.8.0/include/net /usr/src/linux-2.4.18-18.8.0/include/math-emu -name SCCS -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend find: /usr/src/linux-2.4.18-18.8.0/include/asm: No such file or directory find: /usr/src/linux-2.4.18-18.8.0/include/math-emu: No such file or directory make _sfdep_kernel _sfdep_drivers _sfdep_mm _sfdep_fs _sfdep_net _sfdep_ipc _sfdep_lib _sfdep_abi _sfdep_crypto _sfdep_arch/i386/kernel _sfdep_arch/i386/mm _sfdep_arch/i386/lib _FASTDEP_ALL_SUB_DIRS="kernel drivers mm fs net ipc lib abi crypto arch/i386/kernel arch/i386/mm arch/i386/lib" make[1]: Entering directory `/usr/src/linux-2.4.18-18.8.0' make -C kernel fastdep make[2]: Entering directory `/usr/src/linux-2.4.18-18.8.0/kernel' make[2]: *** No rule to make target `/usr/src/linux-2.4.18-18.8.0/include/linux/autoconf.h', needed by `/usr/src/linux-2.4.18-18.8.0/include/linux/modules/signal.ver'. Stop. make[2]: Leaving directory `/usr/src/linux-2.4.18-18.8.0/kernel' make[1]: *** [_sfdep_kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.18-18.8.0' make: *** [dep-files] Error 2
To reproduce. 1) install kernel-source 2) make mrproper 3) cp configs/kernel-2.4.18-i686.config .config 4) make dep you forgot a "make oldconfig" (or xconfig or menuconfig etc) between steps 3 and 4
I've tested all of the above, and following the full set of steps suggested by Arjan results in a sane build. Resolving as not a bug, the kernel-source package behaves as intended.