public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Every Make option ends in error.
@ 2001-02-02 20:59 Ken Moffat
  2001-02-02 21:14 ` Richard B. Johnson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ken Moffat @ 2001-02-02 20:59 UTC (permalink / raw)
  To: linux-kernel

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

"make clean" and "make oldconfig" stop with similar errors, "make
clean" is in "symlinks" at the time.

This piece of makefile looks to be the same as in 2.4.0, which worked.

I'm running make 3.77.

Any comments, please ?

Ken

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Every Make option ends in error.
  2001-02-02 20:59 Every Make option ends in error Ken Moffat
@ 2001-02-02 21:14 ` Richard B. Johnson
  2001-02-02 21:51   ` Ken Moffat
  2001-02-02 21:53 ` Alan Cox
  2001-02-03  0:11 ` J . A . Magallon
  2 siblings, 1 reply; 7+ messages in thread
From: Richard B. Johnson @ 2001-02-02 21:14 UTC (permalink / raw)
  To: Ken Moffat; +Cc: linux-kernel

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
directory.

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.


Cheers,
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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Every Make option ends in error.
       [not found] <Pine.LNX.4.10.10102021608570.6971-100000@coffee.psychology.mcmaster.ca>
@ 2001-02-02 21:21 ` Ken Moffat
  0 siblings, 0 replies; 7+ messages in thread
From: Ken Moffat @ 2001-02-02 21:21 UTC (permalink / raw)
  To: Mark Hahn; +Cc: linux-kernel

On Fri, 2 Feb 2001, Mark Hahn wrote:

> >  I guess I'm doing something stupid, so please can somebody point it out
> > and put me out of my misery ?
> 
> don't use cp to copy kernel trees unless you use -s.
> 
Thanks for the advice, Mark. I'll give it a go in a minute (got to log off
this box and connect the monitor to the test box). I figured that since
I've got a 1.5Gb partition for kernels, putting a third one in there
wouldn't cause any grief.
Ken

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Every Make option ends in error.
  2001-02-02 21:14 ` Richard B. Johnson
@ 2001-02-02 21:51   ` Ken Moffat
  0 siblings, 0 replies; 7+ messages in thread
From: Ken Moffat @ 2001-02-02 21:51 UTC (permalink / raw)
  To: Richard B. Johnson; +Cc: Mark Hahn, linux-kernel

Dick, and Mark, thanks. It's compiling nicely now. We learn by experience.
Cheers, Ken

> 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.
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Every Make option ends in error.
  2001-02-02 20:59 Every Make option ends in error Ken Moffat
  2001-02-02 21:14 ` Richard B. Johnson
@ 2001-02-02 21:53 ` Alan Cox
  2001-02-03  0:11 ` J . A . Magallon
  2 siblings, 0 replies; 7+ messages in thread
From: Alan Cox @ 2001-02-02 21:53 UTC (permalink / raw)
  To: Ken Moffat; +Cc: linux-kernel

>  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

You copied the link and turned it into its contents

> rm: include/asm: is a directory
> make: *** [mrproper] Error 1

do rm -rf include/asm and then rerun the makes
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Every Make option ends in error.
  2001-02-02 20:59 Every Make option ends in error Ken Moffat
  2001-02-02 21:14 ` Richard B. Johnson
  2001-02-02 21:53 ` Alan Cox
@ 2001-02-03  0:11 ` J . A . Magallon
  2001-02-04  0:35   ` Rusty Russell
  2 siblings, 1 reply; 7+ messages in thread
From: J . A . Magallon @ 2001-02-03  0:11 UTC (permalink / raw)
  To: Ken Moffat; +Cc: linux-kernel


On 02.02 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

Do a 'cp -a linux-2.4.0 linux-2.4.1', and symlinks (asm...) will not be
de-referenced.

Or even better, if you are going to patch, do a 'cp -rl', and your new
tree will not waste almost any space (hard-links all the files, so space
only is duplicated when patch changes some file - and if you remove the
old kernel tree, the space just goes to the new).

-- 
J.A. Magallon                                                      $> cd pub
mailto:jamagallon@able.es                                          $> more beer

Linux werewolf 2.4.1-ac1 #2 SMP Fri Feb 2 00:19:04 CET 2001 i686

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Every Make option ends in error.
  2001-02-03  0:11 ` J . A . Magallon
@ 2001-02-04  0:35   ` Rusty Russell
  0 siblings, 0 replies; 7+ messages in thread
From: Rusty Russell @ 2001-02-04  0:35 UTC (permalink / raw)
  To: J . A . Magallon; +Cc: linux-kernel

In message <20010203011151.G3014@werewolf.able.es> you write:
> Or even better, if you are going to patch, do a 'cp -rl', and your new

ITYM cp -al, and the main benifit (for me) is that diff -urN takes ~10
seconds (cold cache), rather than minutes.

Rusty.
--
Premature optmztion is rt of all evl. --DK
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-02-04  6:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-02 20:59 Every Make option ends in error Ken Moffat
2001-02-02 21:14 ` Richard B. Johnson
2001-02-02 21:51   ` Ken Moffat
2001-02-02 21:53 ` Alan Cox
2001-02-03  0:11 ` J . A . Magallon
2001-02-04  0:35   ` Rusty Russell
     [not found] <Pine.LNX.4.10.10102021608570.6971-100000@coffee.psychology.mcmaster.ca>
2001-02-02 21:21 ` Ken Moffat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox