[cfe-dev] problems building libcxx

Howard Hinnant hhinnant at apple.com
Wed Jan 26 06:46:04 PST 2011

On Jan 26, 2011, at 7:50 AM, thecolourblue wrote:

> 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;
>      ~~^

This is a bug in osx 10.6's math.h.  As a temporary workaround put -U__STRICT_ANSI__ on the command line.


More information about the cfe-dev mailing list