<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">There is a quick summary of the recommended way to build LLVM using CMake here:<div class=""><br class=""></div><div class=""><a href="http://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary" class="">http://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary</a></div><div class=""><br class=""></div><div class="">The autoconf/makefile-based build system is not recommended for people new to the community as we are working on phasing it out.</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 14, 2015, at 8:06 AM, Csaba Raduly via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">On Wed, Oct 14, 2015 at 1:55 PM, Q Z via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class=""><blockquote type="cite" class="">I installed LLVM3.7.0  according to the LLVM document. I can use<br class="">"clang","LLVM-dis"commands ,and so on.<br class="">but when I execute commad "make" at llvm/lib/Transform/Hello directory, the<br class="">error is :<br class="">../../../Makefile.common:60:../../../Makefile.config:don't have that file or<br class="">directory<br class="">../../../Makefile.common:68:../../../Makefile.rules:don't have that file or<br class="">directory<br class=""><br class="">why?<br class="">can anyone help me?<br class=""></blockquote><br class="">You can't build LLVM/clang inside its source tree like that. The<br class="">makefile in Hello<br class="">includes Makefile.common, which includes Makefile.config;<br class="">that file doesn't exist inside the "llvm" tree.<br class=""><br class="">To build clang, you need to create a separate directory where to build.<br class="">For example, in the llvm directory:<br class=""><br class="">mkdir ../build<br class="">cd ../build<br class="">../llvm/configure '--enable-optimized' '--enable-assertions'<br class=""><br class="">This will create Makefile.config (among other things) and shadow the<br class="">directories in llvm under build,<br class="">so there will be a    build/lib/Transforms/Hello   directory. You can<br class="">run make there.<br class=""><br class="">Note: This might not work if you only installed binaries and headers for LLVM.<br class="">I have all the sources from LLVM, and clang insde it.<br class=""><br class="">Note: You might want to use cmake instead of autoconf.<br class="">cmake also needs a separate build directory.<br class=""><br class="">Csaba<br class="">-- <br class="">GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++<br class="">The Tao of math: The numbers you can count are not the real numbers.<br class="">Life is complex, with real and imaginary parts.<br class="">"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds<br class="">"People disagree with me. I just ignore them." -- Linus Torvalds<br class="">_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></div></blockquote></div><br class=""></div></body></html>