From owner-freebsd-current@freebsd.org Sun Nov 5 16:13:32 2017 Return-Path: Delivered-To: freebsd-current@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 CBA1EE6EFBF for ; Sun, 5 Nov 2017 16:13:32 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 88EDE846 for ; Sun, 5 Nov 2017 16:13:32 +0000 (UTC) (envelope-from sjg@juniper.net) Received: by mailman.ysv.freebsd.org (Postfix) id 868BFE6EFBE; Sun, 5 Nov 2017 16:13:32 +0000 (UTC) Delivered-To: current@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 860FDE6EFBD for ; Sun, 5 Nov 2017 16:13:32 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0138.outbound.protection.outlook.com [104.47.38.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 13D37845 for ; Sun, 5 Nov 2017 16:13:31 +0000 (UTC) (envelope-from sjg@juniper.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=P0Xub11qKrQjGAwxo1lo7ozaRC+6DRijCA+fA4MUaUw=; b=Vw9QE1Ftb9OegYIo8W/Suo5EB4HnXP+A6Ugv9OjR2ySy+9H6kzYTdQljrQ324HTa+yAqeD2ItFHGMSiaCL4B3UnnjrzvBMzjdDpdQQcQZKecL+hyypURPvfeeg7Khr3G9MRQJ/fr4dFImEg3hRjdUryKDi+pFRbD4adoviG83mc= Received: from SN4PR0501CA0130.namprd05.prod.outlook.com (10.167.128.47) by BLUPR0501MB2066.namprd05.prod.outlook.com (10.164.23.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.218.6; Sun, 5 Nov 2017 16:13:28 +0000 Received: from BY2NAM05FT061.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::209) by SN4PR0501CA0130.outlook.office365.com (2603:10b6:803:42::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.218.6 via Frontend Transport; Sun, 5 Nov 2017 16:13:28 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.12 as permitted sender) Received: from p-emfe01a-sac.jnpr.net (66.129.239.12) by BY2NAM05FT061.mail.protection.outlook.com (10.152.100.198) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.20.197.9 via Frontend Transport; Sun, 5 Nov 2017 16:13:28 +0000 Received: from p-mailhub01.juniper.net (10.47.226.20) by p-emfe01a-sac.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.123.3; Sun, 5 Nov 2017 08:13:27 -0800 Received: from kaos.jnpr.net (kaos.jnpr.net [172.21.30.60]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id vA5GDRZR013486; Sun, 5 Nov 2017 08:13:27 -0800 (envelope-from sjg@juniper.net) Received: from kaos.jnpr.net (localhost [127.0.0.1]) by kaos.jnpr.net (Postfix) with ESMTP id 5B494385567; Sun, 5 Nov 2017 08:13:27 -0800 (PST) CC: David Wolfskill , , Subject: Re: Build failed: /usr/src/share/mk/bsd.obj.mk" line 89: Malformed conditional In-Reply-To: <13241.1509897599@kaos.jnpr.net> References: <20171105124444.GG1156@albert.catwhisker.org> <13241.1509897599@kaos.jnpr.net> Comments: In-reply-to: "Simon J. Gerraty" message dated "Sun, 05 Nov 2017 07:59:59 -0800." From: "Simon J. Gerraty" X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13455.1509898407.1@kaos.jnpr.net> Content-Transfer-Encoding: quoted-printable Date: Sun, 5 Nov 2017 08:13:27 -0800 Message-ID: <13456.1509898407@kaos.jnpr.net> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.129.239.12; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(376002)(346002)(39860400002)(2980300002)(189002)(199003)(24454002)(69596002)(54906003)(53936002)(76176999)(50986999)(2810700001)(97736004)(86362001)(6266002)(77096006)(2950100002)(50466002)(97756001)(4326008)(68736007)(59246006)(2906002)(1671002)(229853002)(97876018)(47776003)(9686003)(316002)(53416004)(8936002)(46406003)(55016002)(7696004)(105596002)(76506005)(8746002)(106466001)(8676002)(23726003)(81156014)(81166006)(5660300001)(189998001)(356003)(305945005)(478600001)(7126002)(117636001)(50226002)(107886003)(6246003)(109986005)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR0501MB2066; H:p-emfe01a-sac.jnpr.net; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM05FT061; 1:d+w87s4BFAJuTou6xfR73KK37mZHsnoAABVn8vSvJ31In4UrKXGCH3bdNXhV7jW9iFwAGiPclhYlL9bZWmbwhmxeMf8FPi1gXrK0HjicixZKneQaGx11+9RNIyOfcFPo X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c859a353-5bcb-4823-4520-08d5246826b6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603249); SRVR:BLUPR0501MB2066; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2066; 3:5QbmL353nmFNs+ceoz345w3SdONi5P72cQ/czb6bE4qHEmi9+ds0zvVU1SXu0abkyZXSUgg1tG+yivuvoTQ5u/h6juIBqYJJqFNCVN7Icu49i19MyScrJmIg3scvhOw3ROxZY3I7lRwnV94sFYaZQr7QQTM7LzbNhv9kYIGA5C2EtWYo9H+u1pRtmaQ42swOeLkPFsLeY+A2RBut6Kdb07y5MlGkVjf6Zms8/12DkT/tWhI5pDKygzUCYbXEU8jzqFnbQVXd8xRHYQpfoqYeN37Gb2yCv5n3R9QM8iIMM5kqysXX4b8+Yr5W53fOYuKTG5B0iKRkG/YXE4Iq6o3AQ5zYzRqsDZUPCAEtjePuLlE=; 25:sehZlI4Vg/q4Y1OhW9oM5Xmd2VT4tqeOFWJ1kc25RloL9VI3f5WdJ/hTMLQ83H/djMOugGmp0BOZWdZgQLrbEYVpdW6HAq/wGZk46Wm/NAkiCHi6ElQNQBwP3spUda1LuGUKjnSpXZ7EJTzE28jdHKdhkfIReajc50cbDLzwGHxlg4vE5g6xlFt6ZHFN/wnMO/x93V9AbQjVbD32bO/7MBeQjZIiR39i3qeJzE1IH54ewDARm2pqAkegUtEna1b87HUhRl+4BapP2BUBi2V+ZEr+mfmEyysDRWCRv3De0xkY2y6Da61KgNQHoprR1rJ268xwbddsapf/bxfueFbxGA== X-MS-TrafficTypeDiagnostic: BLUPR0501MB2066: X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2066; 31:qJFKRz3U8zmznkChYJlobbbzVKlx5BqTZJXQm/KYbDWHZiQ7jI30QzXsrVRvHPtOaYxniZeRAAN5+tNnHV0zSRQWqULNUrsAulBQucbdrpBl6WGRkmX1oVZek9GZaGiDFhf6Pnqofl7vBd/alseBuZcwG6sUqqn4VCOokGQsmOsT3ADsmk7Ub2QFvLqkN+pjbidzqY7pLrckNHUpGzWvbnKWrHk6WXep1MUiG2bm5Tg=; 20:nXyyGUSzh00x+IvC2ZMYEn8G6cLvOat+gn2ci8uEpNLWLG0TT/AUyf2aks39/AsZJIHQBx4yR96LQvlVnNfuh6Vsf7KLyMpNe6NqXNXD4bYV93NuLIAdGDa6fxa4pvzEkhBd4ZUuP/kqLVUv5wNEJQct0jPZGcmw0z0T04Ge6H3KAstxz5kTbRSg5r3l6G+OMJKsHujSL9bxrpTCmTlQ1LBFzVr+cOAhkMfKz0ujAGZdGe/6JvPilKjq7LeG7oYmW2GfaGgIzHrugN1I5c08pCGWW13vHOniGNUh5tbQQwrncqAKXUJcnV7HeBhcAX/d+euPX4s8LKkiL03hZcPBC7ANqz18TQ6QsdWiYubUYwJlyGjYCoNGYRJvTGuPv8mBkEgzRv+zHN1iPc5XuKvwo5RTGsAT3KhnLKckWWaJbLCcwqd3RgU6q76qw7SwqQUKZuotAxyprGNOeF8aWjweWNwxPKODWM1sHZC0YOTiJQkt2MrXYupjzEApDiSiqZPe X-Exchange-Antispam-Report-Test: UriScan:(138986009662008); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3231021)(3002001)(93006095)(93003095)(100000703101)(100105400095)(6055026)(2017110403001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0501MB2066; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0501MB2066; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2066; 4:IQgmNmcdgBnPHw0WMN33gqc3r4kjcuUc3eQ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W5AwD+logR09RvBujgubvNO/sNxWUiIBeJ0HBwUZeYC7eKmF4YHQjiIEkhDeLf3ki2PwSME+BODWDKq9AVMhle/UI9tyxhaR7eDXm9HxXhVzVQluA+BTjvGo76DDj+YAHTg6ZWF1xlLyD/XcE9v8/8VwZUa/fF71s8fMOWIAhBLUtRN5OhHsXw4j+vZ1g8EDsvHdmjglqS4SOjEc41e7W94Lkl9km5gWbQ=; 5:1Uim1BAETWgsJAUU/vX7SdN8Aj1gaOsPk4p3R61kXlCaPpArYiDbqH0DpCM6MxWNIPr/oCLykOeHBqGpjFTUjpqeJ9Qj3fStMF+cn0uxPfDPKYitabEowfWiqH0wPVkOpWX9mywIMFmxGAb2AJ5vb88M/Uk58C1Q5tjuFlf0Og0=; 24:FTMnKUqda9xxDmEYu/FGse0z76xxUZLMtSjzTOz86RJiJ4JzOen++Zp7LZ0RCTk8Ovihu+U9uVDthptTkaSY5ynJPQsuyE2GBWO3zRzh+X8=; 7:hu/l4pL5I4M4FIwcDPDf2gysjCDTPmYpsuQCylwfFEfjgz6KZ5H1sL/KTmPg7OtA39aHzTegKNN4Di4usMCuiv4JMVXU1eHUJe+xdfb/GmEhcOcSNLr8B3qLF+r3RRvxB8ere5W2YhWwgR0/tN0jGiKa7fBZCanS73OTdXGF9MlwzcasXn8YjN5S+2tTAYxSt1smOtyc3D7dcoJZyJtYIwy7fz8D2kY0pI2ZGFdYFF0idwqvQn8+GEIo7gTngyNC SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2017 16:13:28.5283 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c859a353-5bcb-4823-4520-08d5246826b6 X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.12]; Helo=[p-emfe01a-sac.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0501MB2066 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 05 Nov 2017 16:13:32 -0000 Simon J. Gerraty wrote: > David Wolfskill wrote: > > =3D=3D=3D> Building for nvidia-driver-340-340.102 > > =3D=3D=3D> src (all) > > make[6]: "/usr/src/share/mk/bsd.obj.mk" line 89: Malformed conditional= (defined(SRCTOP) && (${CANONICALOBJDIR} =3D=3D /${RELDIR} || ${.OBJDIR} = =3D=3D /${RELDIR})) > > make[6]: Fatal errors encountered -- cannot continue > > make[6]: stopped in /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/comm= on/ports/x11/nvidia-driver-340/work/NVIDIA-FreeBSD-x86_64-340.102/src > > *** Error code 1 > = > I think I might have a fix for that. Or rather I know what the issue is - RELDIR isn't defined because .CURDIR isn't under SRCTOP, if OBJTOP were defined at that point, the fix is trivial, but in the current tree that may not be so. If .CURDIR isn't under SRCTOP, RELDIR is of questionable value anyway. For now you can avoid the error with below. Index: share/mk/bsd.obj.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- share/mk/bsd.obj.mk (revision 325436) +++ share/mk/bsd.obj.mk (working copy) @@ -85,7 +85,7 @@ CANONICALOBJDIR:=3D/usr/obj${.CURDIR} .endif = -.if defined(SRCTOP) && \ +.if defined(RELDIR) && \ (${CANONICALOBJDIR} =3D=3D /${RELDIR} || ${.OBJDIR} =3D=3D /${RELDIR}= ) .error .OBJDIR incorrectly set to /${RELDIR} .endif