<div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:monospace;white-space:pre-wrap">Hi Chris,here I am building llvm 2.7 . But I am facing error while doing "make" . Also attached a log file here of make.</span><br></div><div><pre class="gmail-bz_comment_text" id="gmail-comment_text_0" style="font-size:small;font-family:monospace;white-space:pre-wrap;width:50em;padding-left:0.5em;padding-right:0.5em;color:rgb(0,0,0);background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">make[3]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar'
llvm[3]: Compiling LoopStrengthReduce.cpp for Release build
LoopStrengthReduce.cpp: In member function ‘llvm::Value* {anonymous}::LSRInstance::Expand(const {anonymous}::LSRFixup&, const {anonymous}::Formula&, llvm::BasicBlock::iterator, llvm::SCEVExpander&, llvm::SmallVectorImpl<llvm::WeakVH>&) const’:
LoopStrengthReduce.cpp:2820:52: error: call of overloaded ‘next(llvm::BasicBlock::iterator)’ is ambiguous
BetterPos = next(BasicBlock::iterator(Inst));
^
LoopStrengthReduce.cpp:2820:52: note: candidates are:
In file included from /home/rtiwari1/llvm_project/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:27:0,
from /home/rtiwari1/llvm_project/llvm/include/llvm/Target/TargetLowering.h:27,
from LoopStrengthReduce.cpp:74:
/home/rtiwari1/llvm_project/llvm/include/llvm/ADT/STLExtras.h:151:13: note: ItTy llvm::next(ItTy) [with ItTy = llvm::ilist_iterator<llvm::Instruction>]
inline ItTy next(ItTy it)
^
In file included from /usr/include/c++/4.8/iterator:62:0,
from /home/rtiwari1/llvm_project/llvm/include/llvm/Use.h:30,
from /home/rtiwari1/llvm_project/llvm/include/llvm/Value.h:18,
from /home/rtiwari1/llvm_project/llvm/include/llvm/User.h:22,
from /home/rtiwari1/llvm_project/llvm/include/llvm/Constant.h:17,
from /home/rtiwari1/llvm_project/llvm/include/llvm/Constants.h:24,
from LoopStrengthReduce.cpp:58:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) [with _ForwardIterator = llvm::ilist_iterator<llvm::Instruction>; typename std::iterator_traits<_Iter>::difference_type = long int]
next(_ForwardIterator __x, typename
^
/bin/rm: cannot remove ‘/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar/Release/LoopStrengthReduce.d.tmp’: No such file or directory
make[3]: *** [/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar/Release/LoopStrengthReduce.o] Error 1
make[3]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar'
make[2]: *** [Scalar/.makeall] Error 2
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/Transforms'
make[1]: *** [Transforms/.makeall] Error 2
make[1]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib'
make: *** [all] Error 1</pre>
Please help me to resolve this error as I am not found this soloution anywhere.</div><div>Thanks & Regards,</div><div>Ratnesh<br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 2, 2018 at 1:52 AM, Ratnesh Tiwari <span dir="ltr"><<a href="mailto:ratneshtr09@gmail.com" target="_blank">ratneshtr09@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="auto">Thanks, I am building then llvm 2.7.</div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 1, 2018, 11:03 PM Chris Bieneman <<a href="mailto:chris.bieneman@me.com" target="_blank">chris.bieneman@me.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">That source file was removed from LLVM in r232397 on March 16, 2015.<div><br></div><div>It looks like lljvm hasn't been updated in a long time. LLVM's C++ APIs are not stable, so there is no expectation that a project built against LLVM's C++ API in 2015 would build or reasonably function against LLVM trunk.</div><div><br></div><div>The project probably works against LLVM 3.6.2 which was (I believe) the last LLVM release to contain that header file.</div><div><br></div><div>-Chris<br><div><div><div><br><blockquote type="cite"><div>On Jul 31, 2018, at 12:05 PM, Ratnesh Tiwari via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="m_-4436348088349933881m_-9116084599222227660Apple-interchange-newline"><div><div dir="ltr">It is similar to the problem asked by
<b style="font-family:"Times New Roman";font-size:inherit">Ammar Naqvi via llvm-dev
<i style="font-weight:400;text-decoration-style:initial;text-decoration-color:initial">Sat Mar 26 23:29:03 PDT 2016</i></b><div><font face="Times New Roman" size="3"><i><br></i></font></div><div><font face="Times New Roman" size="3"><i><a href="http://lists.llvm.org/pipermail/llvm-dev/2016-March/097665.html" rel="noreferrer" target="_blank">http://lists.llvm.org/<wbr>pipermail/llvm-dev/2016-March/<wbr>097665.html</a></i></font></div><div><font face="Times New Roman" size="3"><i><br></i></font></div><div><font face="Times New Roman" size="3">Thank you.<br></font><b style="font-family:"Times New Roman";font-size:inherit">
</b><div><b style="font-family:"Times New Roman";font-size:inherit"><br></b></div><div><b style="font-family:"Times New Roman";font-size:inherit"><br></b></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 1, 2018 at 12:32 AM, Ratnesh Tiwari <span dir="ltr"><<a href="mailto:ratneshtr09@gmail.com" rel="noreferrer" target="_blank">ratneshtr09@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">
<pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif">Hi fellow devs,<span></span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif">I was looking for converting LLVM IR to JavaBytecode by using lljvm project of <a href="https://github.com/davidar/lljvm" style="color:rgb(5,99,193);text-decoration:underline" rel="noreferrer" target="_blank">https://github.com/davidar/<wbr>lljvm</a><span></span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif">They don't seem to compile, once i run <b>make</b> in the root directory it give<span></span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif">me the error :</span><span style="font-size:12pt;font-family:"Times New Roman",serif"><span></span></span></pre><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">cd
include && make all<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">make[1]:
Entering directory `/home/rtiwari1/llvm_new/<wbr>lljvm/include'<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">make[1]:
Nothing to be done for `all'.<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">make[1]:
Leaving directory `/home/rtiwari1/llvm_new/<wbr>lljvm/include'<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">cd
backend && make all<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">make[1]:
Entering directory `/home/rtiwari1/llvm_new/<wbr>lljvm/backend'<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">c++
-I/usr/local/include -fPIC -fvisibility-inlines-hidden -std=c++11 -Wall
-W -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-<wbr>initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized
-Wdelete-non-virtual-dtor -Wno-comment -g -fno-exceptions -fno-rtti
-D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -L/usr/local/lib -lLLVMSelectionDAG -lLLVMCodeGen
-lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils
-lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser
-lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport
-lLLVMDemangle -c main.cpp<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">In
file included from main.cpp:23:0:<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">backend.h:29:44:
fatal error: llvm/Analysis/<wbr>ConstantsScanner.h: No such file or directory<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">#include
<llvm/Analysis/<wbr>ConstantsScanner.h><span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">
^<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">compilation
terminated.<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">make[1]:
*** [main.o] Error 1<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">make[1]:
Leaving directory `/home/rtiwari1/llvm_new/<wbr>lljvm/backend'<span></span></span></div><div style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">make:
*** [all] Error 2<span></span></span></div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif">Any reincarnated version of this or similar or any help to get it running<span></span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif">please?<span></span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif">Greatly appreciated.<span></span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif">Thanks & Regards,<span></span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif">Ratnesh<span></span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></pre><pre style="margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></pre><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<br></div>
</blockquote></div><br></div>
______________________________<wbr>_________________<br>LLVM Developers mailing list<br><a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank">llvm-dev@lists.llvm.org</a><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div>
</div></div></blockquote></div><br></div>