[cfe-dev] Error Compiling Clang 3.4 from Sources?

Jeffrey Walton noloader at gmail.com
Sun Mar 16 17:56:17 PDT 2014


I fetched Clang 3.4 with the recipe below. I'm hitting an error while
attempting to compile:

llvm-config.cpp:45:10: fatal error: 'LibraryDependencies.inc' file not found
#include "LibraryDependencies.inc"

Sure enough, its missing:

$ find . -iname LibraryDependencies.inc
$

I've run through the recipe three or four times in the past, so I know
it used to work.

Any ideas how to proceed?

Thanks in advance.

**********

# Fetch
wget http://llvm.org/releases/3.4/llvm-3.4.src.tar.gz
wget http://llvm.org/releases/3.4/clang-3.4.src.tar.gz
wget http://llvm.org/releases/3.4/compiler-rt-3.4.src.tar.gz
# wget http://llvm.org/releases/3.4/lldb-3.4.src.tar.gz

# LLVM
tar xvf llvm-3.4.src.tar.gz
cd llvm-3.4/tools

# Clang Front End
tar xvf ../../clang-3.4.src.tar.gz
mv clang-3.4 clang

# LLDB
# tar xvf ../../lldb-3.4.src.tar.gz
# mv lldb-3.4.src/ lldb

# Compiler RT
cd ..
cd projects
tar xvf ../../compiler-rt-3.4.src.tar.
gz
mv compiler-rt-3.4/ compiler-rt

# Build
cd ..
./configure --enable-optimized --prefix=/usr/local
make -j4
sudo make install



More information about the cfe-dev mailing list