% uname -a
FreeBSD cobalt 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013
[email protected]:/usr/obj/usr/src/sys/GENERIC amd64
% clang++ --version
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd9.2
Thread model: posix
// test.cc
#include <iostream>
#include <future>
int main( int argc, char* argv[])
{
auto f = std::async( [] () {
std::cout << "Hello, World!" << std::endl;
});
f.wait();
return 0;
}
% clang++ -v -otest test.cc
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd9.2
Thread model: posix
"/usr/bin/clang++" -cc1 -triple x86_64-unknown-freebsd9.2 -emit-obj
-mrelax-all -disable-free -main-file-name test.cc -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -v -resource-dir /usr/bin/../lib/clang/3.3
-fdeprecated-macro -fdebug-compilation-dir /home/mshaikh -ferror-limit 19
-fmessage-length 168 -mstackrealign -fobjc-runtime=gnustep
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o /tmp/test-jIvr1p.o -x c++ test.cc
clang -cc1 version 3.3 based upon LLVM 3.3 default target
x86_64-unknown-freebsd9.2
ignoring nonexistent directory "/usr/include/c++/4.2/backward/backward"
ignoring nonexistent directory "/usr/bin/../lib/clang/3.3/include"
ignoring duplicate directory "/usr/include/c++/4.2"
ignoring duplicate directory "/usr/include/c++/4.2/backward"
ignoring duplicate directory "/usr/include/c++/4.2/backward"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/4.2
/usr/include/c++/4.2/backward
/usr/include/clang/3.3
/usr/include
End of search list.
test.cc:2:10: fatal error: 'future' file not found
#include <future>
^
1 error generated.
clang is re-using system headers which belong to older gcc 4.2
Can clang be educated to refer gcc48 headers, installed via pkg_add?
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"