<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 7/22/15 10:33 AM, Kenneth Adam
Miller wrote:<br>
</div>
<blockquote
cite="mid:CAK7rcp_q5WvCuzhK-g0ve5_15J7XFC5YUK1a6bDaNZHeBrULRQ@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">I'm pretty sure that the output tells you that
there's no makefile to execute such commands. If you didn't know
it, LLVM makes use of cmake, so you make have to generate your
makefile with "cmake ." (or at least that's the way I remembered
it). Then type make.</div>
</blockquote>
<br>
That's probably not the problem. SAFECode does not use cmake at
present.<br>
<br>
First, Nikhail, were you able to compile the other components of
SAFECode on Windows (namely, safecode/lib and safecode/runtime)?
Also, were you able to compile unmodified clang and use it on
Windows? You need to verify that these things work. If regular
Clang doesn't work on Windows, SAFECode Clang won't work, either.<br>
<br>
Second, to answer your specific question, you are probably seeing
this problem because SAFECode needs to be reintegrated into Clang.
The way we do that is to:<br>
<br>
1) Remove the old safecode/tools/clang directory.<br>
2) Use svn copy to copy clang into safecode/tools/clang<br>
3) Modify the Makefiles in safecode/tools/clang so that clang can
compile from within the SAFECode source tree.<br>
4) Modify safecode/tools/clang so that it runs the SAFECode passes
when the -fmemsafety option is used.<br>
<br>
I have done steps 1 and 2. Peter is currently working on step 3. I
recommend you help him on Step 3. Step 3 requires understanding
LLVM Makefiles (<a class="moz-txt-link-freetext" href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_MakefileGuide.html&d=AwMD-g&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=h6NQLS3J9n9bP5k73GNUVHzPqBrEV2m5ttfr7WWMIL8&s=9-xT2EY0IItm2A5L_PSwtxK1KPBTEBEYOmY0QSyxJnM&e=">http://llvm.org/docs/MakefileGuide.html</a>). I sent a
patch to you and Peter showing how I integrated SAFECode into Clang
for LLVM 3.2. You can use that as a guide to integrating SAFECode
into LLVM 3.7. I have attached it here for reference.<br>
<br>
So, to recap:<br>
<br>
1) Let me know if regular Clang works on Windows.<br>
<br>
2) If regular Clang works, try to help Peter with Step 3.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
<blockquote
cite="mid:CAK7rcp_q5WvCuzhK-g0ve5_15J7XFC5YUK1a6bDaNZHeBrULRQ@mail.gmail.com"
type="cite">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jul 22, 2015 at 7:10 AM, Nikhil
Reddy Kothapally <span dir="ltr"><<a moz-do-not-send="true" href="mailto:nikhilreddykotha@gmail.com" target="_blank">nikhilreddykotha@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote">
<div dir="ltr">
<div>Hello,</div>
<div> I have tried a lot fix this error but am not
able to can you please find me a solution am trying to
compile the SAFECode in Cygwin Environment to work for
windows.</div>
<div><br>
</div>
<div>used make -j4 command to make the files in cygwin i
have got this error</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>make[5]: Leaving directory
'/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/clang/include'
/usr/bin/cp: cannot stat
'/home/uidr7475/Work/LLVM_SRC/projects/safecode/tools/clang/lib/Makefile':
No such file or directory</div>
<div>make[5]: Entering directory
'/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/clang/lib'</div>
<div>make[5]: *** No rule to make target 'all'. Stop.</div>
<div>make[5]: Leaving directory
'/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/clang/lib'
/home/uidr7475/Work/LLVM_SRC/Makefile.rules:862:
recipe for target 'all' failed</div>
<div>make[4]: *** [all] Error 1</div>
<div>make[4]: Leaving directory
'/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/clang'
/home/uidr7475/Work/LLVM_SRC/Makefile.rules:921:
recipe for target 'clang/.makeall' failed</div>
<div>make[3]: *** [clang/.makeall] Error 2</div>
<div>make[3]: *** Waiting for unfinished jobs....</div>
<div>llvm[4]: Linking Release+Asserts Shared Library
cygLTO.dll</div>
<div>llvm[4]: Building Release+Asserts Archive Library
libLTO.a</div>
<div>make[4]: Leaving directory
'/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/LTO'</div>
<div>make[3]: Leaving directory
'/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools'
/home/uidr7475/Work/LLVM_SRC/Makefile.rules:862:
recipe for target 'all' failed</div>
<div>make[2]: *** [all] Error 1</div>
<div>make[2]: Leaving directory
'/home/uidr7475/Work/LLVM_OBJ/projects/safecode'
/home/uidr7475/Work/LLVM_SRC/Makefile.rules:862:
recipe for target 'all' failed</div>
<div>make[1]: *** [all] Error 1</div>
<div>make[1]: Leaving directory
'/home/uidr7475/Work/LLVM_OBJ/projects'
/home/uidr7475/Work/LLVM_SRC/Makefile.rules:947:
recipe for target 'all' failed</div>
<div>make: *** [all] Error 1</div>
</div>
<div><br>
</div>
<div> </div>
<div>
<div>
<div dir="ltr">
<div>Thank You,</div>
<div><br>
</div>
<div>Kind Regards,</div>
<div><br>
</div>
<div>Nikhil Reddy Kothapally </div>
<div><br>
</div>
<div>Master Student </div>
<div><br>
</div>
<div>Technische Universität Chemnitz,(Germany)</div>
<div><br>
</div>
<div>Automotive Software Engineering.</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>
<a moz-do-not-send="true" href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a moz-do-not-send="true" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a class="moz-txt-link-freetext" href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cs.rochester.edu_u_criswell&d=AwMD-g&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=h6NQLS3J9n9bP5k73GNUVHzPqBrEV2m5ttfr7WWMIL8&s=sk9chsQA9mLYdl9cnpzFWbeYigEtB9pvoWN-fbBN2lQ&e=">http://www.cs.rochester.edu/u/criswell</a></pre>
</body>
</html>