From owner-freebsd-ports@freebsd.org Mon Apr 10 19:12:08 2017 Return-Path: Delivered-To: freebsd-ports@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 940B5D378B2 for ; Mon, 10 Apr 2017 19:12:08 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-11.reflexion.net [208.70.210.11]) (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 43C32A03 for ; Mon, 10 Apr 2017 19:12:07 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 3324 invoked from network); 10 Apr 2017 19:12:06 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 10 Apr 2017 19:12:06 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.0) with SMTP; Mon, 10 Apr 2017 15:12:06 -0400 (EDT) Received: (qmail 23592 invoked from network); 10 Apr 2017 19:12:06 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 10 Apr 2017 19:12:06 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id BB146EC9220; Mon, 10 Apr 2017 12:12:05 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: lang/gcc6-aux build error due to internal Makefile/sh syntax: $${PWDCMD-pwd} is missing a ":" Message-Id: <1626B3C1-0B4E-4070-A830-0EEEF38E0F87@dsl-only.net> Date: Mon, 10 Apr 2017 12:12:05 -0700 To: John Marino , FreeBSD Ports X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2017 19:12:08 -0000 Context (on a BPI-M3 arm64 board): # svnlite info /usr/ports/ | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 438141 Last Changed Rev: 438141 I was trying to build synth on an arm64 (BPI-M3) and it in turn tried to build gcc6-aux. That failed with: checking for autoheader... no configure: updating cache ./config.cache configure: creating ./config.status config.status: creating Makefile config.status: creating config.intl config.status: creating config.h config.status: executing default-1 commands gmake[3]: Leaving directory = '/usr/obj/portswork/usr/ports/lang/gcc6-aux/work/build' gmake[2]: *** [Makefile:875: all] Error 2 gmake[2]: Leaving directory = '/usr/obj/portswork/usr/ports/lang/gcc6-aux/work/build' *** Error code 2 Looking around in: /usr/obj/portswork/usr/ports/lang/gcc6-aux/work/build/Makefile shows. . . SHELL =3D /bin/sh # pwd command to use. Allow user to override default by setting PWDCMD = in # the environment to account for automounters. The make variable must = not # be called PWDCMD, otherwise the value set here is passed to make # subprocesses and overrides the setting from the user's environment. # Don't use PWD since it is a common shell environment variable and we # don't want to corrupt it. PWD_COMMAND =3D $${PWDCMD-pwd} . . . # The target built for a native non-bootstrap build. .PHONY: all all: @: $(MAKE); $(unstage) @r=3D`${PWD_COMMAND}`; export r; \ s=3D`cd $(srcdir); ${PWD_COMMAND}`; export s; \ $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \ && : with line 875 being the one with: @r=3D`${PWD_COMMAND}` It appears to me that the notation $${PWDCMD-pwd} is not what was intended. My guess is that a ":" is missing: PWD_COMMAND =3D $${PWDCMD:-pwd} (/bin/sh notation to avoid an empty PWDCMD by then using pwd). NOTE on arm64 and fork() behavior: head (12) has received 2 fixes to arm64 fork behavior in recent times: -r316679 -r313772 stable/11 is supposed to get an MFC for -r316679 in a couple of weeks. -r313772 was from February and has yet to be MFC'd but is needed. No explicit MFC schedule has been set. =3D=3D=3D Mark Millard markmi at dsl-only.net