problems building libcxx

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

problems building libcxx

thecolourblue
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
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: problems building libcxx

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


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: problems building libcxx

thecolourblue

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


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev