(original) (raw)
I’ve run into a bizarre error in which LLVM\_SRC/Makefile.rules is trying to access a file that doesn’t exist, even though I’ve made sure to correctly reference the needed file. In LLVM\_SRC/Makefile.rules, lines 183 and 184 reference the variable ConfigStatusScript, which is defined as (PROJ_OBJ_ROOT)/config.status.GiventhewayPROJ_OBJ_ROOTisdefined,thismeansConfigStatusScriptisdefinedasLLVM_OBJ/config.status.However,lines183and184appeartosearchingforthefile“config.status”inLLVM_SRC/projects/safecode/tools/clang.Hereissometextfromthecommandlinethatillustratestheproblem:<divclass=""><brclass=""></div><divclass=""><divclass=""><brclass=""></div><divclass=""><divstyle="margin:0px;font−size:11px;font−family:Menlo;"class="">Peters−MacBook−Pro:clangpeterfinn(PROJ\_OBJ\_ROOT)/config.status. Given the way PROJ\_OBJ\_ROOT is defined, this means ConfigStatusScript is defined as LLVM\_OBJ/config.status. However, lines 183 and 184 appear to searching for the file “config.status” in LLVM\_SRC/projects/safecode/tools/clang. Here is some text from the command line that illustrates the problem:<div class=""><br class=""></div><div class=""><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Peters-MacBook-Pro:clang peterfinn(PROJ_OBJ_ROOT)/config.status.GiventhewayPROJ_OBJ_ROOTisdefined,thismeansConfigStatusScriptisdefinedasLLVM_OBJ/config.status.However,lines183and184appeartosearchingforthefile“config.status”inLLVM_SRC/projects/safecode/tools/clang.Hereissometextfromthecommandlinethatillustratestheproblem:<divclass=""><brclass=""></div><divclass=""><divclass=""><brclass=""></div><divclass=""><divstyle="margin:0px;font−size:11px;font−family:Menlo;"class="">Peters−MacBook−Pro:clangpeterfinn make VERBOSE=1llvm\[0\]: Reconfiguring with /Users/peterfinn/Desktop/llvm\_trunk\_2/configure
cd /Users/peterfinn/Desktop/llvm\_trunk\_2/projects/safecode/tools/clang && \\
/Users/peterfinn/Desktop/llvm\_trunk\_2/projects/safecode/tools/clang/config.status --recheck && \\
/Users/peterfinn/Desktop/llvm\_trunk\_2/projects/safecode/tools/clang/config.status
/bin/sh: /Users/peterfinn/Desktop/llvm\_trunk\_2/projects/safecode/tools/clang/config.status: No such file or directory
Thanks,
Peter Finn