From owner-freebsd-current@FreeBSD.ORG Wed Dec 28 16:51:37 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 38CAC106566C; Wed, 28 Dec 2011 16:51:37 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 98AFC8FC14; Wed, 28 Dec 2011 16:51:36 +0000 (UTC) Received: by werb13 with SMTP id b13so11180853wer.13 for ; Wed, 28 Dec 2011 08:51:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=BvLDmiqHbEw7kKzbE7LNrBk6MNj2BBOOXaa29mEvdDM=; b=KN9ApItUk2WBs2DPRH//TvzA9K+hbICABm6AiyHvqOjgdssS4qjcYtYjcqMGm+gn7Q uUaHMJYZaXHcyrntuIulV5YwOxlaAbMAYXQEEzAIc3ptOg9KKjvgNrJTKf4YbUUgg2P2 CUsEI0Cb36jsSLTE/27cHjDeD/XCKtXHwr0cg= Received: by 10.216.143.206 with SMTP id l56mr24097121wej.46.1325091095497; Wed, 28 Dec 2011 08:51:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.177.68 with HTTP; Wed, 28 Dec 2011 08:51:14 -0800 (PST) In-Reply-To: <4EFB4637.10604@FreeBSD.org> References: <201105040107.p4417NTR048534@pozo.com> <4EFB4324.1060002@FreeBSD.org> <4EFB4637.10604@FreeBSD.org> From: Renato Botelho Date: Wed, 28 Dec 2011 14:51:14 -0200 Message-ID: To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:51:37 -0000 On Wed, Dec 28, 2011 at 2:39 PM, Dimitry Andric wrote: > On 2011-12-28 17:32, Renato Botelho wrote: >> >> On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andric =A0wrot= e: > > ... > >>> Most likely, it is due to the way you set CC, CXX and/or CPP in >>> make.conf. =A0Can you please post that file? >> >> >> Sure, follow my src.conf: >> >> .if !defined(CC) || ${CC} =3D=3D "cc" >> CC=3Dclang >> .endif >> .if !defined(CXX) || ${CXX} =3D=3D "c++" >> CXX=3Dclang++ >> .endif >> .if !defined(CPP) || ${CPP} =3D=3D "cpp" >> CPP=3Dclang-cpp >> .endif > > > This part should go into make.conf, *not* src.conf. =A0If 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=3D >> WERROR=3D >> # Don't forget this when using Jails! >> NO_FSCHG=3D > > > This is fine to have in src.conf. Worked like a charm. Thanks!! --=20 Renato Botelho