From owner-freebsd-current@FreeBSD.ORG Fri Sep 20 20:47:25 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 56410471; Fri, 20 Sep 2013 20:47:25 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1580120C8; Fri, 20 Sep 2013 20:47:25 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::15a4:1bd6:5edc:9a88] (unknown [IPv6:2001:7b8:3a7:0:15a4:1bd6:5edc:9a88]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 999815C44; Fri, 20 Sep 2013 22:47:20 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_5B1D6E0B-971D-475F-811E-D408BF133284"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: Doing it wrong: Building world with lang/clang-devel From: Dimitry Andric In-Reply-To: <1379702370.2402.3.camel@localhost> Date: Fri, 20 Sep 2013 22:47:11 +0200 Message-Id: <1DC63BC1-D921-4B40-8FDE-C9DD0D5496D8@FreeBSD.org> References: <1379702370.2402.3.camel@localhost> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.1510) Cc: freebsd-current@freebsd.org, Brooks Davis X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 20 Sep 2013 20:47:25 -0000 --Apple-Mail=_5B1D6E0B-971D-475F-811E-D408BF133284 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Sep 20, 2013, at 20:39, Sean Bruno wrote: > wow, that didn't work at all. :-) > > I set these in make.conf: > > CC=/usr/local/bin/clang > C++=/usr/local/bin/clang++ > CPP=/usr/local/bin/clang++ You should use XCC, XCXX and XCPP instead, as described here: https://wiki.freebsd.org/ExternalToolchain You will almost certainly also need: NO_WERROR= to disable fatal errors on buildworld warnings. > It exploded pretty badly: > > http://people.freebsd.org/~sbruno/doingitwrong.txt This particular failure is probably due to the clang-devel port still using libstdc++ by default, and recent versions of head don't have libstdc++ anymore. So add: CXXFLAGS+= -stdlib=libc++ to your src.conf. Last but not least, you can check the status of recent FreeBSD head with trunk clang here (thanks to Pawel Worach for maintaining these bots): http://llvm-amd64.freebsd.your.org:8010/builders/freebsd-clang-amd64 As you can see, there have been quite a few problems lately... -Dimitry --Apple-Mail=_5B1D6E0B-971D-475F-811E-D408BF133284 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iEYEARECAAYFAlI8tFgACgkQsF6jCi4glqOMlgCg65iNhj0IrRLQkELh3LHxqnJz uV0AoMZxeKFEh1B0RB8lsX9wdai5hMDY =778W -----END PGP SIGNATURE----- --Apple-Mail=_5B1D6E0B-971D-475F-811E-D408BF133284--