LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   make: *** No rule to make target `mrproper'. Stop. (http://www.linuxquestions.org/questions/linux-general-1/make-%2A%2A%2A-no-rule-to-make-target-%60mrproper-stop-424108/)

dauphinfay 03-12-2006 10:01 AM

make: *** No rule to make target `mrproper'. Stop.
 
I have tried to run mrproper from /usr/src/ as well as /usr/src/linux and even /usr/src/linux-headers-XXXX-386. nothing works. how in the world do i get this working? here is the result:

/usr/src/linux-headers-2.6.12-10$ sudo make mrproper
/bin/sh: /usr/src/linux-headers-2.6.12-10/scripts/gcc-version.sh: No such file or directorymake[1]: scripts/Makefile.clean: No such file or directory
make[1]: *** No rule to make target `scripts/Makefile.clean'. Stop.
make: *** [archclean] Error 2

gilead 03-13-2006 06:59 PM

It sounds like you have the headers package installed but not the sources package. Once that's installed the make mrproper target should work (I'm assuming that the Ubuntu kernel package doesn't do anything unusual to the source tree).

jomen 03-13-2006 07:08 PM

mrproper is used to "clean" the kernel-source tree from previously compiled files, so you can start fresh - even without a old .config.
However - you need the kernel-source installed for this and run this command from /usr/src/linux (or /usr/src/linux_version_)
Is there anything inside /usr/src/linux ?

greywolf31 12-28-2008 09:26 AM

similar issue with gentoo install
 
I am having a similar issue... but with gentoo

Quote:

Originally Posted by jomen (Post 2148950)
Is there anything inside /usr/src/linux ?

when I cd to /usr/src/linux the only thing there is linux-2.6.27-gentoo-r7
using ls -p /usr/src/linux

http://www.linuxquestions.org/questi...gentoo-693431/

dragonfever 10-15-2009 08:04 AM

Quote:

Originally Posted by jomen (Post 2148950)
mrproper is used to "clean" the kernel-source tree from previously compiled files, so you can start fresh - even without a old .config.
However - you need the kernel-source installed for this and run this command from /usr/src/linux (or /usr/src/linux_version_)
Is there anything inside /usr/src/linux ?

hello!
I am following the lfs-book-6.4,when i entered the "make rmproper" as the Chaper6.7.1 required, error exists as:

make: *** No rule to make target `mrproper'. Stop.

I check the file,but there is nothing inside /usr/src/linux.
I just following the guidance,everything goes well in the past chapers,what's the matter?
what should i do?
thanks!

Deviathan 10-15-2009 12:19 PM

Quote:

Originally Posted by dragonfever (Post 3720250)
hello!
I am following the lfs-book-6.4,when i entered the "make rmproper" as the Chaper6.7.1 required, error exists as:

make: *** No rule to make target `mrproper'. Stop.

I check the file,but there is nothing inside /usr/src/linux.
I just following the guidance,everything goes well in the past chapers,what's the matter?
what should i do?
thanks!

Sounds like you need to install the kernel source for your distribution. As one member above said, that command was typically run in /usr/src/linux where linux is a symbolic link to the actual directory containing the kernel source code. This may differ from distro to distro but usually within /usr/src.

This is something you'll have to figure out specifically for your version.

dragonfever 10-16-2009 12:29 AM

Quote:

Originally Posted by Deviathan (Post 3720522)
Sounds like you need to install the kernel source for your distribution. As one member above said, that command was typically run in /usr/src/linux where linux is a symbolic link to the actual directory containing the kernel source code. This may differ from distro to distro but usually within /usr/src.

This is something you'll have to figure out specifically for your version.

Thank you!
I have passed this time.The reason that made the error last time was that i didn't tar the kernel source file.I entered the following commands and passed successfully:

tar -xjf linux-2.6.27.4.tar.bz2
cd linux2.6.27.4
make mrproper


All times are GMT -5. The time now is 07:11 PM.