Re: installworld broken - osreldate.h: permission denied

From: Ian Lepore <ian_at_FreeBSD.org>
Date: Mon, 30 Sep 2013 10:22:46 -0600
On Mon, 2013-09-30 at 17:48 +0200, Joel Dahl wrote:
> On Mon, Sep 30, 2013 at 12:03:47PM +0400, Boris Samorodov wrote:
> > 30.09.2013 09:12, Joel Dahl пишет:
> > > On Sun, Sep 29, 2013 at 07:53:44PM -0700, John-Mark Gurney wrote:
> > >> Joel Dahl wrote this message on Sun, Sep 29, 2013 at 10:13 +0200:
> > >>> On Sat, Sep 28, 2013 at 11:19:51AM -0600, Ian Lepore wrote:
> > >>>> On Sat, 2013-09-28 at 15:09 +0200, Joel Dahl wrote:
> > >>>>> Hi,
> > >>>>>
> > >>>>> Fresh HEAD. installworld from read-only /usr/obj and /usr/src:
> > >>>>>
> > >>>>> /usr/src/include/iconv.h osreldate.h /usr/include
> > >>>>> install: osreldate.h: Permission denied
> > >>>>> *** Error code 71
> > >>>>>
> > >>>>> Stop.
> > >>>>> make[4]: stopped in /usr/src/include
> > >>>>> *** Error code 1
> > >>>>>
> > >>>>> Everything was working fine 2 weeks ago, so it's a recent breakage.
> > >>>>>
> > >>>>
> > >>>> Okay, I just accidentally created conditions for this error on my
> > >>>> system...  I checked in a change to newvers.sh while a buildworld was
> > >>>> running, which led to a situation where newvers.sh was newer than
> > >>>> osreldate.h at the end of the buildworld.  Then an installworld tried to
> > >>>> regenerate osreldate.h due to its dependency on newvers.sh, which would
> > >>>> fail if the obj was readonly at that point.
> > >>>>
> > >>>> I think we could see if something similar applies for you if you use
> > >>>> this command:
> > >>>>
> > >>>>   make -dm installworld SUBDIR_OVERRIDE=include
> > >>>
> > >>> I tried this with a fresh HEAD but the error message is still the same.
> > >>>
> > >>> /usr/src and /usr/obj are NFS mounted, FYI.
> > >>
> > >> Are you building on one machine and running install on another?  Are
> > >> the dates the same between the two machines?
> > > 
> > > Yes, both machines are running ntp. I've double-checked the dates and they are
> > > in sync.
> > 
> > Do those machines have accurate timezones set?
> 
> Yes, they do.

I don't understand all this thrashing around with questions about ntp
and timezones and all.  Right now there's only one question that
matters:  why are you getting permission denied trying to install
osreldate.h?  I posted a speculation on one thing that might lead to
that (attempting to recreate the file at install time), and I gave the
command that would provide that information.  Until we have that
information, everything else is just guessing at the underlying causes
of problems we don't know to be happening.

The command which will show in more detail what make is doing with
osreldate.h at install time is:

  make -dm installworld SUBDIR_OVERRIDE=include

The SUBDIR_OVERRIDE is so that it only gives that extreme level of
detail for the one directory causing a problem (the -dm output is very
verbose).  We don't need the full output from that command... near the
end of the output should be "Examining osreldate.h..." and it's the
lines from there to the end that matter.

-- Ian
Received on Mon Sep 30 2013 - 14:22:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC