<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<BR>Thanks Bob and John for the response. I am having problems building poolalloc with my MinGW and gcc 4.4.0 setup. Running make in the poolalloc directory results in a bunch of "undefined reference to ..." link errors building Release/lib/LLVMDataStructure.dll. I looked at the command line for this link and found that there are no libraries included with "-l..." options even though there are a bunch of library path options with "-L...". The first few errors are:<BR>
 <BR>
c:/llvm/llvm-2.6/poolalloc/lib/DSA/Release/Basic.o:Basic.cpp:(.text+0x96): undefined reference to `llvm::PassInfo::registerPass()'<BR>c:/llvm/llvm-2.6/poolalloc/lib/DSA/Release/Basic.o:Basic.cpp:(.text+0xde): undefined reference to `llvm::TargetData::ID'<BR>c:/llvm/llvm-2.6/poolalloc/lib/DSA/Release/Basic.o:Basic.cpp:(.text+0xe3): undefined reference to `llvm::Pass::lookupPassInfo(int)'<BR>c:/llvm/llvm-2.6/poolalloc/lib/DSA/Release/Basic.o:Basic.cpp:(.text+0x11a): undefined reference to `llvm::Type::getInt8Ty(llvm::LLVMContext&)'<BR>c:/llvm/llvm-2.6/poolalloc/lib/DSA/Release/Basic.o:Basic.cpp:(.text+0x12a): undefined reference to `llvm::PointerType::get(llvm::Type const*, unsigned int)'<BR><BR>
After trying to understand Makefile.rules in the llvm directory I tried using "make LOADABLE_MODULE=1" and this time the command line includes:<BR>
 <BR>
     -lffi -lpsapi -limagehlp -lm <BR><BR>
but I still get the undefined references. It looks like the correct "-l..." option is not being generated. I'm guessing this is as you (John) think a configure problem, but being currently a Windows developer I just don't know enough about it to debug.<BR>
 <BR>
I am only interested in LLVM because of DSA which I learned about from the Lattner et. al PLDI paper. It would be nice if I could get this to work. Any help would be appreciated.<BR>
 <BR>
Thanks,<BR>
 <BR>
--Patrick<BR>
 <BR>> Date: Mon, 8 Mar 2010 09:10:16 -0600<BR>> From: criswell@uiuc.edu<BR>> To: wpats@hotmail.com<BR>> CC: llvmdev@cs.uiuc.edu<BR>> Subject: Re: [LLVMdev] How do I download the "poolalloc" module ?<BR>> <BR>> Bob Wilson wrote:<BR>> > On Mar 6, 2010, at 7:26 AM, Patrick Sathyanathan wrote:<BR>> ><BR>> > <BR>> >> Hi,<BR>> >> <BR>> >> I'm interested in using the "Data Structure Analysis" that is apparently in the "poolalloc" module according to the documentation on alias analysis in LLVM. I have downloaded and built LLVM 2.6 on MinGW but the sources do not seem to include anything related to pool allocation. I don't think MinGW includes svn. Is there an download location where I can get the module ?<BR>> >> <BR>> ><BR>> > Hi Patrick,<BR>> ><BR>> > John Criswell just sent the following yesterday. Since you've got llvm 2.6, you'll want to get poolalloc from the new branch.<BR>> > <BR>> <BR>> To add to this, DSA is in the poolalloc project as Bob states above. We <BR>> regularly use DSA on Mac OS X and Linux, but I don't know if it will <BR>> work on Cygwin. Chances are good that any problem you encounter will be <BR>> something that can be fixed using autoconf (i.e., it will be API <BR>> differences between Cygwin and Mac OS/Linux that will be easy to fix).<BR>> <BR>> So, if you can't get DSA compiled for some reason, please email the list <BR>> or file a bug report. Having DSA working on more platforms would be nice.<BR>> <BR>> -- John T.<BR>> <BR>> > Begin forwarded message:<BR>> ><BR>> > <BR>> >> Dear SAFECoders and LLVMers,<BR>> >><BR>> >> There is some new work on moving DSA to the new LLVM 2.7 API. I am <BR>> >> hoping to do something similar for SAFECode once the code freeze occurs.<BR>> >><BR>> >> To keep things running smoothly, there are now release_26 branches for <BR>> >> the poolalloc and safecode projects. If you are using SAFECode, <BR>> >> Poolalloc, or DSA with LLVM 2.6, you will want to switch to these branches.<BR>> >><BR>> >> To get poolalloc and safecode out of these branches, use the following <BR>> >> SVN commands:<BR>> >><BR>> >> svn co http://llvm.org/svn/llvm-project/poolalloc/branches/release_26 <BR>> >> poolalloc<BR>> >> svn co http://llvm.org/svn/llvm-project/safecode/branches/release_26 <BR>> >> safecode<BR>> >><BR>> >><BR>> >> If you have any questions or problems compiling poolalloc or SAFECode, <BR>> >> please email llvmdev or svadev, respectively.<BR>> >><BR>> >> -- John T.<BR>> >> <BR>> ><BR>> ><BR>> > _______________________________________________<BR>> > LLVM Developers mailing list<BR>> > LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu<BR>> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev<BR>> > <BR>> <BR>                                         </body>
</html>