svadev AT lists.siebelschool.illinois.edu
Subject: Svadev mailing list
List archive
- From: John Criswell <criswell AT illinois.edu>
- To: Csaba Raduly <rcsaba AT gmail.com>
- Cc: Vishruth Ashok <ashok2 AT illinois.edu>, svadev AT cs.uiuc.edu
- Subject: Re: [svadev] Error in Compiling Poolalloc
- Date: Thu, 24 Jan 2013 09:53:59 -0600
- List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev/>
- List-id: <svadev.cs.uiuc.edu>
- Organization: University of Illinois
On 1/24/13 3:59 AM, Csaba Raduly wrote:
Hi,
On Wed, Jan 23, 2013 at 6:38 PM, Vishruth Ashok wrote:
Hello,John, Isn't this already fixed?
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]
In http://llvm.org/docs/doxygen/html/GraphWriter_8h_source.html , the
cast is to <const void*>, which should silence the warning.
It might be (provided that this version of GraphWriter is in the release_32 branch of LLVM). I didn't investigate the details closely.
Vishruth, if you see the error in the release_32 branch on your system, can you file a bug report for it? Fixing a warning like this is low priority as it is easy to work around, but we should have a bug report to track it.
-- John T.
Csaba
- [svadev] Error in Compiling Poolalloc, Vishruth Ashok, 01/23/2013
- Re: [svadev] Error in Compiling Poolalloc, John Criswell, 01/23/2013
- Re: [svadev] Error in Compiling Poolalloc, Vishruth Ashok, 01/23/2013
- Re: [svadev] Error in Compiling Poolalloc, John Criswell, 01/23/2013
- Re: [svadev] Error in Compiling Poolalloc, Vishruth Ashok, 01/23/2013
- Re: [svadev] Error in Compiling Poolalloc, Csaba Raduly, 01/24/2013
- Re: [svadev] Error in Compiling Poolalloc, John Criswell, 01/24/2013
- [svadev] Error in Compiling Poolalloc, Vishruth Ashok, 01/24/2013
- Re: [svadev] Error in Compiling Poolalloc, Vishruth Ashok, 01/25/2013
- Re: [svadev] Error in Compiling Poolalloc, John Criswell, 01/25/2013
- Re: [svadev] Error in Compiling Poolalloc, Vishruth Ashok, 01/25/2013
- [svadev] Error in Compiling Poolalloc, Vishruth Ashok, 01/24/2013
- Re: [svadev] Error in Compiling Poolalloc, John Criswell, 01/24/2013
- Re: [svadev] Error in Compiling Poolalloc, John Criswell, 01/23/2013
Archive powered by MHonArc 2.6.16.