It should work with llvm 3.5 -- it looks like it can't find the clang header files. It is possible that clang is not installed in the same location as LLVM or that the clang header files are not installed. I normally download the binaries from the llvm.org website, since they are more consistent about where they install things.
-- Zach On Tue, Feb 24, 2015 at 10:17 AM, Saptarshi Guha <[email protected]> wrote: > Hello, > > I'm trying to build terra on an Amazon EMR instance. The instance has > llvm 3.5 > > llvm-config --version > 3.5.0 > > and > > clang --version > clang version 3.5.0 (tags/RELEASE_350/final) > Target: x86_64-amazon-linux-gnu > Thread model: posix > > But during compilation i get > a) > nm: '/usr/lib/libLLVMSupport.a': No such file > nm: '/usr/lib/libLLVMSupport.a': No such file > > b) > clang: warning: argument unused during compilation: '-fPIC' > clang: warning: argument unused during compilation: '-fomit-frame-pointer' > clang: warning: argument unused during compilation: '-D > _FILE_OFFSET_BITS=64' > clang: warning: argument unused during compilation: '-D _LARGEFILE_SOURCE' > clang: warning: argument unused during compilation: '-U _FORTIFY_SOURCE' > clang: warning: argument unused during compilation: '-D LUA_MULTILIB="lib"' > clang: warning: argument unused during compilation: '-fomit-frame-pointer' > clang: warning: argument unused during compilation: '-D > _FILE_OFFSET_BITS=64' > clang: warning: argument unused during compilation: '-D _LARGEFILE_SOURCE' > clang: warning: argument unused during compilation: '-U _FORTIFY_SOURCE' > clang: warning: argument unused during compilation: '-D LUA_MULTILIB="lib"' > > c) > 1 error generated. > In file included from src/tinline.cpp:7: > src/llvmheaders.h:4:10: fatal error: 'clang/AST/ASTConsumer.h' file not > found > #include "clang/AST/ASTConsumer.h" > ^ > 1 error generated. > In file included from src/tcwrapper.cpp:20: > src/llvmheaders.h:4:10: fatal error: 'clang/AST/ASTConsumer.h' file not > found > #include "clang/AST/ASTConsumer.h" > ^ > 1 error generated. > In file included from src/tllvmutil.cpp:5: > In file included from src/tllvmutil.h:4: > src/llvmheaders.h:4:10: fatal error: 'clang/AST/ASTConsumer.h' file not > found > #include "clang/AST/ASTConsumer.h" > ^ > 1 error generated. > In file included from src/tcompiler.cpp:26: > src/llvmheaders.h:4:10: fatal error: 'clang/AST/ASTConsumer.h' file not > found > #include "clang/AST/ASTConsumer.h" > ^ > > (more files like this) > > I know the website says "Terra uses LLVM 3.2, Clang 3.2 ", so should i not > use Clang 3.5? > Regards > Saptarshi > > > _______________________________________________ > terralang mailing list > [email protected] > https://mailman.stanford.edu/mailman/listinfo/terralang > >
_______________________________________________ terralang mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/terralang
