On Sep 20, 2013, at 20:39, Sean Bruno <sean_br...@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

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to