Re: Doing it wrong: Building world with lang/clang-devel

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 20 Sep 2013 22:47:11 +0200
On Sep 20, 2013, at 20:39, Sean Bruno <sean_bruno_at_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


Received on Fri Sep 20 2013 - 18:47:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC