From owner-freebsd-ports@FreeBSD.ORG Tue Jun 29 04:42: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 781A8106564A for ; Tue, 29 Jun 2010 04:42:25 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id 15FE78FC1B for ; Tue, 29 Jun 2010 04:42:24 +0000 (UTC) Received: (qmail 10736 invoked from network); 29 Jun 2010 04:42:24 -0000 Received: from unknown (HELO ?192.168.0.2?) (spawk@96.224.221.101) by acm.poly.edu with AES256-SHA encrypted SMTP; 29 Jun 2010 04:42:24 -0000 Message-ID: <4C29796C.7070901@acm.poly.edu> Date: Tue, 29 Jun 2010 00:41:16 -0400 From: Boris Kochergin User-Agent: Thunderbird 2.0.0.24 (X11/20100330) MIME-Version: 1.0 To: Eitan Adler References: <4C297844.2030500@acm.poly.edu> In-Reply-To: <4C297844.2030500@acm.poly.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 29 Jun 2010 04:42:26 -0000 Boris Kochergin wrote: > Eitan Adler wrote: >> Can anyone with FreeBSD 8.1-RC1 i386 or FreeBSD 8.1-RC2 i386 confirm >> that the following code compiles and fails with the version of clang++ >> from ports? >> This works with g++ and fails with clang++ for me. >> >> Here is the original code >> #include >> int main() >> { >> std::cout << 1; >> return 1; >> } >> >> My bug report is here: http://llvm.org/bugs/show_bug.cgi?id=7489 >> >> I want to know if this is my problem or a clang++ problem or a bug >> somewhere else. >> > Works fine here: > > # uname -a > FreeBSD peer 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #2: Mon Feb 22 > 23:18:53 EST 2010 root@peer:/usr/obj/usr/src/sys/PEER i386 > > # clang++ -v > clang version 1.1 (branches/release_27) > Target: i386-portbld-freebsd8.0 > Thread model: posix > > I can try it on a recent CURRENT machine tomorrow, but perhaps you'd > best share your environment. I've compiled non-trivial C++ programs > with clang++ and they've behaved properly. > > -Boris > One difference I notice between your environment and mine is that, according 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