From owner-freebsd-ports@freebsd.org Thu Sep 1 20:54:09 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A244EBCCA9F for ; Thu, 1 Sep 2016 20:54:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 69A8E320 for ; Thu, 1 Sep 2016 20:54:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::98e3:68d4:ca50:7a51] (unknown [IPv6:2001:7b8:3a7:0:98e3:68d4:ca50:7a51]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2D8EA14F7; Thu, 1 Sep 2016 22:54:06 +0200 (CEST) Subject: Re: codecvt and libc++ on FreeBSD 9.x Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_BC29F4F2-E914-4B49-8873-8F88B2B47078"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6.1 From: Dimitry Andric In-Reply-To: <36e5134f-ef31-ec5a-c029-9a005f4c8e8d@hashbang0.com> Date: Thu, 1 Sep 2016 22:54:05 +0200 Cc: freebsd-ports@freebsd.org Message-Id: References: <36e5134f-ef31-ec5a-c029-9a005f4c8e8d@hashbang0.com> To: Ben Lavery X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 20:54:09 -0000 --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 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 ... > 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--