David Greene wrote:> On Monday 16 November 2009 13:04, John Criswell wrote: > >>> [snip] >>> >>> I applied the attached patch to make it compile on my box (Debian >>> x86_64), only to find out that x86_64 is not supported :( >>> This architecture is not supported by the pool allocator! >>> Aborted >>> >> Thanks for the patch. What options do I give to the patch command to >> apply it to the source code? >> > > Did I miss a message? I am getting tons of compiler errors building poolalloc > and safecode and am wondering if this patch would fix things. >What platform are you building on? What types of errors are you seeing? Edwin's patch will fix warnings for SAFECode on 64-bit platforms. -- John T.> -Dave > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
On Monday 16 November 2009 14:18, John Criswell wrote:> > Did I miss a message? I am getting tons of compiler errors building > > poolalloc and safecode and am wondering if this patch would fix things. > > What platform are you building on? What types of errors are you > seeing? Edwin's patch will fix warnings for SAFECode on 64-bit platforms.I'm on a 64-bit Linux machine, SLES 10.1. Here's what I see: [x86_64-mod-dbg]: In file included from /ptmp/dag/llvm-project.modified/llvm/trunk/projects/poolalloc/include/dsa/DSGraph.h:18, [x86_64-mod-dbg]: from /ptmp/dag/llvm-project.modified/llvm/trunk/projects/poolalloc/lib/DSA/Basic.cpp:16: [x86_64-mod-dbg]: /ptmp/dag/llvm-project.modified/llvm/trunk/projects/poolalloc/include/dsa/DSNode.h:18:34: error: llvm/Support/Streams.h: No such file or directory Looks like if this gets fixed I will be in good shape. I configured with: cd /ptmp/dag/build.llvm.trunk.modified.debug/x86_64-unknown-linux-gnu /ptmp/dag/llvm-project.modified/llvm/trunk/configure --prefix=/tools/llvm-tools/llvm/install.trunk.modified.debug/x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu --enable-assertions --with-llvmgccdir=/tools/llvm-tools/llvm/install.trunk.modified.debug/x86_64-unknown-linux-gnu --disable-jit --disable-threads --with-llvmsrc=/ptmp/dag/llvm-project.modified/llvm/trunk --with-llvmobj=/ptmp/dag/build.llvm.trunk.modified.debug/x86_64-unknown-linux-gnu -Dave
David Greene wrote:> On Monday 16 November 2009 14:18, John Criswell wrote: > > >>> Did I miss a message? I am getting tons of compiler errors building >>> poolalloc and safecode and am wondering if this patch would fix things. >>> >> What platform are you building on? What types of errors are you >> seeing? Edwin's patch will fix warnings for SAFECode on 64-bit platforms. >> > > I'm on a 64-bit Linux machine, SLES 10.1. > > Here's what I see: > > [x86_64-mod-dbg]: In file included > from /ptmp/dag/llvm-project.modified/llvm/trunk/projects/poolalloc/include/dsa/DSGraph.h:18, > [x86_64-mod-dbg]: > from /ptmp/dag/llvm-project.modified/llvm/trunk/projects/poolalloc/lib/DSA/Basic.cpp:16: > [x86_64-mod-dbg]: /ptmp/dag/llvm-project.modified/llvm/trunk/projects/poolalloc/include/dsa/DSNode.h:18:34: > error: llvm/Support/Streams.h: No such file or directory >I believe you're compiling with mainline LLVM. You need to compile against LLVM 2.6. -- John T.