I’m trying to get the SAFECode compiler up and running for work I’ll be doing, and in trying to configure LLVM (according to the information at http://llvm.org/docs/GettingStarted.html), I ran into some confusion. In step 8 in the section "Getting Started Quickly (A Summary)”, I realized that I wouldn’t be able to follow the steps exactly as described, because they tell me to create a new directory called “build” and then cd to it and try to use cmake. How was this supposed to work, given that I’m doing this from a newly created empty directory? Every time I try it, bash tells me that the command “cmake” wasn’t found. What am I supposed to do here?
SAFECode never used CMake; it used the older Autoconf-based build system. You need to compile LLVM per the Autoconf instructions (http://llvm.org/docs/BuildingLLVMWithAutotools.html) which should match the instructions for building LLVM in the SAFECode Install Guide (modulo the change in LLVM version).
Per a recent discussion we've been having on llvmdev, we'll eventually be moving over to CMake style builds, but for now, the Autoconf-style builds should still work.
Sorry for the late reply. I see that John already told you SAFECode doesn’t support building with CMake. I also wanted to address one of the questions in your original email.
How was this supposed to work, given that I’m doing this from a newly created empty directory?
CMake is a binary tool that you will need to install on your system, it does not live in tree and it is not a script like configure. For more information on installing CMake for your OS see http://www.cmake.org/install/.