From owner-freebsd-current@FreeBSD.ORG Wed Dec 28 16:39:18 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D63C51065670 for ; Wed, 28 Dec 2011 16:39:18 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 595408FC0A for ; Wed, 28 Dec 2011 16:39:18 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:110:9155:3851:5ce] (unknown [IPv6:2001:7b8:3a7:0:110:9155:3851:5ce]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 9D2EC5C37; Wed, 28 Dec 2011 17:39:17 +0100 (CET) Message-ID: <4EFB4637.10604@FreeBSD.org> Date: Wed, 28 Dec 2011 17:39:19 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Renato Botelho References: <201105040107.p4417NTR048534@pozo.com> <4EFB4324.1060002@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: Clang error make buildworld X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 28 Dec 2011 16:39:18 -0000 On 2011-12-28 17:32, Renato Botelho wrote: > On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andric wrote: ... >> Most likely, it is due to the way you set CC, CXX and/or CPP in >> make.conf. Can you please post that file? > > Sure, follow my src.conf: > > .if !defined(CC) || ${CC} == "cc" > CC=clang > .endif > .if !defined(CXX) || ${CXX} == "c++" > CXX=clang++ > .endif > .if !defined(CPP) || ${CPP} == "cpp" > CPP=clang-cpp > .endif This part should go into make.conf, *not* src.conf. If you want to use clang only for src, not for anything else, put: .if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} # [... set CC, etc here... ] .endif > # Don't die on warnings > NO_WERROR= > WERROR= > # Don't forget this when using Jails! > NO_FSCHG= This is fine to have in src.conf.