From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 25 02:00:38 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBD3C518; Mon, 25 Nov 2013 02:00:38 +0000 (UTC) Received: from mail-oa0-x22b.google.com (mail-oa0-x22b.google.com [IPv6:2607:f8b0:4003:c02::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7BCE022F7; Mon, 25 Nov 2013 02:00:38 +0000 (UTC) Received: by mail-oa0-f43.google.com with SMTP id i7so3711887oag.30 for ; Sun, 24 Nov 2013 18:00:37 -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; bh=8mTgvQs9ewYpIMyz+a+AaJlwaCZPUIWM1lbgAMdtfbo=; b=ewmuEA+oRGHfw866BCGhBpKbOaI8ZLP4CU6XcY3TZPsrQHZEqqPkB7ix0i3Jh8ZLL3 bAUkCQA8KukWE04xn3BmbzMWBD2Oic68l/QW/ImUM4CuEmgX3vIMruEcauqiSHLDZ6qA P6JbtrOB56e933PoRRax3g9uMIqaA+S2feOxOMVKB4AQJzap4mmBt/vM18TCFai7OQmf IE4WYzlDZ1BQYbllbuxt8K10DSEEv26nJGpm9+Qg/F18r0JysPpD2xueDQTc1amV05Nj AorZJeMk2ngIBw0pehXLATn6Znm6YzQx5w/51SE4s4ZMRtx0gmNcoBs7zWFIRk1nTR97 wzqA== MIME-Version: 1.0 X-Received: by 10.60.45.102 with SMTP id l6mr4195018oem.36.1385344837767; Sun, 24 Nov 2013 18:00:37 -0800 (PST) Sender: mdf356@gmail.com Received: by 10.182.110.195 with HTTP; Sun, 24 Nov 2013 18:00:37 -0800 (PST) In-Reply-To: <20131125013122.GE1627@glenbarber.us> References: <20131125013122.GE1627@glenbarber.us> Date: Sun, 24 Nov 2013 18:00:37 -0800 X-Google-Sender-Auth: op2NdD6whL1IxR15ix3CM9RufDY Message-ID: Subject: Re: Building with gcc? From: Matthew Fleming To: Glen Barber Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: freebsd-hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2013 02:00:38 -0000 On Sun, Nov 24, 2013 at 5:31 PM, Glen Barber wrote: > On Sun, Nov 24, 2013 at 05:28:05PM -0800, Matthew Fleming wrote: > > I'm trying to test a change to gcc, and I'd like to do a full > > buildworld/buildkernel using the gcc compiler. So I added this to my > > /etc/src.conf (and make.conf, since I can't remember under which > scenarios > > they're different): > > > > WITHOUT_CLANG=YES > > WITH_GCC=YES > > WITH_GNUCXX=YES > > > > and I started a buildworld. It's currently building clang. > > > > Why is it building clang? > > > > You also want WITHOUT_CLANG_IS_CC=YES. I have no reasonable explanation > for why it is different. > > You'll also need: > W_ERROR= > NO_WERROR=YES Whoops. I had known about WITH_CLANG_IS_CC back when it wasn't yet the default. Somehow I didn't make the connection to having to reverse it now. Seems to be working as I expect now. Thanks, matthew