Build Instructions

Joseph Noir edited this page May 30, 2018 · 4 revisions

VAST needs a recent compiler that supports C++17. Most systems do not come with a recent GCC or Clang out of the box. We had success with the following steps.



Even though macOS ships with Clang, it is not recent enough. Homebrew makes it easy to install LLVM 7:

brew install llvm

Then, make sure to build VAST with the new compiler:

export CXX=/usr/local/opt/llvm/bin/clang++
export LDFLAGS=$(/usr/local/opt/llvm/bin/llvm-config --ldflags)


Install GCC via Homebrew:

brew install gcc

Then select g++ via the CXX environment variable for the build setup:

export CXX=g++-7



  • Build LLVM and Clang manually with the following script

CLANG_HOME=/opt/src/clang # clang build dir
VERSION=tags/RELEASE_600/final  # version to use, default was trunk

svn co$VERSION llvm

cd $CLANG_HOME/llvm/tools
svn co$VERSION clang

cd $CLANG_HOME/llvm/tools/clang/tools
svn co$VERSION extra

cd $CLANG_HOME/llvm/tools
svn co$VERSION lld
svn co$VERSION polly

cd $CLANG_HOME/llvm/projects
svn co$VERSION compiler-rt
svn co$VERSION libcxx
svn co$VERSION libcxxabi
svn co$VERSION test-suite

mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../llvm
make -j 24
make install
  • Build VAST with that clang compiler installed to /usr/local/ (note the extra argument -lc++abi to LDFLAGS):

    export CXX=/usr/local/bin/clang++
    export LDFLAGS="$(/usr/local/bin/llvm-config --ldflags) -lc++abi"
  • Remember to build CAF in the same way, otherwise linking VAST fails





You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.