From owner-freebsd-stable@FreeBSD.ORG Mon Feb 10 07:57:02 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 05048FB8; Mon, 10 Feb 2014 07:57:02 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B028C1FC0; Mon, 10 Feb 2014 07:57:01 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::20a4:db0:4ac7:1cb7] (unknown [IPv6:2001:7b8:3a7:0:20a4:db0:4ac7:1cb7]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id AFD355C45; Mon, 10 Feb 2014 08:56:53 +0100 (CET) Subject: Re: 10.0 toolchain broken for C++11 code Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/signed; boundary="Apple-Mail=_F4E14D7C-1B8B-4E66-AAAA-E32D335F3FAA"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.1 (6062eb4) From: Dimitry Andric In-Reply-To: <20140209132909.GH11464@codelibre.net> Date: Mon, 10 Feb 2014 08:56:37 +0100 Message-Id: <170A5F41-3BB1-4297-B36A-E78B0D769F60@FreeBSD.org> References: <20140208233255.GA6282@amys.codelibre.net> <52F6C7D9.20501@ohlste.in> <20140209132909.GH11464@codelibre.net> To: Roger Leigh X-Mailer: Apple Mail (2.1827) Cc: freebsd-stable stable , Roman Divacky , David Chisnall X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 07:57:02 -0000 --Apple-Mail=_F4E14D7C-1B8B-4E66-AAAA-E32D335F3FAA Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 09 Feb 2014, at 14:29, Roger Leigh wrote: ... > One other toolchain related issue I have is that on powerpc, which isn't > using clang yet, it's using GCC 4.2 which doesn't support C++11. Are there > plans to have a common toolchain across all architectures (or at least, > feature parity)? Across all architectures is unlikely, since we still carry at least one (e.g. ia64) that has no support in clang at all, and even newer versions of gcc dropped support for it. However, that architecture is 'Tier-2', which means it is only supported on a best-effort basis. That said, some people are working on full powerpc support for clang (and I am assuming that means both the 32 bit and 64 bit variants), mips is also being worked on, though I have no idea if it is production-ready at all, and there are even some people working on the sparc64 backend. So if everything goes as I hope it does, we might have support for most of our architectures with clang 3.5. Note that even though I am the de facto clang maintainer, I have no problems with adding support for building our base system with newer (external) gcc-based toolchains. In fact, I would rather see that sooner than later, because we could then drop the old gcc 4.2 from our contrib area entirely. :-) > [This was an issue we had in Debian until a few weeks back; > now it's GCC 4.8 for all.] While the newer clang and gcc versions are > available in ports, in practice there are compatibility issues particularly > if there's a mismatch between libstdc++/libc++. This makes it difficult to > use clang 3.3/3.4 for example, since dependent C++ libraries were linked > against libstdc++. As far as I know, the ports guys are working on this, by using a ports-specific version of libc++ to provide C++11 support. This way you can compile C++-based ports that really require gcc (for whatever reason) without mixing libstd++ and libc++, which will almost always lead to trouble. -Dimitry --Apple-Mail=_F4E14D7C-1B8B-4E66-AAAA-E32D335F3FAA 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.22 (Darwin) iEYEARECAAYFAlL4hkEACgkQsF6jCi4glqNpHgCeMu8qfZqhJ4rKSECZThz09pgI dBYAmwYcA4AVNETErhz1aQE652i9ce5F =cIUa -----END PGP SIGNATURE----- --Apple-Mail=_F4E14D7C-1B8B-4E66-AAAA-E32D335F3FAA--