From owner-freebsd-current@FreeBSD.ORG Wed Feb 23 13:31:56 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 75A75106566C for ; Wed, 23 Feb 2011 13:31:56 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id C8E718FC0A for ; Wed, 23 Feb 2011 13:31:55 +0000 (UTC) Received: by fxm19 with SMTP id 19so4792261fxm.13 for ; Wed, 23 Feb 2011 05:31:54 -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; bh=1noBvkIAAGUppQ9VND8JXMHxZYLUrxHtdkXmjllSHqw=; b=TGigL1vF01EI6rM+7NfZ01rrwW9rlbSjxzLrjVF4Y5odpzPsd6U9isDwxqyE2/7EPh SOGQNF8HgQ3QVmgIflg5J2Vw2uVXIsES9NEq8v7FxGhVjS/JrcLHUaDpU/nVjNeWhyiK ZYpQTCLD0BsSNtKcXXXS8KfTxZZyBGl8JAQns= 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; b=NDHGMN/TVQaEtBy/XkXthTOw911uKjf71fIjXsVPgyMUsApwt2D4Kg3XdFbDgyGfAn hVRiN1OI4m/6t0O4SjSGhCsby1tMQ0b5lu/p692+rUjZEpu0Y9dL8xMg2yt/KCN6hf0k KG0LtRqdZX4jQ3OpgqmcF4RHiCkuwoUBH+N0A= Received: by 10.223.63.75 with SMTP id a11mr2109991fai.88.1298467914076; Wed, 23 Feb 2011 05:31:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.98.203 with HTTP; Wed, 23 Feb 2011 05:31:34 -0800 (PST) In-Reply-To: References: <4D627FBE.1070700@FreeBSD.org> <4D63D28B.4080900@FreeBSD.org> From: Renato Botelho Date: Wed, 23 Feb 2011 10:31:34 -0300 Message-ID: To: "datastream datastream.freecity" Content-Type: text/plain; charset=ISO-8859-1 Cc: Olivier Smedts , freebsd-current@freebsd.org, Dimitry Andric Subject: Re: Can't buildworld since Clang update 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, 23 Feb 2011 13:31:56 -0000 On Wed, Feb 23, 2011 at 10:22 AM, datastream datastream.freecity wrote: > I deleted all files in /usr/src and /usr/obj. it changes nothing, i still > get same error. > > In /etc/make.conf: > .if !defined(CC) || ${CC} == "cc" > CC=clang > .endif > .if !defined(CXX) || ${CXX} == "c++" > CXX=clang++ > .endif > # Don't die on warnings > NO_WERROR= > WERROR= > STRIP= > CFLAGS+=-fno-omit-frame-pointer I'm not having problems here, my /etc/make.conf contains: .if ${.CURDIR:N*usr/src*}=="" . if !defined(CC) || ${CC} == "cc" CC=clang . endif . if !defined(CXX) || ${CXX} == "c++" CXX=clang++ . endif # Don't die on warnings NO_WERROR= WERROR= .endif And my /etc/src.conf: .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's building fine with clang. -- Renato Botelho