Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2013 22:47:11 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        sbruno@freebsd.org
Cc:        freebsd-current@freebsd.org, Brooks Davis <brooks@FreeBSD.org>
Subject:   Re: Doing it wrong:  Building world with lang/clang-devel
Message-ID:  <1DC63BC1-D921-4B40-8FDE-C9DD0D5496D8@FreeBSD.org>
In-Reply-To: <1379702370.2402.3.camel@localhost>
References:  <1379702370.2402.3.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <sean_bruno@yahoo.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1DC63BC1-D921-4B40-8FDE-C9DD0D5496D8>