Andrew Lenharth
2010-Mar-09 17:26 UTC
[LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0
The patch below adds dsa and some of poolalloc to opt. It should be simple enough to extend to all of poolalloc by adding more classes to LinkDSA.h. Andrew Index: tools/opt/opt.cpp ==================================================================--- tools/opt/opt.cpp (revision 97995) +++ tools/opt/opt.cpp (working copy) @@ -38,6 +38,12 @@ #include "llvm/LinkAllVMCore.h" #include <memory> #include <algorithm> + +#include "dsa/DSGraph.h" +#include "dsa/DataStructure.h" +#include "poolalloc/RunTimeAssociate.h" +#include "LinkDSA.h" + using namespace llvm; // The OptimizationList is automatically populated with registered Passes by the Index: tools/opt/Makefile ==================================================================--- tools/opt/Makefile (revision 97995) +++ tools/opt/Makefile (working copy) @@ -12,3 +12,8 @@ LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo include $(LEVEL)/Makefile.common + +CPP.Flags += -I../../projects/poolalloc/include + +ExtraLibs := ../../projects/poolalloc/$(BuildMode)/lib/libpoolalloc.a \ + ../../projects/poolalloc/$(BuildMode)/lib/libLLVMDataStructure.a On Tue, Mar 9, 2010 at 11:13 AM, John Criswell <criswell at uiuc.edu> wrote:> Dear Patrick and Antron, > > I've modified the Makefiles in the poolalloc module so that they do not > build shared libraries on MingW or Cygwin. Patrick, if you do an "svn > up" you should be able to compile the poolalloc project now. > > -- John T. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Patrick Sathyanathan
2010-Mar-14 13:58 UTC
[LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0
Thanks John, for the update to the Makefiles. I did an "svn update" and am now able to build all the libraries. There were some problems building the poolalloc runtime but I'm not really interested in that. Andrew, thanks for the patch. I am trying to add DSA to opt as you suggested. What should the contents of LinkDSA.h be ? I would appreciate it if you could send me a copy of that file. Thanks again for all the help. It looks like I'm closer to getting to use DSA. --Patrick> Date: Tue, 9 Mar 2010 11:26:52 -0600 > Subject: Re: [LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0 > From: andrewl at lenharth.org > To: criswell at uiuc.edu > CC: wpats at hotmail.com; llvmdev at cs.uiuc.edu > > The patch below adds dsa and some of poolalloc to opt. It should be > simple enough to extend to all of poolalloc by adding more classes to > LinkDSA.h. > > Andrew > > Index: tools/opt/opt.cpp > ==================================================================> --- tools/opt/opt.cpp (revision 97995) > +++ tools/opt/opt.cpp (working copy) > @@ -38,6 +38,12 @@ > #include "llvm/LinkAllVMCore.h" > #include <memory> > #include <algorithm> > + > +#include "dsa/DSGraph.h" > +#include "dsa/DataStructure.h" > +#include "poolalloc/RunTimeAssociate.h" > +#include "LinkDSA.h" > + > using namespace llvm; > > // The OptimizationList is automatically populated with registered > Passes by the > Index: tools/opt/Makefile > ==================================================================> --- tools/opt/Makefile (revision 97995) > +++ tools/opt/Makefile (working copy) > @@ -12,3 +12,8 @@ > LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo > > include $(LEVEL)/Makefile.common > + > +CPP.Flags += -I../../projects/poolalloc/include > + > +ExtraLibs := ../../projects/poolalloc/$(BuildMode)/lib/libpoolalloc.a \ > + ../../projects/poolalloc/$(BuildMode)/lib/libLLVMDataStructure.a > > > On Tue, Mar 9, 2010 at 11:13 AM, John Criswell <criswell at uiuc.edu> wrote: > > Dear Patrick and Antron, > > > > I've modified the Makefiles in the poolalloc module so that they do not > > build shared libraries on MingW or Cygwin. Patrick, if you do an "svn > > up" you should be able to compile the poolalloc project now. > > > > -- John T. > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100314/b74dac38/attachment.html>
Andrew Lenharth
2010-Mar-14 14:35 UTC
[LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0
John, can you copy poolalloc/include/LinkDSA.h to the the release_26 branch? Patrick, you should be able to do an svn switch to trunk on just that file. Andrew On Sun, Mar 14, 2010 at 7:58 AM, Patrick Sathyanathan <wpats at hotmail.com> wrote:> > Thanks John, for the update to the Makefiles. I did an "svn update" and am > now able to build all the libraries. There were some problems building the > poolalloc runtime but I'm not really interested in that. > > Andrew, thanks for the patch. I am trying to add DSA to opt as you > suggested. What should the contents of LinkDSA.h be ? I would appreciate it > if you could send me a copy of that file. > > Thanks again for all the help. It looks like I'm closer to getting to use > DSA. > > --Patrick > >> Date: Tue, 9 Mar 2010 11:26:52 -0600 >> Subject: Re: [LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc >> 4.4.0 >> From: andrewl at lenharth.org >> To: criswell at uiuc.edu >> CC: wpats at hotmail.com; llvmdev at cs.uiuc.edu >> >> The patch below adds dsa and some of poolalloc to opt. It should be >> simple enough to extend to all of poolalloc by adding more classes to >> LinkDSA.h. >> >> Andrew >> >> Index: tools/opt/opt.cpp >> ==================================================================>> --- tools/opt/opt.cpp (revision 97995) >> +++ tools/opt/opt.cpp (working copy) >> @@ -38,6 +38,12 @@ >> #include "llvm/LinkAllVMCore.h" >> #include <memory> >> #include <algorithm> >> + >> +#include "dsa/DSGraph.h" >> +#include "dsa/DataStructure.h" >> +#include "poolalloc/RunTimeAssociate.h" >> +#include "LinkDSA.h" >> + >> using namespace llvm; >> >> // The OptimizationList is automatically populated with registered >> Passes by the >> Index: tools/opt/Makefile >> ==================================================================>> --- tools/opt/Makefile (revision 97995) >> +++ tools/opt/Makefile (working copy) >> @@ -12,3 +12,8 @@ >> LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation >> scalaropts ipo >> >> include $(LEVEL)/Makefile.common >> + >> +CPP.Flags += -I../../projects/poolalloc/include >> + >> +ExtraLibs := ../../projects/poolalloc/$(BuildMode)/lib/libpoolalloc.a \ >> + ../../projects/poolalloc/$(BuildMode)/lib/libLLVMDataStructure.a >> >> >> On Tue, Mar 9, 2010 at 11:13 AM, John Criswell <criswell at uiuc.edu> wrote: >> > Dear Patrick and Antron, >> > >> > I've modified the Makefiles in the poolalloc module so that they do not >> > build shared libraries on MingW or Cygwin. Patrick, if you do an "svn >> > up" you should be able to compile the poolalloc project now. >> > >> > -- John T. >> > >> > _______________________________________________ >> > LLVM Developers mailing list >> > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> > >
Apparently Analagous Threads
- [LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0
- [LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0
- [LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0
- [LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0
- [LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0