[cfe-dev] problems building libcxx

thecolourblue thecolourblue at gmail.com
Wed Jan 26 04:50:52 PST 2011


Hi,

I am running into some problems building libcxx. I have the latest llvm/clang and I am trying to build libcxx in tools/clang/runtime/libcxx using the just built version of clang (on osx 10.6). The errors I get are below- any ideas what I can do to get it working?


llvm[0]: Compiling algorithm.cpp for Release build (PIC)
In file included from /Volumes/spare/src/llvm/projects/libcxx/src/algorithm.cpp:11:
In file included from /Volumes/spare/src/llvm/projects/libcxx/include/random:1647:
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1253:9: error: no member named 'llrint' in the global namespace
using ::llrint;
      ~~^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1254:9: error: no member named 'llrintf' in the global namespace
using ::llrintf;
      ~~^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1256:76: error: use of undeclared identifier 'llrintf'
inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x)       {return llrintf(__x);}
                                                                           ^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1257:76: error: use of undeclared identifier 'llrintl'
inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) {return llrintl(__x);}
                                                                           ^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1262:25: error: call to 'llrint' is ambiguous
llrint(_A1 __x) {return llrint((double)__x);}
                        ^~~~~~
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1256:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x)       {return llrintf(__x);}
                                           ^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1257:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) {return llrintl(__x);}
                                           ^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1266:9: error: no member named 'llround' in the global namespace
using ::llround;
      ~~^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1267:9: error: no member named 'llroundf' in the global namespace
using ::llroundf;
      ~~^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1269:77: error: use of undeclared identifier 'llroundf'
inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x)       {return llroundf(__x);}
                                                                            ^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1270:77: error: use of undeclared identifier 'llroundl'
inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) {return llroundl(__x);}
                                                                            ^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1275:26: error: call to 'llround' is ambiguous
llround(_A1 __x) {return llround((double)__x);}
                         ^~~~~~~
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1269:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x)       {return llroundf(__x);}
                                           ^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1270:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) {return llroundl(__x);}
                                           ^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1561:9: error: no member named 'llrintl' in the global namespace
using ::llrintl;
      ~~^
/Volumes/spare/src/llvm/projects/libcxx/include/cmath:1562:9: error: no member named 'llroundl' in the global namespace
using ::llroundl;
      ~~^
12 errors generated.
make: *** [/Volumes/spare/src/llvm/tools/clang/runtime/libcxx/Release/algorithm.o] Error 1



More information about the cfe-dev mailing list