Skip to content
Dibyendu Majumdar edited this page Jul 16, 2016 · 9 revisions

ASAN

To get symbolic information (source file, line number) in stack dump when ASAN detects a problem, following options need to be set:

export ASAN_SYMBOLIZER_PATH=$HOME/LLVM/bin/llvm-symbolizer
export ASAN_OPTIONS=symbolize=1

To get verbose output from ASAN run with:

ASAN_OPTONS=verbosity=1 ../buildllvmd/ravi -e"_port=1" all.lua

GCC 5.1

To be able to build gcc a number of packages had to be installed first

  • m4
  • flex
  • libsigsegv2
  • libfl-dev
  • libmpc-dev
  • libgmpxx4ldbl
  • libgmp-dev
  • libmpfr-dev

../gcc-5.1.0/configure --prefix=/home/dylan/local --enable-host-shared --enable-languages=jit --disable-bootstrap --disable-multilib

Cmake build examples

cmake -DCMAKE_INSTALL_PREFIX=c:\LLVM -DLLVM_TARGETS_TO_BUILD="X86" -G "Visual Studio 12 Win64" ..

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/Users/dylan/LLVM -DLLVM_TARGETS_TO_BUILD="X86" ..

C:\d\llvm-3.8.1.src\build32>cmake -DCMAKE_INSTALL_PREFIX=c:\d\LLVM37_32 -DLLVM_TARGETS_TO_BUILD="X86" -G "Visual Studio 14" -DCMAKE_BUILD_TYPE=Release ..

C:\d\llvm-3.8.1.src\build32>cmake -DCMAKE_INSTALL_PREFIX=c:\d\LLVM37 -DLLVM_TARGETS_TO_BUILD="X86" -G "Visual Studio 14 Win64" -DCMAKE_BUILD_TYPE=Release ..

Clone this wiki locally