From owner-freebsd-ports@FreeBSD.ORG Thu Jul 1 15:48:25 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E10BD106564A for ; Thu, 1 Jul 2010 15:48:25 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id B1E0A8FC1A for ; Thu, 1 Jul 2010 15:48:25 +0000 (UTC) Received: by iwn9 with SMTP id 9so2607367iwn.13 for ; Thu, 01 Jul 2010 08:48:25 -0700 (PDT) Received: by 10.231.213.27 with SMTP id gu27mr10098106ibb.168.1277999303005; Thu, 01 Jul 2010 08:48:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.194.147 with HTTP; Thu, 1 Jul 2010 08:48:01 -0700 (PDT) In-Reply-To: <86vd91b4xk.fsf@gmail.com> References: <4C297844.2030500@acm.poly.edu> <4C29796C.7070901@acm.poly.edu> <86vd91b4xk.fsf@gmail.com> From: Eitan Adler Date: Thu, 1 Jul 2010 11:48:01 -0400 Message-ID: To: Anonymous Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd ports Subject: Re: Confirming a bug in clang++ (freeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2010 15:48:26 -0000 On Tue, Jun 29, 2010 at 11:00 PM, Anonymous wrote: > Eitan Adler writes: > >>> One difference I notice between your environment and mine is that, acco= rding >>> 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 bug= s. I'm not that familiar with with mapping. Since g++46/* is built with g++46 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++? --=20 Eitan Adler