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 r...@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
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to