From owner-freebsd-arch@freebsd.org Thu Nov 5 16:02:47 2015 Return-Path: Delivered-To: freebsd-arch@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 816EBA27F5C; Thu, 5 Nov 2015 16:02:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (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 4A1811C32; Thu, 5 Nov 2015 16:02:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igpw7 with SMTP id w7so13880040igp.1; Thu, 05 Nov 2015 08:02:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=i3VzXLmtFuqG3yCq0zxGnSzVGipIgJxaYaJBkv1vGfk=; b=VzzmjVvUrU1wF1l/ROOqzwA1fpZ1Q5fWFJFjtuAc53VdPM9VSNt6WAXpdb5xDzaYSO bpQK/fwruJafcauy6cCXVwD4qY8sk4MeapT8N/alSmLfYHZNQywEGJaq0CTZwYmQkjrt 5g+UapQBhvIJP7ID6KHfkfLXJ0vsjcru/JgKV9opH9zHRn2NnsVwwVq80wo6P2ubv0Eu AQbrQmAGANhsJBq9rywYwg8PFUHH6nB2yqSZ6MEhAhLb3rpYhl0PqUthERPO7doCaxkp bNGboyMlBFbNcNFJTPFBf43Mcsh4BQq0WpPQZtzsRLi3GifKU/4Ol8F9XExSDn9b2NcY U/Lw== MIME-Version: 1.0 X-Received: by 10.50.6.36 with SMTP id x4mr3871063igx.61.1446739366682; Thu, 05 Nov 2015 08:02:46 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.217.196 with HTTP; Thu, 5 Nov 2015 08:02:46 -0800 (PST) In-Reply-To: <35BA9AA9-6DFA-4CFC-8AA8-25B1D9EDD494@gmail.com> References: <26BD9533-2C1E-4198-9AC2-BDD77A08337D@dons.net.au> <35BA9AA9-6DFA-4CFC-8AA8-25B1D9EDD494@gmail.com> Date: Thu, 5 Nov 2015 08:02:46 -0800 X-Google-Sender-Auth: PjciV5HHLYkLsl9W4qQ2jFN0yvY Message-ID: Subject: Re: COMPILER_TYPE and installworld From: Adrian Chadd To: NGie Cooper Cc: "O'Connor, Daniel" , "freebsd-mips@freebsd.org" , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 16:02:47 -0000 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 b= ecause it can't work it out? If so perhaps the easiest way would be to add = 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 otherwi= se in the distribution/install phases. > > If it were up to me, CC would be false when make install* is run from Mak= efile.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? :) -adrian