[cfe-dev] problems building libcxx

thecolourblue thecolourblue at gmail.com
Wed Jan 26 08:48:38 PST 2011

On 26 Jan 2011, at 14:46, Howard Hinnant wrote:

> 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.
> -Howard

thanks, that works and it compiles fine (+ some warnings...)

More information about the cfe-dev mailing list