From owner-freebsd-current@FreeBSD.ORG Thu Mar 3 11:28:06 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8D9C106564A for ; Thu, 3 Mar 2011 11:28:06 +0000 (UTC) (envelope-from marcelorossi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 35C4D8FC1E for ; Thu, 3 Mar 2011 11:28:05 +0000 (UTC) Received: by wwb31 with SMTP id 31so1265959wwb.31 for ; Thu, 03 Mar 2011 03:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=WwBTTcbqA170iwcbnFJnx4F3QwbLFi1MtWuRWsajkJw=; b=tXFU0FHIvzvLBa4DIixW+LKgNK+ApYux//zCGdKADEsU6DVS+DrTd8HiRo9DYs7y/4 sz/Rxb19jThZASH0iFdchDwWorejWbgaDx6AzHiBAJ1dpkrhOlJi4lN748zYkfton4LY F9qm21awIjrEt1tmIE/lFm61i5G8oW0XUHVf4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=PCmGiLANTXp+OZiN+lojAZizB9MeMN1B+cyRvr0jMPYSGn4FKZNgjD8/ytuQF6s+2H bkkOHZOVZxznnSTd0F2z+qWpm1MJLguU3EpeNx+xNp+shrD7ANzo44Ec4SXyZBD1u8Do SVGceNFiRPAKQfhzvnVzCac3SflwQNbzpx3is= Received: by 10.216.24.132 with SMTP id x4mr494199wex.81.1299151682592; Thu, 03 Mar 2011 03:28:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.217.3.12 with HTTP; Thu, 3 Mar 2011 03:26:56 -0800 (PST) In-Reply-To: <4D6B8FCA.5050203@FreeBSD.org> References: <11C58791-9103-4C0E-8B35-EE46A4A6D3D4@kientzle.com> <4D6B8FCA.5050203@FreeBSD.org> From: "Marcelo/Porks" Date: Thu, 3 Mar 2011 08:26:56 -0300 Message-ID: To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD-current Current Subject: Re: Can't update CLang-based system 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: Thu, 03 Mar 2011 11:28:06 -0000 On Mon, Feb 28, 2011 at 09:06, Dimitry Andric wrote: > On 2011-02-28 04:30, Tim Kientzle wrote: >> >> I have a FreeBSD-CURRENT AMD64 system here that was last updated at >> r215029. >> >> I'm trying to update it to r219079, but the build fails in lib/libz when >> it tries to compile gvmat64.S. =A0It looks like the Makefile here has a >> workaround for clang on AMD64, but it doesn't seem to actually be workin= g in >> this case. > > For this to work, you must put the following fragment in /etc/make.conf, > *not* in /etc/src.conf. > > .if !defined(CC) || ${CC} =3D=3D "cc" > CC=3Dclang > .endif > .if !defined(CXX) || ${CXX} =3D=3D "c++" > CXX=3Dclang++ > .endif > # Don't die on warnings > NO_WERROR=3D > WERROR=3D > > The problem with src.conf is that is only read when make encounters a > .include or statement, which usually is at > the end of a Makefile. =A0Thus, any checks done on ${CC} or ${CXX} in the > beginning of a Makefile pick up only the default value. Hi. This worked for me. Thanks for your help --=20 Marcelo Rossi "This e-mail is provided "AS IS" with no warranties, and confers no rights.= " "I have nothing against God, I just hate His fan club"