Date: Tue, 19 Nov 2013 09:39:03 +0200 From: Konstantin Belousov <kostikbel@gmail.com> To: Matthias Andree <mandree@FreeBSD.org> Cc: freebsd-toolchain@freebsd.org, Dimitry Andric <dim@FreeBSD.org> Subject: Re: clang++ 3.3 issue (excessively slow compile vs. gcc 4.6 in just one file of a port) Message-ID: <20131119073903.GX59496@kib.kiev.ua> In-Reply-To: <528A9A88.80904@FreeBSD.org> References: <528A8481.9010200@FreeBSD.org> <62194A12-1B41-48F6-8434-BA2181411020@FreeBSD.org> <528A93BF.3020707@FreeBSD.org> <C350407E-E262-4E47-B1A5-09F5374C1AED@FreeBSD.org> <528A9A88.80904@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--SqVtrrZiLzYl8Wl+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 18, 2013 at 11:54:00PM +0100, Matthias Andree wrote: > Glib shares the fate, because it defers to std:: containers where possibl= e. >=20 > A nice way would require additional work and get the linkers to complain > that symbols resolve with a different, incompatible ABI. That would, > however, require second-guessing other ABIs and namespaces, and would > hardly be portable -- or add ABI versions into the object files and .a > and .so libraries, unless we already have ABI tags somewhere down deep > in the ELF stuff. I never checked. The ABI there is an ABI of library, so linkers has nothing to do with such conflict resolution. Linker indeed could be tricked into stopping the linking if libstdc++ is linked into libc++-using binary. This can be hacked together with linker script for libc++ and use of ASSERT() and DEFINED() functions. But the right solution for the port troubles is to just switch to consistently use (newest) gcc for ports. I assume that Uses/compiler.mk finally allows to do this from the make.conf ? Anybody could share a working incantation to put there ? --SqVtrrZiLzYl8Wl+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJSixWWAAoJEJDCuSvBvK1B/14QAKYI8SKImIVF6doyZVCZBFc9 t7LnnPZSu8FKTVLZTm9tctMdjcFWyffaQtWz1T8z+YPCwiIuAAfZpF7ZQPqs5zra fn1/Cdhfdd4y6PFijoGgvmsjKw3ijvZUz8X917WqaBUIUGTj37tqwZf2U0U36GqL zStUox1yo6lckE5TdNBYDssVZuBksrpx/uS1RHxs/4XAy3g10Xdu6fQCUYzMF2GO 4qkpdHWSjauN69VXmCInSfblzH5D/TmzEfo9Wv4+FW9OIfLTdTGE8BFb5bZc4PxE pW+CYPnkSWPLo6rQbRMCcVg/hVNo3hWAy6TcAj9HV6G6qDc36SZAZnapD78VAdkC WwVLhGbnV31PXFyfkLl/A++DvCVwaSaSPWCz3+0EqAgY2EGyey1jlC5L3x5kiDN0 XDCa64D7JYobCM30UffzjIe4koDEWW4M2IcZHYjBV79XWeS06Zd8vtE3xJeHMuv8 2XUXaGAXLDDrwHPUh+NGAnOewCxXdZyPgTkxym3qHXpI/YAC8irWAg1i34JFmDcG kydGWTQktj2kRta1JNnCwyUhWzHyGbpvpQNGqVvH310u/9UVwtguT2s+pnFO5/OA 97xC9q437pSYE1Wbd0hCsi5LHynJz9cvNIQD+zg+Q6GzfO9O2JDEiatOm5q8hEZ9 NGI0C4HPQ2ZYprfUNafU =ljhb -----END PGP SIGNATURE----- --SqVtrrZiLzYl8Wl+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131119073903.GX59496>