From owner-freebsd-stable@freebsd.org Thu Jan 25 15:13:30 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EBCD1EB4866 for ; Thu, 25 Jan 2018 15:13:29 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 79A23812F9 for ; Thu, 25 Jan 2018 15:13:28 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 45a5a537-01e2-11e8-b951-f99fef315fd9 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 45a5a537-01e2-11e8-b951-f99fef315fd9; Thu, 25 Jan 2018 15:13:18 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w0PFDJ9T011461; Thu, 25 Jan 2018 08:13:19 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1516893199.42536.223.camel@freebsd.org> Subject: Re: why does buildworld fail on stable/11 ? From: Ian Lepore To: Scott Bennett , dim@FreeBSD.org Cc: freebsd-stable@freebsd.org, tech-lists@zyxst.net Date: Thu, 25 Jan 2018 08:13:19 -0700 In-Reply-To: <201801250625.w0P6Pukm014218@sdf.org> References: <201801240851.w0O8pnDl008705@sdf.org> <0A86F03E-DB69-4DD0-B67B-E9BFBE3DC739@FreeBSD.org> <1516811808.42536.173.camel@freebsd.org> <201801250625.w0P6Pukm014218@sdf.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 15:13:30 -0000 On Thu, 2018-01-25 at 00:25 -0600, Scott Bennett wrote: > Ian Lepore wrote: > > > > > On Wed, 2018-01-24 at 12:39 +0100, Dimitry Andric wrote: > > > > > > On 24 Jan 2018, at 09:51, Scott Bennett wrote: > > > > > > > > > > > > > > > > Subject: Re: why does buildworld fail on stable/11 ? > > > > > > > > ????I wrote: > > > > > > > > > > > > > > > ???On Mon, 22 Jan 2018 12:42:58 +0000 lists wrote: > > > > > > > > > > > > > > > > > > On 22/01/2018 09:17, Scott Bennett wrote: > > > > > > > > > > > > > > > > > > > > > ???Anyway, I'm stuck.??Can someone please tell me what is going wrong and > > > > > > > how to fix it???I'd really like to be able to update my system, not only to > > > > > > > keep it reasonably current, but also to be able to customize a kernel.??Thanks > > > > > > > in advance for any suggestions/solutions. > > > > ????[much deleted??--SB] > > > > > > > > > > > > > > > > > > > > > > > > > > > > then > > > > > > > > > > > > [/usr/src #] make cleandir && make clean && make buildworld && make > > > > > > buildkernel && make installkernel && mergemaster -p > > > > > ???At this point, that looks very optimistic, to say the least. :-)??I've > > > > > tried "make cleanworld" (with /etc/make.conf still in place), and it failed > > > > > exactly like the buildworld example I posted before. > > > > ????Okay.??Here's what happened. > > > > > > > > Script started on Wed Jan 24 02:17:30 2018 > > > > hellas# mv /etc/make.conf{,.save} > > > > hellas# mv /etc/src.conf{,.save} > > > > hellas# cd /usr/src > > > > hellas# make cleandir > > > > "/usr/src/share/mk/local.sys.mk", line 51: Malformed conditional (${.MAKE.MODE:Mmeta*} != "") > > > > "/usr/src/share/mk/local.sys.mk", line 58: Malformed conditional (${.MAKE.MODE:Mnofilemon} == "") > > > > "/usr/src/share/mk/local.sys.mk", line 76: if-less else > > > > "/usr/src/share/mk/local.sys.mk", line 79: if-less endif > > > > "/usr/src/share/mk/sys.mk", line 476: if-less endif > > > > bmake: fatal errors encountered -- cannot continue > > > Looks like your make is broken.??What is the output of "which make"? > > > > > > -Dimitry > > > > > And also the output of "make -V MAKE_VERSION". ?To me, this looks a lot > > like what happens when you try to use old fmake from freebsd 8 to build > > modern freebsd source. > > > hellas# make -V MAKE_VERSION > 20170720 > hellas# Well, that kills the wrong-version theory.  The thing I would try next is setting some make debug flags, but it'll generate a ton of output. I'd start with "make -dlp cleandir" that should list everything it's doing while reading makefiles, and list any commands it executes.  Capture that output (stdout and stderr), then a good first-look at the file might be something like "grep -v ParseReadLine make.log", that should show us what files it's reading from which directories.  My theory is maybe it's picking up a wrong include file somehow which leads it astray.  If that's not it, we may need to also examine all the ParseReadLine stuff, or add some other debug flags. -- Ian