Date: Tue, 29 Jun 2010 00:41:16 -0400 From: Boris Kochergin <spawk@acm.poly.edu> To: Eitan Adler <lists@eitanadler.com> Cc: freebsd ports <freebsd-ports@freebsd.org> Subject: Re: Confirming a bug in clang++ (freeBSD Message-ID: <4C29796C.7070901@acm.poly.edu> In-Reply-To: <4C297844.2030500@acm.poly.edu> References: <AANLkTink7JcqKh4J2Q72CsQ3J-DqYagSB0izFho5GnYX@mail.gmail.com> <4C297844.2030500@acm.poly.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <iostream> >> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C29796C.7070901>