On 01 Sep 2016, at 20:39, Ben Lavery <ben.lav...@hashbang0.com> wrote:
...
> In file included from /root/bunnysay/work/bunnysay-1.0/src/BunnySay.cpp:22:0:
> /root/bunnysay/work/bunnysay-1.0/src/BunnySay.h:33:19: fatal error: codecvt: 
> No such file or directory
> #include <codecvt>
...
> On the submission (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212278) 
> CPM has said of the issue "Second it seems that codecvt is missing, so it 
> needs libc++ support" - but I'm not sure how to add this.  I've tried adding 
> the following which I found in multiple threads on the forums, but to no 
> avail:
> 
> CC=clang
> CXX=clang++
> CPP=clang-cpp
> WITH_LIBCPLUSPLUS=yes

Putting this in your make.conf, then rebuilding world and installing it,
will install libc++ headers and libraries into your base system.  That
is step one.

Step two is to add -stdlib=libc++ to your clang command line.  On 9.x
and earlier, clang uses libstdc++ by default, so you have to actively
tell it to use libc++.


> I *think* this is because clang is too old on FreeBSD 9.3?

FreeBSD 9.3 has clang 3.4.1, which should be new enough, but libc++ is
not installed by default.

> But I'm not sure if I can/should reference a newer version from ports (and 
> how to go about this in the proper way), and how to make this apply to 
> FreeBSD 9.x only as it works fine "as is" on FreeBSD 10.

You could make it depend on the devel/libc++ port, as some other ports
do.

-Dimitry

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

Reply via email to