Date: Thu, 01 Jul 2010 21:42:27 +0400 From: Anonymous <swell.k@gmail.com> To: Eitan Adler <lists@eitanadler.com> Cc: freebsd ports <freebsd-ports@freebsd.org> Subject: Re: Confirming a bug in clang++ (freeBSD Message-ID: <86630z85fg.fsf@gmail.com> In-Reply-To: <AANLkTinF8N_TNwdlrmZOVk1JcyeQkj3XMsswphp84VUk@mail.gmail.com> (Eitan Adler's message of "Thu, 1 Jul 2010 11:48:01 -0400") References: <AANLkTink7JcqKh4J2Q72CsQ3J-DqYagSB0izFho5GnYX@mail.gmail.com> <4C297844.2030500@acm.poly.edu> <4C29796C.7070901@acm.poly.edu> <AANLkTil-g_TrS_lZs75BfAotTJE4x67tloippJAz8H6V@mail.gmail.com> <86vd91b4xk.fsf@gmail.com> <AANLkTinF8N_TNwdlrmZOVk1JcyeQkj3XMsswphp84VUk@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Eitan Adler <lists@eitanadler.com> writes: > On Tue, Jun 29, 2010 at 11:00 PM, Anonymous <swell.k@gmail.com> wrote: >> Eitan Adler <lists@eitanadler.com> writes: >> >>>> One difference I notice between your environment and mine is that, acc= ording >>>> to your bug report, your program links against >>>> /usr/local/lib/gcc46/libstdc++.so.6, while mine links against >>>> /usr/lib/libstdc++.so.6. >>>> >>>> -Boris >>>> >>> I forgot about that. I use gcc46 to build ports and have >>> libstdc++.so.6 =C2=A0gcc46/libstdc++.so.6 >>> in /etc/libmap.conf >> >> I have clang++ (devel/llvm-devel) built by g++45 and linked against >> gcc45/libstdc++.so.6. It compiles your test case fine. But I'm running >> 9-current on amd64 so it may not be that useful. >> >> IMO, gcc46 being a development branch is prone to miscompile and have bu= gs. > > I'm not that familiar with with mapping. > Since g++46/* is built with g++46 It's more interesting which gcc version you used for compiling clang. > and my program is compiled by clang++ is it expected that they be > compatible? If yes does that mean this is a bug in g++46 or clang++? Either -lstdc++ from gcc46 is buggy or just clang++ doesn't like it. It's better to use -lstdc++ from same version of gcc by which the program using it was compiled.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86630z85fg.fsf>