1. Xuejie Xiao
  2. clReflect
  3. Issues
Issue #1 new

Unable to compile on mac using xcode 4.4

Anonymous created an issue

Hi, I have been trying to get this compiling on the mac but have been unable todo so, have you had any success? Many Thanks

Comments (2)

  1. Xuejie Xiao repo owner

    Hi,

    Can you tell me how you ran into errors? I just tried compiling on my mac with following steps:

    ~/develop/clreflect-xxuejie ᐅ mkdir cmake-build

    ~/develop/clreflect-xxuejie ᐅ cd cmake-build

    ~/develop/clreflect-xxuejie/cmake-build ᐅ cmake ..

    ~/develop/clreflect-xxuejie/cmake-build ᐅ make

    It works well without errors. But considering I'm still using Xcode 4.3, there may be some inconsistencies.

    Sorry for the inconvenience.

  2. Adrian Hirst

    Hi,

    This is the error i am getting:-

    sumer.cpp.o In file included from /Users/adrian/Projects/clreflect/src/clReflectScan/ASTConsumer.cpp:40: In file included from /Users/adrian/Projects/clreflect/src/clReflectScan/../../extern/llvm/tools/clang/include/clang/AST/Decl.h:17: In file included from /Users/adrian/Projects/clreflect/src/clReflectScan/../../extern/llvm/tools/clang/include/clang/AST/APValue.h:18: In file included from /Users/adrian/Projects/clreflect/src/clReflectScan/../../extern/llvm/include/llvm/ADT/APSInt.h:18: In file included from /Users/adrian/Projects/clreflect/src/clReflectScan/../../extern/llvm/include/llvm/ADT/APInt.h:19: In file included from /Users/adrian/Projects/clreflect/src/clReflectScan/../../extern/llvm/include/llvm/Support/MathExtras.h:17: /Users/adrian/Projects/clreflect/src/clReflectScan/../../extern/llvm/include/llvm/Support/SwapByteOrder.h:18:10: fatal error: 'llvm/Support/DataTypes.h' file not found

    1. include "llvm/Support/DataTypes.h" ^ 1 error generated. make[2]: * [src/clReflectScan/CMakeFiles/clReflectScan.dir/ASTConsumer.cpp.o] Error 1 make[1]: * [src/clReflectScan/CMakeFiles/clReflectScan.dir/all] Error 2 make: * [all] Error 2

    Thanks for any help.

    Added:-

    Building LLVM 3.0 causes problems too using xcode 4.4.1 which is probably one of the reasons it fails

    In file included from /Users/adrian/Projects/clreflect/extern/llvm/lib/Support/IntervalMap.cpp:14: /Users/adrian/Projects/clreflect/extern/llvm/include/llvm/ADT/IntervalMap.h:1980:32: error: use 'template' keyword to treat 'newNode' as a dependent template name Node[NewNode] = this->map->newNode<NodeT>(); ^ template 1 error generated. make[2]: * [lib/Support/CMakeFiles/LLVMSupport.dir/IntervalMap.cpp.o] Error 1 make[1]: * [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2 make: * [all] Error 2

  3. Log in to comment