<div dir="ltr"><div><div>Hi John,<br></div>That worked for me. I am using llvm 3.2 only and following <a href="http://safecode.cs.illinois.edu/docs/Install.html">http://safecode.cs.illinois.edu/docs/Install.html</a><br><br></div><div>So for I am able to make inside llvm/projects/poolalloc by doing such cosmetic changes.<br></div><div>Now, when I tried to make inside llvm/projects/safecode, I see another error.<br></div><div><br>kpawar@KPAWAR-LT ~/SAFECode/LLVM_SRC/llvm/projects/safecode<br>$ /usr/bin/clang -cc1 -triple i386-pc-windows-cygnus -emit-obj -disable-free -disable-llvm-verifier -main-file-name Parser.cpp -mrelocation-model static -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.25 -dwarf-column-info -coverage-file /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.o -resource-dir /usr/bin/../lib/clang/i686-pc-cygwin/3.5.2 -dependency-file /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.d.tmp -MP -MT /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.o -MT /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.d -D _DEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D SAFECODE -D SAFECODE -I /home/kpawar/SAFECode/LLVM_SRC/llvm/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/../../include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/../../include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/poolalloc/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/poolalloc/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/poolalloc/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/poolalloc/include -O3 -Woverloaded-virtual -Wcast-qual -Wall -Wno-deprecated -Wall -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -pedantic -fdebug-compilation-dir /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse -ferror-limit 19 -fmessage-length 271 -fvisibility-inlines-hidden -mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.o -x c++ tools/clang/lib/Parse/Parser.cpp<br><b>Stack dump:</b><br>0. Program arguments: /usr/bin/clang -cc1 -triple i386-pc-windows-cygnus -emit-obj -disable-free -disable-llvm-verifier -main-file-name Parser.cpp -mrelocation-model static -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.25 -dwarf-column-info -coverage-file /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.o -resource-dir /usr/bin/../lib/clang/i686-pc-cygwin/3.5.2 -dependency-file /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.d.tmp -MP -MT /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.o -MT /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.d -D _DEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D SAFECODE -D SAFECODE -I /home/kpawar/SAFECode/LLVM_SRC/llvm/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/../../include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/../../include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/poolalloc/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/poolalloc/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/poolalloc/include -I /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/poolalloc/include -O3 -Woverloaded-virtual -Wcast-qual -Wall -Wno-deprecated -Wall -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -pedantic -fdebug-compilation-dir /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse -ferror-limit 19 -fmessage-length 271 -fvisibility-inlines-hidden -mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.o -x c++ tools/clang/lib/Parse/Parser.cpp<br>1. /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/../../include/clang/Sema/DeclSpec.h:855:3: current parser token 'SourceLocation'<br>2. /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/../../include/clang/Sema/DeclSpec.h:38:1: parsing namespace 'clang'<br>3. /home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/../../include/clang/Sema/DeclSpec.h:783:1: parsing struct/union/class body 'UnqualifiedId'<br><br><br><br></div>~ Kiran<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 13, 2015 at 11:16 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 bgcolor="#FFFFFF" text="#000000">
<div>Dear Kiran,<br>
<br>
Which version of LLVM/SAFECode are you using? Is it LLVM 3.2?<br>
<br>
I'm guessing that you're using LLVM 3.2 and trying to compile
safecode/tools/LTO (that's the only component that links in
AssistDS.a). You could try changing the following line:<br>
<br>
$(PROJ_OBJ_ROOT)/$(BuildMode)/lib/libAssistDS.a:
$(POOLALLOC_OBJDIR)/$(BuildMode)/lib/AssistDS.a<br>
<br>
... to:<br>
<br>
$(PROJ_OBJ_ROOT)/$(BuildMode)/lib/libAssistDS.a:
$(POOLALLOC_OBJDIR)/$(BuildMode)/lib/libAssistDS.a<br>
<br>
You'll need to fix the problem for other libraries for which
SAFECode creates links in its own object tree (such as
libpoolalloc.a).<br>
<br>
That might fix the problem on Cygwin.<br>
<br>
Regards,<br>
<br>
John Criswell<div><div class="h5"><br>
<br>
On 10/13/15 2:36 AM, kiran pawar via llvm-dev wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi,<br>
</div>
On Linux I observed<br>
<br>
[root@localhost poolalloc]# find . -name *.a<br>
./Release+Asserts/lib/LLVMDataStructure.a<br>
./Release+Asserts/lib/poolalloc.a<br>
./Release+Asserts/lib/AssistDS.a<br>
./Release+Asserts/lib/libpoolalloc_fl_rt.a<br>
./Release+Asserts/lib/libpoolalloc_rt.a<br>
./Release+Asserts/lib/libpa_pre_rt.a<br>
./Release+Asserts/lib/libcount.a<br>
<br>
<br>
</div>
On cygwin I observed <br>
<br>
kpawar@KPAWAR-LT ~/SAFECode/LLVM_SRC/llvm/projects/poolalloc<br>
$ find . -name *.a<br>
./Release+Asserts/lib/libAssistDS.a<br>
./Release+Asserts/lib/libcount.a<br>
./Release+Asserts/lib/libLLVMDataStructure.a<br>
./Release+Asserts/lib/libpa_pre_rt.a<br>
./Release+Asserts/lib/libpoolalloc.a<br>
./Release+Asserts/lib/libpoolalloc_fl_rt.a<br>
./Release+Asserts/lib/libpoolalloc_rt.a<br>
./Release+Asserts/lib/libtypechecks_rt.a<br>
<br>
<br>
</div>
This creates issue to llvm/safecode since it tries to search
libraries named as poolalloc.a, AssistDS.a etc. Any solution
for this ?<br>
<br>
</div>
~ Kiran<br>
<div>
<div><br>
<br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
LLVM Developers mailing list
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><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>