Skip to Content.
Sympa Menu

svadev - Re: [svadev] Error in Compiling Poolalloc

svadev AT lists.siebelschool.illinois.edu

Subject: Svadev mailing list

List archive

Re: [svadev] Error in Compiling Poolalloc


Chronological Thread 
  • From: John Criswell <criswell AT illinois.edu>
  • To: Vishruth Ashok <ashok2 AT illinois.edu>
  • Cc: svadev AT cs.uiuc.edu
  • Subject: Re: [svadev] Error in Compiling Poolalloc
  • Date: Wed, 23 Jan 2013 11:43:50 -0600
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev/>
  • List-id: <svadev.cs.uiuc.edu>
  • Organization: University of Illinois

On 1/23/13 11:38 AM, Vishruth Ashok wrote:
Hello,
While following the steps from here to compile poolalloc, I get an error. I'm not exactly sure what could have gone wrong and I've tried redoing the steps a few times, without success.
I also get an error while trying to compile safecode. It seems related an error in Printer.cpp.
My error trace looks like this:
llvm[2]: Compiling Printer.cpp for Debug build (PIC)
In file included from Printer.cpp:23:0:
/home/vishruth/Workspace/Thesis/llvm/include/llvm/Support/GraphWriter.h: In instantiation of ‘void llvm::GraphWriter<GraphType>::writeNode(llvm::GraphWriter<GraphType>::NodeType*) [with GraphType = const llvm::DSGraph*; llvm::GraphWriter<GraphType>::NodeType = const llvm::DSNode]’:
Printer.cpp:295:19:   required from here
/home/vishruth/Workspace/Thesis/llvm/include/llvm/Support/GraphWriter.h:175:9: error: cast from type ‘llvm::GraphWriter<const llvm::DSGraph*>::NodeType* {aka const llvm::DSNode*}’ to type ‘void*’ casts away qualifiers [-Werror=cast-qual]
/home/vishruth/Workspace/Thesis/llvm/include/llvm/Support/GraphWriter.h:195:9: error: cast from type ‘llvm::GraphWriter<const llvm::DSGraph*>::NodeType* {aka const llvm::DSNode*}’ to type ‘void*’ casts away qualifiers [-Werror=cast-qual]
cc1plus: all warnings being treated as errors
/bin/rm: cannot remove `/home/vishruth/Workspace/Thesis/llvm/projects/poolalloc/lib/DSA/Debug/Printer.d.tmp': No such file or directory
make[2]: *** [/home/vishruth/Workspace/Thesis/llvm/projects/poolalloc/lib/DSA/Debug/Printer.o] Error 1
make[2]: Leaving directory `/home/vishruth/Workspace/Thesis/llvm/projects/poolalloc/lib/DSA'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/vishruth/Workspace/Thesis/llvm/projects/poolalloc/lib'
make: *** [all] Error 1

Any idea what might have gone wrong?

My best guess is that you're compiling with a version of GCC or Clang that is more stringent about warnings and errors than what we use.

I recommend removing -Werror and -Wall from Makefile.common.in and reconfiguring poolalloc.  That should fix the compile.

Also, I realize that I haven't updated the web site documents yet, but you can use the release_32 branch of LLVM, poolalloc, and SAFECode now.  The release_30 branch is frozen.

-- John T.


Regards,
Vishruth


--
Vishruth Ashok
Currently pursuing Bachelor of Science
Computer Science
University of Illinois, Urbana-Champaign


_______________________________________________
svadev mailing list
svadev AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/svadev




Archive powered by MHonArc 2.6.16.

Top of Page