mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: "willy tarreau" <wtarreau@yahoo.fr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Did someone try to boot 2.4.16 on a 386 ? [SOLVED]
Date: Sat, 01 Dec 2001 14:35:21 +1100	[thread overview]
Message-ID: <11661.1007177721@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Sat, 01 Dec 2001 01:42:47 BST." <20011201004247.90162.qmail@web20510.mail.yahoo.com>

On Sat, 1 Dec 2001 01:42:47 +0100 (CET), 
=?iso-8859-1?q?willy=20tarreau?= <wtarreau@yahoo.fr> wrote:
>Just to say that I finally solved my problem. It came
>from a wrong vmlinux.lds that had been modified by a
>TUX patch applied to an earlier kernel sharing a hard
>link with this one. Although I think an unlink before
>a regeneration of this file would have been better,

A perfect example of why having the same tree for source and generated
files and using cp -al is a bad idea.  cp -al picks up both source and
objects and you have to hope that anything that is overwritten is hard
link safe (I can tell you now that it is not).  kbuild 2.5 allows
multiple builds from the same source tree into separate object trees
with different configs and is safe.

>I'll check around to see if there are other parts
>which risk to modify a file on disk without previously
>unlink it.

Any Makefile that does "some_command > target_file" or runs a utility
that does open(O_TRUNC) instead of unlink(), open(O_EXCL).

BTW, cp -al of a pristine source tree to multiple source trees followed
by multiple compiles in parallel is not safe either.  make dep relies
on changing time stamps for include files, because the include files
are hard linked, a change in one compile affects the other trees, with
undefined results.  Also fixed in kbuild 2.5.


  reply	other threads:[~2001-12-01  3:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-01  0:42 willy tarreau
2001-12-01  3:35 ` Keith Owens [this message]
2001-12-01  9:11   ` willy tarreau
2001-12-01  9:29     ` Keith Owens
2001-12-01  9:47       ` willy tarreau
2001-12-01 10:24         ` Keith Owens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11661.1007177721@ocs3.intra.ocs.com.au \
    --to=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wtarreau@yahoo.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®