<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi all, </div><div><br></div><div>I am trying to compile safecode. But I met the compiling error. The following is the machine setup and my operations:</div><div>
<p class="p1"><span class="s1"><b>wei@fastpaas</b></span><span class="s2">:</span><span class="s3"><b>~/ATT/safecode/llvm</b></span><span class="s2">$ uname -a</span></p>
<p class="p2"><span class="s3">Linux fastpaas 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</span></p>
<p class="p1"><span class="s1"><b>wei@fastpaas</b></span><span class="s2">:</span><span class="s3"><b>~/ATT/safecode/llvm</b></span><span class="s2">$ cat /etc/issue</span></p>
<p class="p2"><span class="s3">Ubuntu 16.04 LTS \n \l</span></p><p class="p2"><span class="s3">I am downing </span><span style="font-family: monospace; font-size: medium; line-height: normal;">release_32 version. I follow the instruction in there. </span><font face="monospace" size="3"><span style="line-height: normal;"><a href="http://safecode.cs.illinois.edu/docs/Install.html" _src="http://safecode.cs.illinois.edu/docs/Install.html">http://safecode.cs.illinois.edu/docs/Install.html</a> just add </span></font><span style="line-height: 1.7; font-family: gotham, helvetica, arial, sans-serif;">ENABLE_OPTIMIZED=1</span><span style="line-height: 1.7; font-family: gotham, helvetica, arial, sans-serif;"> ,</span></p><p class="p2"><font face="gotham, helvetica, arial, sans-serif">When I run this command inside the project/safecode, </font></p><p class="p2"><span style="font-family: gotham, helvetica, arial, sans-serif;">make ENABLE_OPTIMIZED=1</span><span style="font-family: gotham, helvetica, arial, sans-serif;"> </span></p><p class="p2"><span style="font-family: gotham, helvetica, arial, sans-serif;">I met errors. Someone also met the problem. </span></p><p class="p2"><font face="gotham, helvetica, arial, sans-serif"><a href="http://lists.llvm.org/pipermail/cfe-dev/2013-September/032106.html" _src="http://lists.llvm.org/pipermail/cfe-dev/2013-September/032106.html">http://lists.llvm.org/pipermail/cfe-dev/2013-September/032106.html</a> </font></p><p class="p2"><a href="http://marc.info/?l=cfe-dev&m=137971054530589&w=2" _src="http://marc.info/?l=cfe-dev&m=137971054530589&w=2">http://marc.info/?l=cfe-dev&m=137971054530589&w=2</a> </p><p class="p1"><span class="s1">In file included from <b>softboundcets.c:53:0</b>:</span></p><p class="p1"><span class="s1"><b>softboundcets.h:301:20:</b> </span><span class="s2"><b>warning: </b></span><span class="s1">always_inline function might not be inlinable [-Wattributes]</span></p><p class="p1"><span class="s1"> __WEAK_INLINE void __softboundcets_allocate_shadow_stack_space(int num_pointer_args){</span></p><p class="p2"><span class="s1"><b> ^</b></span></p><p class="p1"><span class="s1">In file included from <b>softboundcets.c:53:0</b>:</span></p><p class="p1"><span class="s1"><b>softboundcets.h:</b> In function ¡®<b>__softboundcets_copy_metadata</b>¡¯:</span></p><p class="p1"><span class="s1"><b>softboundcets.h:443:45:</b> </span><span class="s3"><b>error: </b></span><span class="s1">inlining failed in call to always_inline ¡®<b>__softboundcets_trie_allocate</b>¡¯: function body can be overwritten at link time</span></p><p class="p1"><span class="s1"> __WEAK_INLINE __softboundcets_trie_entry_t* __softboundcets_trie_allocate(){</span></p><p class="p2"><span class="s1"><b> ^</b></span></p><p class="p1"><span class="s1"><b>softboundcets.h:512:25:</b> </span><span class="s3"><b>error: </b></span><span class="s1">called from here</span></p><p class="p1"><span class="s1"> temp_from_strie = __softboundcets_trie_allocate();</span></p><p class="p2"><span class="s1"><b> ^</b></span></p><p class="p1"><span class="s1"><b>softboundcets.h:443:45:</b> </span><span class="s3"><b>error: </b></span><span class="s1">inlining failed in call to always_inline ¡®<b>__softboundcets_trie_allocate</b>¡¯: function body can be overwritten at link time</span></p><p class="p1"><span class="s1"> __WEAK_INLINE __softboundcets_trie_entry_t* __softboundcets_trie_allocate(){</span></p><p class="p2"><span class="s1"><b> ^</b></span></p><p class="p1"><span class="s1"><b>softboundcets.h:518:23:</b> </span><span class="s3"><b>error: </b></span><span class="s1">called from here</span></p><p class="p1"><span class="s1"> temp_to_strie = __softboundcets_trie_allocate();</span></p><p class="p2"><span class="s1"><b> ^</b></span></p><p class="p1"><span class="s1"><b>softboundcets.h:443:45:</b> </span><span class="s3"><b>error: </b></span><span class="s1">inlining failed in call to always_inline ¡®<b>__softboundcets_trie_allocate</b>¡¯: function body can be overwritten at link time</span></p><p class="p1"><span class="s1"> __WEAK_INLINE __softboundcets_trie_entry_t* __softboundcets_trie_allocate(){</span></p><p class="p2"><span class="s1"><b> ^</b></span></p><p class="p1"><span class="s1"><b>softboundcets.h:546:37:</b> </span><span class="s3"><b>error: </b></span><span class="s1">called from here</span></p><p class="p1"><span class="s1"> trie_secondary_table_dest_begin = __softboundcets_trie_allocate();</span></p><p class="p2"><span class="s1"><b> ^</b></span></p><p class="p1"><span class="s1">/bin/rm: cannot remove '/home/wei/ATT/safecode/llvm/projects/safecode/runtime/SoftBoundRuntime/Release+Asserts/softboundcets.d.tmp': No such file or directory</span></p><p class="p1"><span class="s1">/home/wei/ATT/safecode/llvm/Makefile.rules:1624: recipe for target '/home/wei/ATT/safecode/llvm/projects/safecode/runtime/SoftBoundRuntime/Release+Asserts/softboundcets.o' failed</span></p><p class="p1"><span class="s1">make[2]: *** [/home/wei/ATT/safecode/llvm/projects/safecode/runtime/SoftBoundRuntime/Release+Asserts/softboundcets.o] Error 1</span></p><p class="p1"><span class="s1">make[2]: Leaving directory '/home/wei/ATT/safecode/llvm/projects/safecode/runtime/SoftBoundRuntime'</span></p><p class="p1"><span class="s1">/home/wei/ATT/safecode/llvm/Makefile.rules:921: recipe for target 'SoftBoundRuntime/.makeall' failed</span></p><p class="p1"><span class="s1">make[1]: *** [SoftBoundRuntime/.makeall] Error 2</span></p><p class="p1"><span class="s1">make[1]: Leaving directory '/home/wei/ATT/safecode/llvm/projects/safecode/runtime'</span></p><p class="p1"><span class="s1">/home/wei/ATT/safecode/llvm/Makefile.rules:872: recipe for target 'all' failed</span></p><p class="p2">
</p><p class="p1"><span class="s1">make: *** [all] Error 1</span></p><p class="p1">Can anyone help to guide how to solve the problem? </p><p class="p1">Thanks, </p><p class="p1">wei</p><p class="p1"><br></p><p class="p2"><span style="font-family: gotham, helvetica, arial, sans-serif;"><br></span></p><p class="p2"><font face="gotham, helvetica, arial, sans-serif"><br></font></p></div></div><br><br><span title="neteasefooter"><p> </p></span>