Date: Thu, 1 Sep 2016 22:54:05 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Ben Lavery <ben.lavery@hashbang0.com> Cc: freebsd-ports@freebsd.org Subject: Re: codecvt and libc++ on FreeBSD 9.x Message-ID: <C4F56161-E263-46D7-8A83-01671DE92B50@FreeBSD.org> In-Reply-To: <36e5134f-ef31-ec5a-c029-9a005f4c8e8d@hashbang0.com> References: <36e5134f-ef31-ec5a-c029-9a005f4c8e8d@hashbang0.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_BC29F4F2-E914-4B49-8873-8F88B2B47078 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 01 Sep 2016, at 20:39, Ben Lavery <ben.lavery@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=3D212278) 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: >=20 > CC=3Dclang > CXX=3Dclang++ > CPP=3Dclang-cpp > WITH_LIBCPLUSPLUS=3Dyes 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=3Dlibc++ 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 --Apple-Mail=_BC29F4F2-E914-4B49-8873-8F88B2B47078 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.30 iEYEARECAAYFAlfIlW0ACgkQsF6jCi4glqNzCgCdFs2qcxfxZS9bN3YiLj+RBgTA GGUAn1WV1Xay0e2moswEFXlsOHd4x+Zo =8wLm -----END PGP SIGNATURE----- --Apple-Mail=_BC29F4F2-E914-4B49-8873-8F88B2B47078--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C4F56161-E263-46D7-8A83-01671DE92B50>