Doing it wrong: Building world with lang/clang-devel
Dimitry Andric
dim at FreeBSD.org
Fri Sep 20 20:47:25 UTC 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20130920/e02c3056/attachment.sig>
More information about the freebsd-current
mailing list