From owner-freebsd-current@FreeBSD.ORG Wed May 23 21:40:42 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E0ABB106564A; Wed, 23 May 2012 21:40:41 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 981028FC18; Wed, 23 May 2012 21:40:41 +0000 (UTC) Received: by obcni5 with SMTP id ni5so15674747obc.13 for ; Wed, 23 May 2012 14:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VmHnNiPEOlHBaz6B5/BI/dBly2j7FNj3pfdPascCFyc=; b=t9e/3L6GO26iXYkAncdyEh6EoV8eTsQpOAO7pyydXIxYTV6E9CwlpOdIfcKeoL8QPW mLKnPi2LisDvpkFDy+xT9lGnSz3ozDDn3iLrnGq6dtkM9M15oOgVT1iXdYk9ekE8DWBZ ye9r/bdLEEsLTRvF32nwxyivcnJAKsvARyRsJ3+9kOkHS/OSU9h/i8yzgOwQDAHKtREu D1zr8PYKn3Jh7+DHsLVXpKETdtS/KV36cFgN6R0q+zJaAxROsQaUz5CN8oXgOV7R4LKr 1HGtx/a6cLTyfaioyXjsPMBA/AUwlM7WBzMjhCRXYO4LFsiuR/OWwy2saJ05EcEYN6O3 cs7A== MIME-Version: 1.0 Received: by 10.60.7.200 with SMTP id l8mr28037230oea.52.1337809240924; Wed, 23 May 2012 14:40:40 -0700 (PDT) Received: by 10.76.153.72 with HTTP; Wed, 23 May 2012 14:40:40 -0700 (PDT) In-Reply-To: <4FBD4DF5.5080502@zedat.fu-berlin.de> References: <4FB7A63C.70509@zedat.fu-berlin.de> <4FBD4DF5.5080502@zedat.fu-berlin.de> Date: Wed, 23 May 2012 14:40:40 -0700 Message-ID: From: Garrett Cooper To: "O. Hartmann" Content-Type: text/plain; charset=ISO-8859-1 Cc: Current FreeBSD , freebsd-questions@freebsd.org Subject: Re: CURRENT: buildworld fails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 23 May 2012 21:40:42 -0000 On Wed, May 23, 2012 at 1:52 PM, O. Hartmann wrote: > On 05/19/12 22:33, Garrett Cooper wrote: >> On Sat, May 19, 2012 at 6:55 AM, O. Hartmann >> wrote: >>> Since approx. a week for now, I can not build FreeBSD 10.0-CURRENT/amd64 >>> anymore! This happens to be on ALL(!) FreeBSD 10 boxes around here I >>> maintain. >> >> ... >> >>> b) build and install /usr/src/lib via "make clean cleandepend depend obj >>> all install" doesn't work anymore, it fails with >>> ."/usr/src/lib/Makefile", line 179: Malformed conditional (${MK_NAND} != >>> "no") >>> "/usr/src/lib/Makefile", line 181: if-less endif >> >> Your mk files in /usr/share/mk are out of synch with your build tree. >> If you opt out of using buildworld, then you need to do 'make -C >> share/mk install' beforehand. ... > My problems occured around the May, 15th and hit ALL of my FreeBSD > 10-CURRENT/amd64 boxes on which I do most time daily buildworld. Two of > them could be fixed, I did this two days ago by The problem has been on and off "mild" breakage for the past couple days (yacc, format string qualifier issues, etc). > cd /usr/src > make installincludes > make -C {lib|libexec|sbin ...} clean cleandepend depend obj all install > > On one specific machine it didn't work that way. I found out that > several binaries in the system's tree remained dated on 15th May, so > like "ld" or other essential pieces. Therefore I suspect a crushed system. I ran into a similar issue when my copy of mtree went MIA after a freshly installed world corrupted my VM during an nlm panic (thankfully it was my VM and not something else). > Does anyhow do have any idea how to repair the system? Trial and error for the base system is the only method I'm aware of right now, but if portions of the base system are corrupted and not others, I would suspect all of the contents on disk (esp after recent reports about UFS filesystem corruption with SUJ). > I can compile a kernel, but I can not compile ports (or even update them, I receive > multiple weird errors of missing header files or "changed" libstdc++.so. You can resolve the ports issue via another port that's shell based or C based. Memory serves me correctly it was ports-mgmt/port-maintenance-tools .. > The idea was to take a very recent binary installation set and install > this selective peice by piece over the existing installation, but I need > to preserve /etc and other directories. Any ideas ? You can save files that would be in the dist tarballs on the install media to another directory (/etc/*, customizations in /root, /usr, etc). Then you can extract the tarballs (I would use a test directory first though). Passing certain flags to tar to just copy out some binaries might help. > Help is appreciated and thanks in advance, Lesson to maybe learn: 1. Always have a backup machine running a stable version of FreeBSD that is fast enough that you can use to generate images and push out to machines on the fly. If not possible, always have a static toolchain on hand (I would assume that it's safe to say that anything listed in bootstrap-tools would be game for the toolchain). 2. Expect warts on CURRENT right after a major release cycle has run its course. If this is too much to worry about, don't run 10-CURRENT and instead run 9-STABLE, etc. Cheers, -Garrett