From owner-freebsd-mips@freebsd.org Thu Nov 5 18:13:22 2015 Return-Path: Delivered-To: freebsd-mips@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 D50B8A27D3E for ; Thu, 5 Nov 2015 18:13:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qg0-x236.google.com (mail-qg0-x236.google.com [IPv6:2607:f8b0:400d:c04::236]) (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 8161B12DE for ; Thu, 5 Nov 2015 18:13:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by qgad10 with SMTP id d10so72998895qga.3 for ; Thu, 05 Nov 2015 10:13:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp_com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=JuZJh/soHvxEfrEIjS/a1yXqYYvhs2xau+yYS3kcMfA=; b=GBq2fSXeU7rJz9iRoKG4XgzdgdHKMug2UY1IyPCocmz7r7sOyWbzsj8d2X2TMTqwlo bIICCqtchFxhDLZgiCs3PN6gJMYKrWU7WJnc6akditk49jfBNzWarD+eHrzgL/iDGpXR J3aC3wKdliqx4jnQarimcQ2jQnCp7ZVPb3u3V5STNr2tlPgOZ5HKyiw1n2Ya+kC8XxJc saIOFS1lA0vKjNMxtVGofo9wxyz3zRtfltg42Gx62HcSji36IFFM2s6GMvwSdJ1IN3wm fYL7wUdCBnbrK7e3ljN0F3CAoyaHYH3aPdAZkVu4apebDMsnDSoLWWL8U1PQ3pjC0IbW QIJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=JuZJh/soHvxEfrEIjS/a1yXqYYvhs2xau+yYS3kcMfA=; b=m678y6UZ+JUE9MmIPwzVVBy2bJBKyHSBabSyF+ORkkBz5BALoFk+T/4SLiN2KBidbp IgGs4sbZxYyqqpkQqRC0t/ScFnMkdDSIfIY0vpbhpOmEFvGXrF0yIXYivbwVm08eZr0N VLTbeKXFqMQGtKNuxELvhIU5rg2OPw6aNe7Pn7GJrdcNG7BJVsFJNJeTmtGYOCsVqgsu Tl1YYuTZ+sYvfjV1SgUz9UVVXZEPekXCOQpXg+BwhKz5JnQDU7Wyk9fPVo4UU980Leh0 pXaqKBBknEpCqUmgJfy0fEHwqD0HxDfQteVFOQYtwknfgTxyTjGMHDxKSvHx0CLUSlmG Na+A== X-Gm-Message-State: ALoCoQmTRS07bEqWTlLhBZLL/oGtXDuEuCWwShXFpHG5Z8SF7LeiiwqwIVz5lPgU1kvTLltrX1wl MIME-Version: 1.0 X-Received: by 10.140.221.198 with SMTP id r189mr9454270qhb.94.1446747201281; Thu, 05 Nov 2015 10:13:21 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.140.104.226 with HTTP; Thu, 5 Nov 2015 10:13:21 -0800 (PST) X-Originating-IP: [2601:280:4900:3700:1c53:4baf:e617:68c6] In-Reply-To: References: <26BD9533-2C1E-4198-9AC2-BDD77A08337D@dons.net.au> <35BA9AA9-6DFA-4CFC-8AA8-25B1D9EDD494@gmail.com> Date: Thu, 5 Nov 2015 11:13:21 -0700 X-Google-Sender-Auth: Bw3ZS6s1utCmm4GQVFCOCvqMB_g Message-ID: Subject: Re: COMPILER_TYPE and installworld From: Warner Losh To: Adrian Chadd Cc: NGie Cooper , "O'Connor, Daniel" , "freebsd-mips@freebsd.org" , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 18:13:22 -0000 On Thu, Nov 5, 2015 at 9:02 AM, Adrian Chadd wrote: > On 4 November 2015 at 23:46, NGie Cooper wrote: > > > >> On Nov 4, 2015, at 23:08, O'Connor, Daniel wrote: > >> > >> > >>> On 5 Nov 2015, at 16:31, Adrian Chadd wrote: > >>> So! In the short term, is there any way that during > >>> installworld/installkernel we can also set CC, etc appropriately? > >>> Otherwise we're either using the wrong compiler logic/version > >>> (installkernel) or we're just plain not going to work (installworld.) > >> > >> Why does installworld/kernel care what the compiler type is? > >> > >> Or is it just something incidental which gets pulled in that complains > because it can't work it out? If so perhaps the easiest way would be to a= dd > a flag which turns off compiler detection and set it for install* > >> > >> If install* _do_ need to know the compiler type then, bleh.. > > > > It shouldn=E2=80=99t care. bsd.compiler.mk just has the intelligence of= a stump > and Makefile.inc1 doesn=E2=80=99t tell bsd.compiler.mk to do otherwise in= the > distribution/install phases. > > > > If it were up to me, CC would be false when make install* is run from > Makefile.inc1. > > I don't mind what people do, I'd just really appreciate some help > fixing this up. I think we're pretty close to being able to transition > mips over to using 100% external toolchain only, and this is the > starting point. > > So, what can we do? Pretty please? :) > Sadly, CC=3Dtrue (or CC=3Dfalse) doesn't solve the problem. The defaults on the system depend, stupidly[*], on the compiler you are using and it's capabilities. This means you won't install all the bits that need C++11 to build, for example. I'm joining this discussion late. What circumstances do we get CC wrong in install*? For ages, that's been working properly. What changed? I suspect 'nothing' and this is nothing more than a pilot error, but it's possible it's a real bug. Most likely it's the specific flavor of external toolchain that Bapt added isn't quite setting variables the way it should. Warner [*] I've railed against this in the past to no good effect, mind you.