From owner-freebsd-current@freebsd.org Mon Jul 20 14:00:33 2015 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 F132B9A535C for ; Mon, 20 Jul 2015 14:00:32 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C201BF75; Mon, 20 Jul 2015 14:00:32 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by pabkd10 with SMTP id kd10so29856064pab.2; Mon, 20 Jul 2015 07:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=L6fVlZGj5B1/TuINJyvL6d8ez5PRYdGtPhnlu90xKik=; b=LcqUSYrozulGuF7ruD/OnhA8Tfeqv9BypSfx7WKPAi7R4Be/+zTs5E8Cpp3RlDfBrq BEzSKvAs/9zcQYC2Ss/a5W1mXfa7sRyoZ0aBXBWsWiimgDwOHeAlmlVCAQndE+tdnhHR O1YnVWoLP2TKiLXFp9Zn0jxz4npf+2FTvyYMGqj0gJoJHlBXUAu07t8kCCUAxnsc9QHX hCV+vkSrxVp9KOua99/MJO9Zrmnv442ix4ss2qS45EgSTEV+8H2UbBr3Qj63CmXU8MvZ yYpXRdlE1WS7m7kLooOpeszhVlQ8BJhrIbimjOjtDtf/XTbeGXG7eIrIE5xrbOfwNo+m 5pBQ== X-Received: by 10.70.24.33 with SMTP id r1mr24833393pdf.20.1437400831983; Mon, 20 Jul 2015 07:00:31 -0700 (PDT) Received: from ox ([2601:641:c000:600:a17a:4d83:89e7:582e]) by smtp.gmail.com with ESMTPSA id xp10sm13341571pac.34.2015.07.20.07.00.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jul 2015 07:00:30 -0700 (PDT) Date: Mon, 20 Jul 2015 07:00:25 -0700 From: Navdeep Parhar To: Don Lewis Cc: darius@dons.net.au, sjg@juniper.net, tim@kientzle.com, rmacklem@uoguelph.ca, freebsd-current@FreeBSD.org Subject: Re: -current broken when MAKEOBJDIRPREFIX is set (was: src is on NFS) Message-ID: <20150720140025.GA9610@ox> Mail-Followup-To: Don Lewis , darius@dons.net.au, sjg@juniper.net, tim@kientzle.com, rmacklem@uoguelph.ca, freebsd-current@FreeBSD.org References: <201507200605.t6K65msT089869@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201507200605.t6K65msT089869@gw.catspoiler.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Mon, 20 Jul 2015 14:00:33 -0000 On Sun, Jul 19, 2015 at 11:05:48PM -0700, Don Lewis wrote: > On 19 Jul, O'Connor, Daniel wrote: > > > >> On 19 Jul 2015, at 02:56, Simon J. Gerraty wrote: > >> > >> O'Connor, Daniel wrote: > >>> However, Crochet _does_ build on the NFS client _and_ when the > >>> source tree isn't in /usr/src which makes this issue very strange > >>> :-/ > >> > >> I've seen similar errors in rescue... (no NFS) though I cannot > >> quite recall the cause other than it seems very sensitive > >> to MAKEOBJDIRPREFIX value. > > > > Yeah the subject is wrong (I just updated it). > > > > I just did a build like so and it worked.. > > env MAKEOBJDIRPREFIX=/src/obj-amd64 make -j 8 buildworld > > > > But this did not.. > > make -j 8 buildworld MAKEOBJDIRPREFIX=/src/obj-amd64 > > > > So, it seems MAKEOBJDIRPREFIX only works as an environmental variable > > - I wonder if there is a way the make system can be changed to warn > > about that? > > At least it is documented in /usr/share/mk/bsd.obj.mk: > > # MAKEOBJDIRPREFIX Specifies somewhere other than /usr/obj to root the object > # tree. Note: MAKEOBJDIRPREFIX is an *environment* variable > # and works properly only if set as an environment variable, > # not as a global or command line variable! > # > # E.g. use `env MAKEOBJDIRPREFIX=/somewhere/obj make' > > Not the most obvious place to look ... It is documented in build(7) too: MAKEOBJDIRPREFIX Defines the prefix for directory names in the tree of built objects. Defaults to /usr/obj if not defined. This variable should only be set in the environment and not via /etc/make.conf or the command line. Regards, Navdeep