Arrgh, forget the noise. I need to install clang-devel.

I need a break.
Cheers
Saptarshi


On Wed, Feb 25, 2015 at 2:37 PM, Saptarshi Guha <[email protected]>
wrote:

> Thanks. It's been some time testing AWS. I tried downloading clang 3.5.1
> from the clang website.
> Did
>
> ln -s /home/s/clang+llvm-3.5.1-x86_64-fedora20 /home/s/clang35
>
> but when making terra i get
>
> (cd build; tar -xf LuaJIT-2.0.3.tar.gz)
> (cd build/LuaJIT-2.0.3; make
> CC=/home/hadoop/clang+llvm-3.5.1-x86_64-fedora20/bin/clang)
> make[1]: Entering directory `/home/hadoop/terra/build/LuaJIT-2.0.3'
> ==== Building LuaJIT 2.0.3 ====
> make -C src
> clang: error: unsupported option '-dumpspecs'
> clang: error: no input files
> make[2]: Entering directory `/home/hadoop/terra/build/LuaJIT-2.0.3/src'
> HOSTCC    host/minilua.o
> HOSTLINK  host/minilua
> /usr/bin/ld: cannot find crtbegin.o: No such file or directory
> /usr/bin/ld: cannot find -lgcc
> /usr/bin/ld: cannot find -lgcc_s
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[2]: *** [host/minilua] Error 1
>
>
> Any ideas? i might as well build from source ...
> Cheers
> Saptarshi
>
>
> On Wed, Feb 25, 2015 at 1:58 PM, Zach Devito <[email protected]> wrote:
>
>> 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

Reply via email to