error in building llvm

Dear All

I’ve made un update to the llvm to the latest. At configuration, I’ve met some new errors to me, like it needs lldb, lld, dragonegg, llgo and so. However, I’ve checked them and configuration went on.

Now I’m stuck at build stage, specifically at dragonegg. First it could not find gmp.h, I’ve solved this by installing libgmp-dev.

Now, it can’t find auto-host.h.

I couldn’t solve this.

Hi,
If you don't actually need all these extra projects, you can edit the CMakeCache.txt in the build directory to disable them. Look for LLVM_TOOL_XXX_BUILD and set the corresponding ones to OFF, for example:

LLVM_TOOL_LLDB_BUILD:BOOL=ON // Set this to OFF to disable LLDB

-Krzysztof

Here is another strange error:

/home/marwayusuf/llvm-env/llvm/tools/clang/lib/Basic/VirtualFileSystem.cpp:332:10: error: redefinition of ‘struct llvm::DenseMapInfo<llvm::StringRef>’
   struct DenseMapInfo<StringRef> {
          ^
In file included from /home/marwayusuf/llvm-env/llvm/include/llvm/ADT/DenseMap.h:17:0,
                 from /home/marwayusuf/llvm-env/llvm/tools/clang/lib/Basic/VirtualFileSystem.cpp:13:
/home/marwayusuf/llvm-env/llvm/include/llvm/ADT/DenseMapInfo.h:169:20: error: previous definition of ‘struct llvm::DenseMapInfo<llvm::StringRef>’
template <> struct DenseMapInfo<StringRef> {

Regards,
Marwa Yusuf
Teaching Assistant - Computer Engineering Department
Faculty of Engineering - Benha University
E-JUST PhD Student
Computer Science & Engineering Dept.

Make sure that your clang sources are up to date.

-Krzysztof