<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>Hi, thanks for your answers.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>I did:</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>cd workspace</span></div><div><span>svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm<br></span></div><div><span>cd llvm/<br></span></div><div><span>mkdir build<br></span></div><div><span>cd build/<br></span></div><div><span>../configure
 --enable-jit<br></span></div><div><span>make                                                      # OK, everything went fine.<br></span></div><div><span>cd ../lib/Transforms/InstCombine/            # Just to test<br></span></div><div><span>vim InstCombineCalls.cpp                       # added `if (0 == 1) return 0;` at getPromotedType(...)<br></span></div><div><span>cd ../../../build/</span></div><div><span>make ONLY_TOOLS="lli"</span></div><div><span><br></span></div><div><span>error:</span></div><div><span><br></span></div><div><span><div>llvm[3]: Compiling InstCombineCalls.cpp for Debug+Asserts build</div><div>/home/beckert/workspace/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp: In function ‘llvm::Type*
 getPromotedType(llvm::Type*)’:</div><div>/home/beckert/workspace/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:26: error: return-statement with no value, in function returning ‘llvm::Type*’</div><div>make[3]: ** [/home/beckert/workspace/llvm/build/lib/Transforms/InstCombine/Debug+Asserts/InstCombineCalls.o] Error 1</div><div>make[3]: Exiting directory `/home/beckert/workspace/llvm/build/lib/Transforms/InstCombine'</div><div><br></div><div>Is InstCombine required for lli?</div><div><br></div><div><br></div></span></div><div><span>I'm using:</span></div><div><span><br></span></div><div><span>Debian 6</span></div><div><span>Gnu Make 3.81</span></div><div><span>Gnu Autoconf 2.67</span></div><div><span>Gnu Automake 1.11</span></div><div><span><br></span></div><div><span><br></span></div><div><span>thanks.</span></div><div><span>Beckert.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;
 "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div>  <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Tim Northover <t.p.northover@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Beckert Frey <beckert.frey@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Peter Cooper <peter_cooper@apple.com>; "llvmdev@cs.uiuc.edu" <llvmdev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, May 4, 2012 4:59 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] how compile subproject<br> </font> </div> <br>
> Neither worked. =(<br><br>Hmm. Something seems to have gone horribly wrong then. I've just<br>reproduced Peter's suggestion on the autoconf build and it worked<br>fine. Perhaps try a clean build out of tree:<br><br>CMake:<br><br>mkdir my_special_build_dir<br>cd my_special_build_dir<br>cmake $PATH_TO_LLVM_SOURCE<br>make llc<br><br>Autotools:<br>mkdir my_special_build_dir<br>cd my_special_build_dir<br>$PATH_TO_LLVM_SOURCE/configure<br>make ONLY_TOOLS=llc<br><br>Both of these have just worked for me, so if they don't work for you<br>we may need more details: your platform and the files you see but<br>expect not to if only llc is built are the most obvious ones.<br><br>Tim.<br><br><br> </div> </div>  </div></body></html>