<div dir="ltr">Which compiler are you using to compile poolalloc? Looks like it doesn't support C++11 (doesn't recognize nullptr). <div><br>Jingyue</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 30, 2015 at 8:32 PM, Qiuping Yi <span dir="ltr"><<a href="mailto:yiqiuping@gmail.com" target="_blank">yiqiuping@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 dir="ltr"><div>Hi, John Criswell</div><div><br></div><div>Thank you very much.</div><div><br></div><div>I am installing LLVM-3.2, but I encounter the next error when carrying out "make":</div><div><br></div><div>llvm[3]: Compiling ClangASTNodesEmitter.cpp for Release+Asserts build</div><div>ClangASTNodesEmitter.cpp: In member function ‘std::pair<llvm::Record*, llvm::Record*><unnamed>::ClangASTNodesEmitter::EmitNode(const std::multimap<llvm::Record*, llvm::Record*, std::less<llvm::Record*>, std::allocator<std::pair<llvm::Record* const, llvm::Record*> > >&, llvm::raw_ostream&, llvm::Record*)’:</div><div>ClangASTNodesEmitter.cpp:80: error: ‘nullptr’ was not declared in this scope</div><div>make[3]: *** [/home/guest/installed/llvm-3.2/tools/clang/utils/TableGen/Release+Asserts/ClangASTNodesEmitter.o] Error 1</div><div>make[3]: Leaving directory `/home/guest/installed/llvm-3.2/tools/clang/utils/TableGen'</div><div>make[2]: *** [all] Error 1</div><div>make[2]: Leaving directory `/home/guest/installed/llvm-3.2/tools/clang'</div><div>make[1]: *** [clang/.makeall] Error 2</div><div>make[1]: Leaving directory `/home/guest/installed/llvm-3.2/tools'</div><span class=""><div>make: *** [all] Error 1</div><div><br></div></span><div>What's wrong? What should I do?</div></div><div class="gmail_extra"><span class=""><br clear="all"><div><div><br>--------------------------------------------<br>Qiuping Yi<br>Institute Of Software<br>Chinese Academy of Sciences</div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Sat, Jan 31, 2015 at 12:43 AM, John Criswell <span dir="ltr"><<a href="mailto:jtcriswel@gmail.com" target="_blank">jtcriswel@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 text="#000000" bgcolor="#FFFFFF"><span>
    <div>On 1/30/15 10:24 AM, Qiuping Yi wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">I am just not upgrade my LLVM. So I must use some
        higer LLVM version, right?</div>
    </blockquote>
    <br></span>
    Yes.  For working with poolalloc, I would recommend using LLVM 3.2
    as we know poolalloc compiles with LLVM 3.2.<br>
    <br>
    If there's a release_29 branch for poolalloc, you could use that,
    but you won't get any bug fixes that we added between poolalloc 2.9
    and poolalloc 3.2.<div><div><br>
    <br>
    Regards,<br>
    <br>
    John Criswell<br>
    <br>
    <blockquote type="cite">
      <div class="gmail_extra"><br clear="all">
        <div>
          <div><br>
            --------------------------------------------<br>
            Qiuping Yi<br>
            Institute Of Software<br>
            Chinese Academy of Sciences</div>
        </div>
        <br>
        <div class="gmail_quote">On Fri, Jan 30, 2015 at 11:21 PM, John
          Criswell <span dir="ltr"><<a href="mailto:jtcriswel@gmail.com" target="_blank">jtcriswel@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 text="#000000" bgcolor="#FFFFFF"><span>
                <div>On 1/30/15 10:17 AM, Qiuping Yi wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">Thank you. But now I am using LLVM 2.9,
                    so which version of poolalloc I should use ?</div>
                </blockquote>
                <br>
              </span> Why are you using LLVM 2.9?  That's an old version
              of LLVM (even by my standards).<br>
              <br>
              Is there some other LLVM-based tool that requires that you
              use LLVM 2.9?<br>
              <br>
              Regards,<br>
              <br>
              John Criswell
              <div>
                <div><br>
                  <br>
                  <blockquote type="cite">
                    <div class="gmail_extra"><br clear="all">
                      <div>
                        <div><br>
                          --------------------------------------------<br>
                          Qiuping Yi<br>
                          Institute Of Software<br>
                          Chinese Academy of Sciences</div>
                      </div>
                      <br>
                      <div class="gmail_quote">On Fri, Jan 30, 2015 at
                        11:12 PM, John Criswell <span dir="ltr"><<a href="mailto:jtcriswel@gmail.com" target="_blank">jtcriswel@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 text="#000000" bgcolor="#FFFFFF">
                            <div>Dear Qiuping,<br>
                              <br>
                              If you use the release_32 branch of
                              poolalloc, then you need to use LLVM 3.2.<br>
                              <br>
                              For directions on compiling poolalloc with
                              LLVM 3.2, please the SAFECode build
                              directions at <a href="http://safecode.cs.illinois.edu/docs/Install.html" target="_blank">http://safecode.cs.illinois.edu/docs/Install.html</a>. 

                              You can just skip the steps in the
                              directions that compile SAFECode.<br>
                              <br>
                              Regards,<br>
                              <br>
                              John Criswell
                              <div>
                                <div><br>
                                  <br>
                                  On 1/30/15 10:05 AM, Qiuping Yi wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <div dir="ltr">Hi, all
                                    <div><br>
                                    </div>
                                    <div>I want to use the alias
                                      analysises in project poolalloc,
                                      but I encounter some problem
                                      during installing it. I install
                                      poolalloc as follow:</div>
                                    <div><br>
                                    </div>
                                    <div>1) cd llvm/projects</div>
                                    <div>    svn co <a href="http://llvm.org/svn/llvm-project/poolalloc/branches/release_32" target="_blank">http://llvm.org/svn/llvm-project/poolalloc/branches/release_32</a>
                                      poolalloc</div>
                                    <div>3) cd LLVM-object-directory
                                      <div>    make tools-only</div>
                                      <div>    cd projects/poolalloc</div>
                                      <div>    make</div>
                                      <div><br>
                                      </div>
                                      <div>When I carried out "make", I
                                        get the next error information:</div>
                                      <div>
                                        <div>llvm[2]: Compiling
                                          AddressTakenAnalysis.cpp for
                                          Release+Asserts build (PIC)</div>
                                        <div>AddressTakenAnalysis.cpp:18:30:
                                          fatal error:
                                          llvm/IR/CallSite.h: No such
                                          file or directory compilation
                                          terminated.</div>
                                        <div>/bin/rm: cannot remove
                                          `/home/gu/installed/llvm-2.9/projects/poolalloc/lib/DSA/Release+Asserts/AddressTakenAnalysis.d.tmp':


                                          No such file or directory</div>
                                        <div>make[2]: ***
                                          [/home/gu/installed/llvm-2.9/projects/poolalloc/lib/DSA/Release+Asserts/AddressTakenAnalysis.o]


                                          Error 1</div>
                                        <div>make[2]: Leaving directory
`/home/gu/installed/llvm-2.9/projects/poolalloc/lib/DSA'</div>
                                        <div>make[1]: *** [all] Error 1</div>
                                        <div>make[1]: Leaving directory
`/home/gu/installed/llvm-2.9/projects/poolalloc/lib'</div>
                                        <div>make: *** [all] Error 1</div>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>Does poolalloc dependent on
                                        some other project which has not
                                        been installed now? What should
                                        I do for incorrectly installing
                                        poolalloc? Thank you all in
                                        advance.</div>
                                      <div><br>
                                      </div>
                                      <div>
                                        <div>--------------------------------------------<br>
                                          Qiuping Yi<br>
                                          Institute Of Software<br>
                                          Chinese Academy of Sciences</div>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
                                  <fieldset></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>_______________________________________________
LLVM Developers mailing list
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><span><font color="#888888">
</font></span></pre>
                              <span><font color="#888888"> </font></span></blockquote>
                            <span><font color="#888888"> <br>
                                <br>
                                <pre cols="72">-- 
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a href="http://www.cs.rochester.edu/u/criswell" target="_blank">http://www.cs.rochester.edu/u/criswell</a></pre>
                              </font></span></div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <br>
                  <pre cols="72">-- 
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a href="http://www.cs.rochester.edu/u/criswell" target="_blank">http://www.cs.rochester.edu/u/criswell</a></pre>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a href="http://www.cs.rochester.edu/u/criswell" target="_blank">http://www.cs.rochester.edu/u/criswell</a></pre>
  </div></div></div>

</blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>