Re: Every Make option ends in error.

From: Richard B. Johnson (
Date: Fri Feb 02 2001 - 16:14:59 EST

On Fri, 2 Feb 2001, Ken Moffat wrote:

> Hi guys,
> I guess I'm doing something stupid, so please can somebody point it out
> and put me out of my misery ?
> Copied a plain 2.4.0 tree to a new directory, patched it to 2.4.1 without
> any errors. Then I realised it had all the object files from my last
> compile, so I thought "make mrproper" was called for. It did a little,
> then
> rm: include/asm: is a directory
> make: *** [mrproper] Error 1
This link file got changed to a directory, probable because your
new directory was copied! You should have used `tar`. Copy will
follow the sym-links and copy the underlying data, i.e., a whole

Not to worry. In your new Linux directory tree do:

cd include
mv asm /tmp # or /usr/src, someplace temporary.

cd .. # Back to Linux
cp .config .. # Save your configuration
make mrproper # Make like a distribution
cp ../.config . # Restore configuration
make oldconfig # Re-do configuration
make dep # Re-do dependencies
make bzImage # Doit toit

After everything works, recursively delete the saved 'asm'
directory that was moved outside the kernel tree.

Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Feb 07 2001 - 21:00:16 EST