Hi John,<br><br>I think --enable-llvm (for the front-end compilation) expects the object directory used during the LLVM compilation.<br>I followed the following sequence and got both LLVM and front end installed on Ubuntu 7.10. Hope this helps.<br>
<br>Let's say you start out at BASE_DIR<br><br>[BASE_DIR]$ svn co <a href="http://llvm.org/svn/llvm-project/llvm/trunk">http://llvm.org/svn/llvm-project/llvm/trunk</a> llvm<br><br>[BASE_DIR]$ mkdir llvm-objects<br>[BASE_DIR]$ cd llvm-objects<br>
<br>[BASE_DIR/llvm-objects]$ sudo ../llvm/configure --prefix=/usr/local/ --program-prefix=llvm- --enable-llvm=$BASE_DIR/llvm/ --disable-shared --disable-multilib --disable-bootstrap --enable-languages=c,c++<br><br>[BASE_DIR/llvm-objects]$ sudo make ENABLE_OPTIMIZED=0<br>
[BASE_DIR/llvm-objects]$ sudo make install<br><br>[BASE_DIR/llvm-objects]$ cd ..<br>[BASE_DIR]$ svn co <a href="http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk">http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk</a> llvm-gcc-4.2<br>
<br>[BASE_DIR]$ mkdir llvm-gcc-4.2-objects<br>[BASE_DIR]$ cd llvm-gcc-4.2-objects<br><br>[BASE_DIR/llvm-gcc-4.2-objects]$ ../llvm-gcc-4.2/configure --prefix=/usr/local --program-prefix=llvm- --enable-llvm=$BASE_DIR/llvm-objects/ --enable-languages=c,c++ --enable-checking<br>
<br>[BASE_DIR/llvm-gcc-llvm-4.2-objects]$ sudo make<br>[BASE_DIR/llvm-gcc-llvm-4.2-objects]$ sudo make install<br><br>[BASE_DIR/llvm-gcc-llvm-4.2-objects]$ sudo chmod ugo+rx /usr/local/bin/llvm*<br><br>[BASE_DIR/llvm-gcc-llvm-4.2-objects]$ ls /usr/local/bin/llvm*<br>
/usr/local/bin/llvm-ar* /usr/local/bin/llvmc2* /usr/local/bin/llvm-dis* /usr/local/bin/llvm-gccbug* /usr/local/bin/llvm-nm*<br>/usr/local/bin/llvm-as* /usr/local/bin/llvm-config* /usr/local/bin/llvm-extract* /usr/local/bin/llvm-gcov* /usr/local/bin/llvm-prof*<br>
/usr/local/bin/llvm-bcanalyzer* /usr/local/bin/llvm-cpp* /usr/local/bin/llvm-g++* /usr/local/bin/llvm-ld* /usr/local/bin/llvm-ranlib*<br>/usr/local/bin/llvm-c++* /usr/local/bin/llvm-db* /usr/local/bin/llvm-gcc* /usr/local/bin/llvm-link* /usr/local/bin/llvm-stub*<br>
<br>regards,<br>Prakash<br><div class="gmail_quote">On Wed, Apr 23, 2008 at 5:15 PM, John Regehr <<a href="mailto:regehr@cs.utah.edu">regehr@cs.utah.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I checked out LLVM and configured like this:<br>
<br>
./configure --prefix=/home/regehr --enable-optimized<br>
<br>
then built and installed it. Then, checked out the frontend, configured<br>
like this:<br>
<br>
../configure --prefix=/home/regehr --enable-languages=c,c++ \<br>
--enable-llvm=/home/regehr/z/llvm<br>
<br>
but when I try to build I get<br>
<br>
configure: error: You must specify valid path to your LLVM tree with<br>
--enable-llvm=DIR<br>
<br>
The dir I specified is correct, and it is being passed properly to<br>
gcc/configure. The problem seems to be that my llvm stuff is going into<br>
a "Release" directory, whereas the stuff in gcc/configure starting<br>
around line 7384 is checking a list of dirs including "Release-Asserts",<br>
"Debug-Asserts", etc. -- but not including "Release" so I'm falling into<br>
the else clause.<br>
<br>
Am I doing something silly or is this a bug? Thanks,<br>
<font color="#888888"><br>
John Regehr<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</font></blockquote></div><br>