LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Problems with make dep (https://www.linuxquestions.org/questions/mandriva-30/problems-with-make-dep-132169/)

chichibabin 01-06-2004 04:27 PM

Problems with make dep
 
Hi
I am trying to recompile a mandrake custom kernel (2.4.22-10mdk) as provided by mandrake 9.2. To start with I am trying to compile the kernel using the /boot/config-linux-2.4.22-10 file copied over to the source directory and renamed to .config. When I run make dep I get the following error:

make -C 3rdparty fastdep
make[2]: Entering directory `/usr/src/linux-2.4.22-10mdk/3rdparty'
make[2]: *** No rule to make target `fastdep'. Stop.
make[2]: Leaving directory `/usr/src/linux-2.4.22-10mdk/3rdparty'
make[1]: *** [_sfdep_3rdparty] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-10mdk'
make: *** [dep-files] Error 2

When I do the same with a linux-2.4.24 source from kernel.org I get this error:

make -C kernel fastdep
make[2]: Entering directory `/usr/src/linux-2.4.24/kernel'
make[2]: *** No rule to make target `/usr/src/linux-2.4.24/include/linux/autoconf.h', needed by `/usr/src/linux-2.4.24/include/linux/modules/signal.ver'. Stop.
make[2]: Leaving directory `/usr/src/linux-2.4.24/kernel'
make[1]: *** [_sfdep_kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.24'
make: *** [dep-files] Error 2

It's probably worth mentioning that I installed the custom source code from the corresponding kernel-source rpm.

Any ides?
Sat

chichibabin 01-06-2004 04:29 PM

It seems that whatever source or config I use I get an error of some sort??

Gary987 01-07-2004 04:20 PM

Mandrake kernel sources seem to be a real pain if you want to customize them.

I think I had problems getting the particular kernel to compile correctly. I would go with Mandrake linux-2.4.22-21mdk.

Anywho try this.

Before you do any configuring, In linux directory type: make distclean. There's some crap it seems in some of the mdk kernel-sources. This solved alot of problems for me.

I don't know what options you want to customize but I didn't bother with much except changing the target (athlon-xp in my case) I tried to get rid of alot modules I didnt' use and every time I got an error...

So my advice, If you want to use the mandrake kernel ... change the bare minimum and hope for the best..

BTW it take a very long time to compile ALL the modules... so go order yourself a pizza or something

Gary


All times are GMT -5. The time now is 12:52 AM.