<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hello,<br><br>I'm trying to compile libc++ as indicated in 'Build on Linux using CMake and libsupc++ (http://libcxx.llvm.org) and I get the errors below when using make.<br>This is on a suse 12 maching with self compiled clang 3.4.<br>Any ideas how to fix the problem?<br><br>Thanks!<br><br>linux-od30:~/llvmsrc/buildlibcxx # make<br>Scanning dependencies of target abilib_headers<br>[ 3%] Generating include/cxxabi.h<br>[ 6%] Generating include/bits/c++config.h<br>[ 10%] Generating include/bits/os_defines.h<br>[ 13%] Generating include/bits/cpu_defines.h<br>[ 16%] Generating include/bits/cxxabi_tweaks.h<br>[ 20%] Generating include/bits/cxxabi_forced.h<br>[ 20%] Built target abilib_headers<br>Scanning dependencies of target cxx<br>[ 23%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/strstream.cpp.o<br>[ 26%] Building
CXX object lib/CMakeFiles/cxx.dir/__/src/algorithm.cpp.o<br>In file included from /root/llvmsrc/libcxx/src/algorithm.cpp:11:<br>In file included from /root/llvmsrc/libcxx/include/random:1647:<br>/root/llvmsrc/libcxx/include/cmath:401:1: error: declaration of 'isinf' in global<br> scope conflicts with declaration with C language linkage<br>isinf(_A1 __x) _NOEXCEPT<br>^<br>/usr/include/bits/mathcalls.h:202:19: note: declared with C language linkage here<br>__MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));<br> ^<br>/usr/include/math.h:64:31: note: expanded from macro '__MATHDECL_1'<br> extern type __MATH_PRECNAME(function,suffix) args
__THROW<br> ^<br>/usr/include/math.h:67:42: note: expanded from macro '__MATH_PRECNAME'<br>#define __MATH_PRECNAME(name,r) __CONCAT(name,r)<br> ^<br>/usr/include/sys/cdefs.h:89:23: note: expanded from macro '__CONCAT'<br>#define __CONCAT(x,y) x ## y<br> ^<br>In file included from /root/llvmsrc/libcxx/src/algorithm.cpp:11:<br>In file included from
/root/llvmsrc/libcxx/include/random:1647:<br>/root/llvmsrc/libcxx/include/cmath:425:1: error: declaration of 'isnan' in global<br> scope conflicts with declaration with C language linkage<br>isnan(_A1 __x) _NOEXCEPT<br>^<br>/usr/include/bits/mathcalls.h:235:19: note: declared with C language linkage here<br>__MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));<br> ^<br>/usr/include/math.h:64:31: note: expanded from macro '__MATHDECL_1'<br> extern type __MATH_PRECNAME(function,suffix) args __THROW<br> ^<br>/usr/include/math.h:67:42: note: expanded from macro '__MATH_PRECNAME'<br>#define __MATH_PRECNAME(name,r)
__CONCAT(name,r)<br> ^<br>/usr/include/sys/cdefs.h:89:23: note: expanded from macro '__CONCAT'<br>#define __CONCAT(x,y) x ## y<br> ^<br>2 errors generated.<br>make[2]: *** [lib/CMakeFiles/cxx.dir/__/src/algorithm.cpp.o] Error 1<br>make[1]: *** [lib/CMakeFiles/cxx.dir/all] Error 2<br>make: *** [all] Error
2<br> <br> <br></div></body></html>