Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Jul 2010 23:40:53 +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:  <867hlf2doa.fsf@gmail.com>
In-Reply-To: <AANLkTimB5DX9y-TkEubRF3IQxt51jZNHuaKmESRQZFbv@mail.gmail.com> (Eitan Adler's message of "Thu, 1 Jul 2010 14:32:49 -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> <86630z85fg.fsf@gmail.com> <AANLkTimB5DX9y-TkEubRF3IQxt51jZNHuaKmESRQZFbv@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Eitan Adler <lists@eitanadler.com> writes:

>>>> 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 bugs.
>>>
>>> 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.
>
> I forgot. Most likely it was base gcc as I have an exemption in my
> /etc/make.conf for it.

Try to remove that conditional and rebuild with gcc46. If it doesn't
compile/work try again with gcc45.

>
>>> 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.
>
> Is it possible to determine which one?

No. If there is an easy way I think strings(1) would show.

> Is this something that is my fault for playing around too much or did
> I expose a bug ?

It can be both. ;) I remember gcc45 segfaulting on me pretty often when
it was a devel branch.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?867hlf2doa.fsf>