From owner-freebsd-current@FreeBSD.ORG Mon Sep 30 16:22:50 2013 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1BC64CA7; Mon, 30 Sep 2013 16:22:50 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E1FBC2394; Mon, 30 Sep 2013 16:22:49 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VQgFE-000One-No; Mon, 30 Sep 2013 16:22:48 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r8UGMkZk009683; Mon, 30 Sep 2013 10:22:46 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+BbCmTSD0j+SBcfVf0Jczw Subject: Re: installworld broken - osreldate.h: permission denied From: Ian Lepore To: Joel Dahl In-Reply-To: <20130930154835.GA1699@devbox.vnode.local> References: <20130928130920.GA1318@devbox.vnode.local> <1380388791.1197.335.camel@revolution.hippie.lan> <20130929081329.GA19015@devbox.vnode.local> <20130930025344.GK56872@funkthat.com> <20130930051209.GB19015@devbox.vnode.local> <52493063.7090101@passap.ru> <20130930154835.GA1699@devbox.vnode.local> Content-Type: text/plain; charset="koi8-r" Date: Mon, 30 Sep 2013 10:22:46 -0600 Message-ID: <1380558166.1197.380.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by damnhippie.dyndns.org id r8UGMkZk009683 Cc: current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Sep 2013 16:22:50 -0000 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 =D0=C9=DB=C5=D4: > > > 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 break= age. > > >>>>> > > >>>> > > >>>> Okay, I just accidentally created conditions for this error on m= y > > >>>> system... I checked in a change to newvers.sh while a buildworl= d was > > >>>> running, which led to a situation where newvers.sh was newer tha= n > > >>>> osreldate.h at the end of the buildworld. Then an installworld = tried to > > >>>> regenerate osreldate.h due to its dependency on newvers.sh, whic= h 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=3Dinclude > > >>> > > >>> 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? A= re > > >> the dates the same between the two machines? > > >=20 > > > Yes, both machines are running ntp. I've double-checked the dates a= nd they are > > > in sync. > >=20 > > Do those machines have accurate timezones set? >=20 > 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=3Dinclude 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