This is my clang version:

Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

It failed when building things about backends in xapian-core.
This is error info:

cd xapian-core && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
depbase=`echo backends/dbcheck.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I/Users/VcamX/Documents/workspace/xapian/xapian-core  -I/Users/VcamX/Documents/workspace/xapian/xapian-core/common -I/Users/VcamX/Documents/workspace/xapian/xapian-core/include -I./include -I/Users/VcamX/Documents/workspace/xapian/xapian-core/languages -Ilanguages -I/Users/VcamX/Documents/workspace/xapian/xapian-core/queryparser  -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual -Wshadow -Wstrict-overflow=1 -Winit-self -Wmissing-declarations -Werror -fvisibility=hidden -g -O2 -MT backends/dbcheck.lo -MD -MP -MF $depbase.Tpo -c -o backends/dbcheck.lo /Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc &&\
	mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I/Users/VcamX/Documents/workspace/xapian/xapian-core -I/Users/VcamX/Documents/workspace/xapian/xapian-core/common -I/Users/VcamX/Documents/workspace/xapian/xapian-core/include -I./include -I/Users/VcamX/Documents/workspace/xapian/xapian-core/languages -Ilanguages -I/Users/VcamX/Documents/workspace/xapian/xapian-core/queryparser -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual -Wshadow -Wstrict-overflow=1 -Winit-self -Wmissing-declarations -Werror -fvisibility=hidden -g -O2 -MT backends/dbcheck.lo -MD -MP -MF backends/.deps/dbcheck.Tpo -c /Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc  -fno-common -DPIC -o backends/.libs/dbcheck.o
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:59:11: error: invalid operands to binary expression ('ostream' (aka 'basic_ostream<char>') and 'const char [131]')
            *out << "Cross-checking document lengths between the postlist and "
            ~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:61:32: error: use of undeclared identifier 'endl'; did you mean 'end'?
                    "skipping that check" << endl;
                                             ^~~~
                                             end
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1835:1: note: 'end' declared here
end(_Cp& __c)
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:69:11: error: invalid operands to binary expression ('ostream' (aka 'basic_ostream<char>') and 'const char [133]')
            *out << "Couldn't allocate enough memory for cross-checking document "
            ~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:71:32: error: use of undeclared identifier 'endl'; did you mean 'end'?
                    "skipping that check" << endl;
                                             ^~~~
                                             end
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1835:1: note: 'end' declared here
end(_Cp& __c)
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:75:11: error: invalid operands to binary expression ('ostream' (aka 'basic_ostream<char>') and 'const char [135]')
            *out << "Couldn't allocate enough elements for cross-checking document "
            ~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:77:32: error: use of undeclared identifier 'endl'; did you mean 'end'?
                    "skipping that check" << endl;
                                             ^~~~
                                             end
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1835:1: note: 'end' declared here
end(_Cp& __c)
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:117:8: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char [42]')
                *out << "Database couldn't be opened for reading: "
                ~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:119:42: error: use of undeclared identifier 'endl'; did you mean 'end'?
                     << "\nContinuing check anyway" << endl;
                                                       ^~~~
                                                       end
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1835:1: note: 'end' declared here
end(_Cp& __c)
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:138:8: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char *')
                *out << *t << ":\n";
                ~~~~ ^  ~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:144:13: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char [14]')
                            *out << "Not present.\n";
                            ~~~~ ^  ~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:146:13: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char [35]')
                            *out << "Lazily created, and not yet used.\n";
                            ~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:148:12: error: use of undeclared identifier 'endl'; did you mean 'end'?
                        *out << endl;
                                ^~~~
                                end
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1835:1: note: 'end' declared here
end(_Cp& __c)
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:148:9: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and '<overloaded function type>')
                        *out << endl;
                        ~~~~ ^  ~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: couldn't infer template argument '_Yp'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: couldn't infer template argument '_Allocator'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:189:8: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char [42]')
                *out << "Database couldn't be opened for reading: "
                ~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:191:42: error: use of undeclared identifier 'endl'; did you mean 'end'?
                     << "\nContinuing check anyway" << endl;
                                                       ^~~~
                                                       end
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1835:1: note: 'end' declared here
end(_Cp& __c)
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:207:8: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char *')
                *out << *t << ":\n";
                ~~~~ ^  ~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:213:13: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char [14]')
                            *out << "Not present.\n";
                            ~~~~ ^  ~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:215:13: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char [35]')
                            *out << "Lazily created, and not yet used.\n";
                            ~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5269:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4058:1: note: candidate template ignored: failed template argument deduction
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Users/VcamX/Documents/workspace/xapian/xapian-core/backends/dbcheck.cc:217:12: error: use of undeclared identifier 'endl'; did you mean 'end'?
                        *out << endl;
                                ^~~~
                                end
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1835:1: note: 'end' declared here
end(_Cp& __c)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [backends/dbcheck.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2