From owner-freebsd-current@FreeBSD.ORG Wed May 4 14:20:40 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 1AA161065673 for ; Wed, 4 May 2011 14:20:40 +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 D07CD8FC26 for ; Wed, 4 May 2011 14:20:39 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:e12e:ab0b:b5d8:d1f0] (unknown [IPv6:2001:7b8:3a7:0:e12e:ab0b:b5d8:d1f0]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B81895C59; Wed, 4 May 2011 16:20:38 +0200 (CEST) Message-ID: <4DC160B9.5060004@FreeBSD.org> Date: Wed, 04 May 2011 16:20:41 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110415 Lanikai/3.1.11pre MIME-Version: 1.0 To: Manfred Antar References: <201105040107.p4417NTR048534@pozo.com> <4DC0F46C.3020806@FreeBSD.org> <201105041344.p44DiOId032272@pozo.com> In-Reply-To: <201105041344.p44DiOId032272@pozo.com> 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, 04 May 2011 14:20:40 -0000 On 2011-05-04 15:44, Manfred Antar wrote: ... > src.conf: > > WITHOUT_DYNAMICROOT=yes > WITH_IDEA=yes > .if !defined(CC) || ${CC} == "cc" > CC=clang > .endif > .if !defined(CXX) || ${CXX} == "c++" > CXX=clang++ > .endif > #Don't die on warnings > NO_WERROR= > WERROR= Aha. Please move the clang-related stuff to make.conf instead, e.g. this fragment: .if !defined(CC) || ${CC} == "cc" CC=clang .endif .if !defined(CXX) || ${CXX} == "c++" CXX=clang++ .endif #Don't die on warnings NO_WERROR= WERROR= It will not work properly if you put it in src.conf. (You can really only use src.conf for WITH_FOO and WITHOUT_BAR type settings.)