From owner-freebsd-stable@freebsd.org Sat Oct 8 06:28:37 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64C37C051CF for ; Sat, 8 Oct 2016 06:28:37 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from sdf.lonestar.org (ol.sdf.org [192.94.73.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ol.sdf.org", Issuer "ol.sdf.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2FD10DAF for ; Sat, 8 Oct 2016 06:28:36 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from sdf.org (norge.freeshell.org [192.94.73.17]) by sdf.lonestar.org (8.15.2/8.14.5) with ESMTPS id u986SMY1007810 (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO); Sat, 8 Oct 2016 06:28:22 GMT Received: (from bennett@localhost) by sdf.org (8.15.2/8.12.8/Submit) id u986SMWa020121; Sat, 8 Oct 2016 01:28:22 -0500 (CDT) From: Scott Bennett Message-Id: <201610080628.u986SMWa020121@sdf.org> Date: Sat, 08 Oct 2016 01:28:22 -0500 To: rkoberman@gmail.com Subject: Re: buildworld errors at outset on fresh svn checkout Cc: freebsd-stable@freebsd.org References: <201610070516.u975GrVY015878@sdf.org> In-Reply-To: User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2016 06:28:37 -0000 Kevin Oberman wrote: Thanks much for replying! > On Thu, Oct 6, 2016 at 10:16 PM, Scott Bennett wrote: > > > I'm running into a problem in updating my 10-STABLE system from > > source. > > A "make buildworld" quits immediately. I tried a fresh svn checkout for > > base/stable/10 and then tried to run buildworld again, but got the same > > error. > > I've been scratching my head over this for hours, but must be missing > > something > > simple. > > I have ccache installed and have been using it for a fairly long time > > now. > > My /etc/src.conf contains just two lines: > > > > PORTS_MODULES=multimedia/cuse4bsd-kmod sysutils/pefs-kmod # > > emulators/virtualbox-ose-kmod > > WITH_LLDB=yes > > > > My /etc/make.conf is rather longer, so I'll append it following .sig below. > > > > Here's what happens. > > > > Script started on Thu Oct 6 23:31:47 2016 > > hellas# cd /usr/src > > hellas# nice make buildworld > > Unknown modifier '[' > > > > "/usr/src/Makefile.inc1", line 1113: Malformed conditional > > (${BUILDKERNELS:[) > > Unknown modifier '[' > > > > "/usr/src/Makefile.inc1", line 1122: if-less endif > > Unknown modifier '[' > > > > "/usr/src/Makefile.inc1", line 1144: Malformed conditional > > (${BUILDKERNELS:[) > > Unknown modifier '[' > > > > "/usr/src/Makefile.inc1", line 1161: if-less endif > > Unknown modifier '[' > > > > "/usr/src/Makefile.inc1", line 1183: Malformed conditional > > (${BUILDKERNELS:[) > > Unknown modifier '[' > > > > "/usr/src/Makefile.inc1", line 1190: if-less endif > > bmake: fatal errors encountered -- cannot continue > > *** Error code 1 > > > > Stop. > > make: stopped in /usr/src > > hellas# exit > > exit > > > > Script done on Thu Oct 6 23:37:00 2016 > > > > This just started happening after my machine had been down for a > > couple > > of days after a hang that damaged stuff in /usr/home. I had already > > restored > > /usr/local from backups before narrowing down the weird behavior I was > > seeing > > in wmaker to /usr/home corruption. So /usr/home has now been restored to > > good condition, too, but perhaps I need to restore something else as well. > > This mess was part of my justification to myself for the fresh checkout of > > /usr/src, but that doesn't seem to have made any difference in the > > buildworld > > failure. > > If anyone else can see what's wrong and clue me in, I'd be grateful. > > I'm subscribed to the digest for this list, so please Cc: me directly, so > > I'll get replies right away. > > Thanks in advance! > > > > [stuff deleted --SB] > > Could something else have gotten corrupted? > > > ls -i /bin/[ > 65795 /bin/[ > > ls -i /bin/test > 65795 /bin/test > > The values (inode) will not match these, but must be identical. [hellas] 23 % ls -lgiF /bin/\[ /bin/test 131557 -r-xr-xr-x 2 root wheel 11664 Aug 23 05:16 /bin/[* 131557 -r-xr-xr-x 2 root wheel 11664 Aug 23 05:16 /bin/test* So no, that's not the problem. > > '[' needs to be a hard link to test. I'm suspicious that something happened > to this link. If this is the case, other corruption may have occurred, but, > if you can re-create the hardlink (ln /bin/test /bin/[) and successfully > make buildworld and make buildkernel, it's likely that you can reinstall > the system and the system will be fine. Of course, things could be damaged > in the installed ports, too. Unfortunately, no, I can't re-install, or at least not without restoring /usr (and probably / and /usr/obj) to before the damage, assuming I can figure out exactly between which backups the damage occurred, which may not have been at the time of the hang. I already had a recently built /usr/obj and tried to install its contents. The failure of installkernel was how I discovered the problem. So I'm still stuck. Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at sdf.org *xor* bennett at freeshell.org * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * **********************************************************************