Mac OS X - Mavericks - make check-all error

Dear all,

The “make” command executes successfully on Mac OS X Mavericks … but when I want to test it before I use it … with “make check-all” … the following error occurs:

In file included from /Users/dawiejoubert/Source/Clang/llvm/projects/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc:21:
/Users/dawiejoubert/Source/Clang/llvm/utils/unittest/googletest/include/gtest/gtest.h:54:10: fatal error:
’limits’ file not found
#include
^
1 error generated.
make[3]: *** [projects/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc.x86_64.o] Error 1
make[2]: *** [projects/compiler-rt/lib/sanitizer_common/tests/CMakeFiles/Sanitizer-x86_64-Test.dir/all] Error 2
make[1]: *** [CMakeFiles/check-all.dir/rule] Error 2
make: *** [check-all] Error 2

“Limits” should be standard c++ stuff shouldn’t it be?

PS. I recently switched from a PC to a Mac so please be not too hard on ID10T errors … :wink:

Best regards,

Dawie

Hi,

you need to check out libcxx into projects, see http://llvm.org/bugs/show_bug.cgi?id=17821 and the discussion on https://www.mail-archive.com/cfe-commits@cs.uiuc.edu/msg84027.html (I suggested that this should be mentioned on http://clang.llvm.org/get_started.html but didn’t get a reply.

Nico

Hi Nico,
Thanks for your reply, indeed it would be great to add that to the get_started page, just to help people completely new to the project like me :wink:

Cheers,
Johan

Hi,

This was it! Thanks!

A pity that the information is not updated on the site!

Thanks for the response!

Dawie

Hi,

That worked! Thanks for the response!

However. The final result of the check-all is as follows:

By the way, herewith the build log “errors” that “make check-all| has reported:

/Users/dawiejoubert/Source/Clang/llvm/projects/compiler-rt/lib/ubsan/lit_tests
lit.py: :196: note: using clang: ‘/Users/dawiejoubert/Source/Clang/llvm/build/./bin/clang’
lit.py: :372: note: using SDKROOT: ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk’
FAIL: AddressSanitizer32 :: TestCases/stack-use-after-return.cc (391 of 17093)
******************** TEST ‘AddressSanitizer32 :: TestCases/stack-use-after-return.cc’ FAILED ********************
Script:

Hi,

That worked! Thanks for the response!

However. The final result of the check-all is as follows:

********************
Testing Time: 591.24s
********************
Failing Tests (3):
    AddressSanitizer32 :: TestCases/stack-use-after-return.cc
    AddressSanitizer64 :: TestCases/stack-use-after-return.cc
    Clang :: Headers/cxx11.cpp

  Expected Passes : 16803
  Expected Failures : 75
  Unsupported Tests : 212
  Unexpected Failures: 3
make[3]: *** [CMakeFiles/check-all] Error 1
make[2]: *** [CMakeFiles/check-all.dir/all] Error 2
make[1]: *** [CMakeFiles/check-all.dir/rule] Error 2
make: *** [check-all] Error 2

Is it part of the same “problem”?

I think this is a different bug. If you look at test/Headers/cxx11.cpp,
you'll see a comment saying "FIXME: fails on 10.9, figure out what to do"
with a link to http://llvm.org/bugs/show_bug.cgi?id=18322
It's not clear what to do with that test yet, so for now it's failing :-/