From owner-freebsd-ports@FreeBSD.ORG Thu Jul 1 18:33:10 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 8B00D106566B for ; Thu, 1 Jul 2010 18:33:10 +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 586538FC26 for ; Thu, 1 Jul 2010 18:33:10 +0000 (UTC) Received: by iwn35 with SMTP id 35so19888iwn.13 for ; Thu, 01 Jul 2010 11:33:09 -0700 (PDT) Received: by 10.231.59.9 with SMTP id j9mr10621954ibh.31.1278009189199; Thu, 01 Jul 2010 11:33:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.194.147 with HTTP; Thu, 1 Jul 2010 11:32:49 -0700 (PDT) In-Reply-To: <86630z85fg.fsf@gmail.com> References: <4C297844.2030500@acm.poly.edu> <4C29796C.7070901@acm.poly.edu> <86vd91b4xk.fsf@gmail.com> <86630z85fg.fsf@gmail.com> From: Eitan Adler Date: Thu, 1 Jul 2010 14:32:49 -0400 Message-ID: To: Anonymous Content-Type: text/plain; charset=UTF-8 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 18:33:10 -0000 >>> 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. >> 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? Is this something that is my fault for playing around too much or did I expose a bug ? -- Eitan Adler