From owner-freebsd-ports@FreeBSD.ORG Thu Jul 1 19:43:41 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 497E51065670 for ; Thu, 1 Jul 2010 19:43:41 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8D2008FC0A for ; Thu, 1 Jul 2010 19:43:40 +0000 (UTC) Received: by bwz12 with SMTP id 12so1379206bwz.13 for ; Thu, 01 Jul 2010 12:43:34 -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; bh=8BxBMyAO8Y5AOtN64HuUmly6cAgA0YkQ1wvBUkyvNs0=; b=O4n9Oe4pISm4Me9Bi5jwtcDJlF9taIXf/RkWUtEVr/oY2cdTq8wWyZj7KQaATJPDlS Tjcz+EUzP9bpKGG7Ir9eKu+ZDwHHHxM8l3sRUl2+8NcWuz2KZ4rXsAUtW9GzKTLGoKks +V/ySbRz3CQ8Wm4JR5oCtmptOHWiyPtgTixSo= 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; b=hbofuc0+1k1rsVVe8NSn3qxV8uZ5ZD3gv6eetbHrfk1iEv/EfcSFR8CUIPCPKo9cyf LGM2Sy9ysNMyiELGXYkVVVDdS7vlDRb4npEHzVYB902FYfcMD8Dag/1hslAyff+1lXam ZdeICEHqhMdhG+YIXImZ5wIwden6+Hmls3CzU= Received: by 10.204.174.203 with SMTP id u11mr5203671bkz.99.1278013413712; Thu, 01 Jul 2010 12:43:33 -0700 (PDT) Received: from localhost ([78.142.140.194]) by mx.google.com with ESMTPS id f10sm773715bkl.17.2010.07.01.12.43.30 (version=SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 12:43:32 -0700 (PDT) From: Anonymous To: Eitan Adler References: <4C297844.2030500@acm.poly.edu> <4C29796C.7070901@acm.poly.edu> <86vd91b4xk.fsf@gmail.com> <86630z85fg.fsf@gmail.com> Date: Thu, 01 Jul 2010 23:40:53 +0400 In-Reply-To: (Eitan Adler's message of "Thu, 1 Jul 2010 14:32:49 -0400") Message-ID: <867hlf2doa.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=us-ascii 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 19:43:41 -0000 Eitan Adler 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.