<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 5/15/12 1:10 AM, Umesh Kalappa wrote:
<blockquote
cite="mid:CAGfacvQ8O3kF81yyRpPqEnoQAGmiWxjQLaU2NYhL3qpiBv0x+g@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Thank you all for the responses,
<div>John,</div>
<div>My Bad here you go </div>
<div>
<div> clang version 3.2 (trunk)</div>
<div> Target: i386-pc-linux-gnu</div>
<div> Thread model: posix</div>
<div><br>
</div>
<div> [root@localhost opensrc]# cat
/etc/centos-release</div>
<div> CentOS release 6.2 (Final)</div>
<div>Matthieu,</div>
<div>Thanks for the fix and let me try again with latest trunk.</div>
</div>
</blockquote>
<br>
Again, SAFECode will not compile against LLVM mainline because we
haven't been tracking changes in LLVM. If you want to compile
SAFECode, you need to compile it with LLVM 3.0.<br>
<br>
The problem is that there is a C++ coding mistake in LLVM 3.0 that
prevents newer, more pedantic versions of Clang from compiling it.
Newer versions of LLVM correct the mistake, but SAFECode does not
work with these newer versions yet.<br>
<br>
Unfortunately, your only option at this point is to compile LLVM
3.0, poolalloc, and SAFECode with GCC (or maybe an older version of
clang; I can use clang version 3.0 on Mac OS X).<br>
<br>
-- John T.<br>
<br>
<br>
<blockquote
cite="mid:CAGfacvQ8O3kF81yyRpPqEnoQAGmiWxjQLaU2NYhL3qpiBv0x+g@mail.gmail.com"
type="cite">
<div>
<div><br>
</div>
<div>~Umesh</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div class="gmail_quote">On Mon, May 14, 2012 at 10:34 PM,
Matthieu Monrocq <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:matthieu.monrocq@gmail.com" target="_blank">matthieu.monrocq@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
<br>
<div class="gmail_quote">On Mon, May 14, 2012 at 4:39 PM,
John Criswell <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:criswell@illinois.edu" target="_blank">criswell@illinois.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div> On 5/14/12 4:32 AM, Umesh Kalappa wrote:
<blockquote type="cite"> Hi All ,
<div><br>
</div>
<div>Was trying to build the LLVM src from <span
style="font-family:monospace;font-size:medium;text-align:left"><a
moz-do-not-send="true"
href="http://llvm.org/svn/llvm-project/llvm/branches/release_30"
target="_blank">http://llvm.org/svn/llvm-project/llvm/branches/release_30</a> </span>,But
unable to build the same and clang poped up
with below error .</div>
</blockquote>
<br>
</div>
First, it sounds like you're building LLVM 3.0,
Poolalloc, and SAFECode with an unmodified version
of clang. Is this correct? If so, which version of
Clang are you using?<br>
<br>
Second, what platform are you on?<br>
<br>
-- John T.<br>
<br>
<blockquote type="cite">
<div>
<div><br>
</div>
<div>
<div>llvm[1]: Compiling IntervalMap.cpp for
Debug build</div>
<div>In file included from
/root/projects/safecode/llvm/lib/Support/IntervalMap.cpp:14:</div>
<div>/root/projects/safecode/llvm/include/llvm/ADT/IntervalMap.h:1980:32:
error: use 'template' keyword to treat
'newNode' as a dependent template name</div>
<div> Node[NewNode] =
this->map->newNode<NodeT>();</div>
<div> ^</div>
<div> template</div>
<div>1 error generated.</div>
<div>make[1]: ***
[/root/projects/safecode/build/lib/Support/Debug/IntervalMap.o]
Error 1</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Any lights will be appreciated on the above
issue . </div>
<div><br>
</div>
<div>Thanks </div>
<div>Umesh </div>
<div><br>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
This an issue in the header itself, indeed the `template`
keyword is necessary to disambiguate between a template
method (the case here) and an attribute compared to some
NodeT thing.<br>
<br>
It has been fixed on trunk already (now at line 1991).<span
class="HOEnZb"><font color="#888888"><br>
<br>
-- Matthieu<br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>