From owner-freebsd-current@FreeBSD.ORG Thu Oct 30 10:15:30 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B565416A4CE for ; Thu, 30 Oct 2003 10:15:30 -0800 (PST) Received: from fiinbeck.math.ntnu.no (fiinbeck.math.ntnu.no [129.241.15.140]) by mx1.FreeBSD.org (Postfix) with SMTP id D1BAB43FDD for ; Thu, 30 Oct 2003 10:15:26 -0800 (PST) (envelope-from hanche@math.ntnu.no) Received: (qmail 49126 invoked from network); 30 Oct 2003 18:15:25 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 30 Oct 2003 18:15:25 -0000 To: current@freebsd.org X-Mailer: Mew version 1.94.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) X-URL: http://www.math.ntnu.no/~hanche/ Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 8bit Message-Id: <20031030191525W.hanche@math.ntnu.no> Date: Thu, 30 Oct 2003 19:15:25 +0100 From: Harald Hanche-Olsen X-Dispatcher: imput version 20000228(IM140) Lines: 41 Subject: Glitch with make cleandir X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 30 Oct 2003 18:15:30 -0000 I was going to live life dangerously on the bleeding edge for a while, but it seems I have a problem making it all the way to the edge. ... Turns out I did not have enough room in /usr, so I got a filesystem full during make buildkernel. I thought I'd just clean up, then move /usr/src to another filesystem and try again. # chflags -R noschg /usr/obj/usr # rm -fr /usr/obj/usr # make cleandir "Makefile.inc1", line 744: warning: String comparison operator should be either == or != "Makefile.inc1", line 744: Malformed conditional ((!defined(NO_RESCUE) || defined(RELEASEDIR)) && (${TARGET_ARCH} != ${MACHINE_ARCH} || ${BOOTSTRAPPING} < 501101)) "Makefile.inc1", line 744: Missing dependency operator "Makefile.inc1", line 746: if-less endif "Makefile.inc1", line 746: Need an operator make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /usr/src. The following patch, which as far as I can tell is definitely wrong, lets me get past this point. Before I tried that, I turned on various debugging flags for make, and can see that indeed BOOTSTRAPPING=0, so using the < comparison operator ought to be all right. --- Makefile.inc1-SAVE Sat Oct 4 20:53:38 2003 +++ Makefile.inc1 Thu Oct 30 18:53:07 2003 @@ -741,7 +741,7 @@ .if (!defined(NO_RESCUE) || \ defined(RELEASEDIR)) && \ - (${TARGET_ARCH} != ${MACHINE_ARCH} || ${BOOTSTRAPPING} < 501101) + (${TARGET_ARCH} != ${MACHINE_ARCH} || ${BOOTSTRAPPING} != 501101) _crunchide= usr.sbin/crunch/crunchide .endif I find this kind of odd. Is there perhaps a bug in the make program I am using? This is on 5.1-RELEASE. - Harald