From owner-freebsd-ports@FreeBSD.ORG Thu Jul 1 17:45:50 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 EC4DF106566B for ; Thu, 1 Jul 2010 17:45:50 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 964CE8FC08 for ; Thu, 1 Jul 2010 17:45:50 +0000 (UTC) Received: by vws6 with SMTP id 6so1868424vws.13 for ; Thu, 01 Jul 2010 10:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=L3Q3WrLSlY8uVe/4PvHwOT7hTklrWyp9urwugLvJM8A=; b=qqnYz+o8Ro8Z9l7qnnRrUyahJ1mJKLqO8QfTVoIFpRUmzRgws1B+5BA52EsLXcCKi5 8ujMhK/upkhKCGUrboVCGSyJWFKIjESxTUvxDJ/J/dgHLm41v9U80Ny17x9p2fOg2uR4 0tDEA0ZCZ9SV3VxUDOKeRFc4CYqy7352q+fog= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; b=v5iHuwBFcqLvNnFNU+AclFjNJy7d4isl/NcWbE7xxzPIuXjQMkkQiItQYLhtvCq1HA GJjlARKaE+SQ0Ib8+iHXKzgVr1jZQwrq95QvCYgqfR3WFJTYAijF76VCdnNDD79b0kLp tWnnvS/wmNxrTKXgenqC0InEMwawOQ3E+DHJg= Received: by 10.220.125.85 with SMTP id x21mr5886081vcr.168.1278006345275; Thu, 01 Jul 2010 10:45:45 -0700 (PDT) Received: from localhost (anonymizer2.torservers.net [173.244.197.210]) by mx.google.com with ESMTPS id e1sm10612201vch.44.2010.07.01.10.45.43 (version=SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 10:45:44 -0700 (PDT) From: Anonymous To: Eitan Adler References: <4C297844.2030500@acm.poly.edu> <4C29796C.7070901@acm.poly.edu> <86vd91b4xk.fsf@gmail.com> Date: Thu, 01 Jul 2010 21:42:27 +0400 In-Reply-To: (Eitan Adler's message of "Thu, 1 Jul 2010 11:48:01 -0400") Message-ID: <86630z85fg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 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 17:45:51 -0000 Eitan Adler writes: > 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, 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.