1:BUILD_BY[name] student0 1:BUILD_ENVIRONMENT[operating system 32 vs 64] 1:END_BUILD_ENVIRONMENT 1:DEPENDENCIES[list of dependencies with where to get them] 1. CMake: (http://www.cmake.org/cmake/resources/software.html) 2. LLVM-3.1 and Clang: (svn locations specified at http://llvm.org/docs/GettingStarted.html#quickstart) 3. Dragon egg: (http://dragonegg.llvm.org/) 4. zlib (needed by boost): (http://www.zlib.net/) -yes 5. Boost: (http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.gz/download) 6. Berkeley DB: (http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html) 1:END_DEPENDENCIES 1:NOTES[notes on attempted build] Try building ddg yields: -- Could NOT find DB (missing: DB_LIBRARY DB_INCLUDE_DIR) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: DB_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/student/Desktop/Holewinski/trunk/tools/ddg-vect DB_LIBRARY (ADVANCED) linked by target "ddg-vect" in directory /home/student/Desktop/Holewinski/trunk/tools/ddg-vect linked by target "ddg-vect-rt" in directory /home/student/Desktop/Holewinski/trunk/tools/ddg-vect -- Configuring incomplete, errors occurred! Linking the missing environment variables does not seem to fix the issue. 1:END_NOTES 2:BUILD_BY[name] student4 2:BUILD_ENVIRONMENT[operating system 32 vs 64] >>>> lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise >>>> uname -a Linux student-VPCSE13FX 3.2.0-60-generic #91-Ubuntu SMP Wed Feb 19 03:54:44 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux >>>> lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 42 Stepping: 7 CPU MHz: 800.000 BogoMIPS: 4789.10 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 3072K NUMA node0 CPU(s): 0-3 >>>> javac -version javac 1.7.0_51 >>>> gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 >>>> ./boost #gives version (special exec) Using Boost 1.46.1 2:END_BUILD_ENVIRONMENT 2:DEPENDENCIES[list of dependencies with where to get them] 1. CMake: (http://www.cmake.org/cmake/resources/software.html) 2. LLVM-3.1 and Clang: (svn locations specified at http://llvm.org/docs/GettingStarted.html#quickstart) 3. Dragon egg: (http://dragonegg.llvm.org/) 4. zlib (needed by boost): (http://www.zlib.net/) -yes 5. Boost: (http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.gz/download) 6. Berkeley DB: (http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html) 2:END_DEPENDENCIES 2:NOTES[notes on attempted build] Get Clang and llvm from ppa: https://launchpad.net/~eudoxos/+archive/llvm-3.1 Actually the ppa doesn't include all the dev libraries. Instead download binaries from http://llvm.org/releases/download.html and also get dragonegg src from there as well compile dragonegg Download Berkeley DB from the given website and install from source > mkdir build > cd build > cmake .. ... Could not find module FindLLVM.cmake or a configuration file for package LLVM. Found https://llvm.org/viewvc/llvm-project/llbrowse/trunk/cmake_modules/FindLLVM.cmake?view=markup and put it in the cmake folder > cmake .. ... CMake Error at CMakeLists.txt:16 (include): include could not find load file: AddLLVM ... found https://www.opensource.apple.com/source/llvmCore/llvmCore-2118/cmake/modules/AddLLVM.cmake and added this to the cmake folder Also needed: https://www.opensource.apple.com/source/llvmCore/llvmCore-2118/cmake/modules/ Switched to use the code from: https://www.opensource.apple.com/source/llvmCore/llvmCore-2118/cmake However in the end was left with this error: > cmake .. cmake: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libarchive.so.12) cmake: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libarchive.so.12) cmake: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libarchive.so.12) cmake: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libarchive.so.12) cmake: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libarchive.so.12) -- LLVM llvm-config found at: /usr/local/bin/llvm-config -- Found Perl: /usr/bin/perl CMake Error at lib/instrument/CMakeLists.txt:13 (add_llvm_loadable_module): Unknown CMake command "add_llvm_loadable_module". -- Configuring incomplete, errors occurred! Try a different pair of cmake files: http://www.opensource.apple.com/source/clang/clang-137/src/cmake/modules/LLVMConfig.cmake?txt https://llvm.org/svn/llvm-project/llvm/branches/Apple/Zoidberg/cmake/modules/AddLLVM.cmake This gave an error also > cmake .. -- The C compiler identification is GNU 4.8.1 -- The CXX compiler identification is GNU 4.8.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - -- Boost version: 1.48.0 -- Found the following Boost libraries: -- iostreams -- LLVM llvm-config found at: /usr/local/bin/llvm-config CMake Error at cmake/LLVMConfig.cmake:176 (include): include could not find load file: LLVMLibDeps Call Stack (most recent call first): cmake/AddLLVM.cmake:2 (include) CMakeLists.txt:16 (include) -- Loadable modules not supported on this platform. ddg-instr ignored. CMake Error at lib/instrument/CMakeLists.txt:18 (install): install TARGETS given target "ddg-instr" which does not exist in this directory. -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- Could NOT find DB (missing: DB_LIBRARY DB_INCLUDE_DIR) CMake Error at cmake/LLVMConfig.cmake:114 (message): Library `bitreader' not found in list of llvm libraries. Call Stack (most recent call first): cmake/LLVMConfig.cmake:54 (explicit_map_components_to_libraries) tools/ddg-vect/CMakeLists.txt:16 (llvm_map_components_to_libraries) -- Configuring incomplete, errors occurred! See also "/home/student/temp/repro/Holewinski/trunk/build/CMakeFiles/CMakeOutput.log". Cmake modules for finding LLVM headers/libraries where not included. Trying to use some found online didn't work. Initial email reply didn't include instructions on building. 2:END_NOTES