From owner-freebsd-current@FreeBSD.ORG Tue Jun 28 19:49:48 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 0C522106564A for ; Tue, 28 Jun 2011 19:49:48 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id C08F98FC08 for ; Tue, 28 Jun 2011 19:49:47 +0000 (UTC) Received: by vxg33 with SMTP id 33so584501vxg.13 for ; Tue, 28 Jun 2011 12:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=IWZaNieM9Es5oLBD+CrlewpUpapSVWQS2rz04383bdc=; b=paOjokwE5/T5LPZ4GI8PshvXxGpbxulfsh7+NUDM2wZKxu0KTabUOTzMsXVzfd9WZn yGLVeKhDJXKI4VvccQxgRikAB9E8NAlLue6AmW1tdcu48HzNZ3BMkuvCRVYnIt6WB0m7 E4l+gcJpfZ5WS3uDQvHa+CQGwtRC7nakl+o1Y= MIME-Version: 1.0 Received: by 10.52.109.66 with SMTP id hq2mr8923260vdb.146.1309290587063; Tue, 28 Jun 2011 12:49:47 -0700 (PDT) Received: by 10.220.92.201 with HTTP; Tue, 28 Jun 2011 12:49:47 -0700 (PDT) In-Reply-To: <86y60ld9gk.fsf@gmail.com> References: <4E07EBA2.70500@shadowsun.net> <4E08778D.2050302@FreeBSD.org> <4E08A8DB.2020805@shadowsun.net> <86y60ld9gk.fsf@gmail.com> Date: Tue, 28 Jun 2011 12:49:47 -0700 Message-ID: From: Garrett Cooper To: Pan Tsu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Current Subject: Re: Clang buildworld failure due to multiple definitions of __isnanf 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: Tue, 28 Jun 2011 19:49:48 -0000 On Tue, Jun 28, 2011 at 12:47 PM, Pan Tsu wrote: > Garrett Cooper writes: > > [...] >>> Just noticed, the CFLAGS would disable optimization, which would explai= n why >>> no one else seems to see this. =A0Still, I think the underlying issue w= arrants >>> investigation. >> >> Two things are wrong here: >> 1. You should use CC?=3D, CXX?=3D, etc in order to properly crossbuild (= as >> Warner pointed out to me in another thread). > > Huh? sys.mk already defines ${CC} and *before* make.conf. > > =A0$ echo 'CC ?=3D clang' >foo.mk > =A0$ __MAKE_CONF=3Dfoo.mk make -dv /dev/null |& fgrep :CC > =A0Global:CC =3D cc I was probably misremembering CPUTYPE?=3D. Thanks, -Garrett