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: Csaba Raduly <rcsaba AT gmail.com>
  • To: Vishruth Ashok <ashok2 AT illinois.edu>
  • Cc: svadev AT cs.uiuc.edu
  • Subject: Re: [svadev] Error in Compiling Poolalloc
  • Date: Thu, 24 Jan 2013 10:59:37 +0100
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev/>
  • List-id: <svadev.cs.uiuc.edu>

Hi,

On Wed, Jan 23, 2013 at 6:38 PM, 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]

John, Isn't this already fixed?
In http://llvm.org/docs/doxygen/html/GraphWriter_8h_source.html , the
cast is to <const void*>, which should silence the warning.

Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus
Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds





Archive powered by MHonArc 2.6.16.

Top of Page