<div dir="ltr">Hello, I'm having issues trying to compile SAFECode 3.2 from SVN. <div>Maybe the problem is related to this thread </div><div><a href="http://lists.cs.uiuc.edu/pipermail/svadev/2012-April/000220.html">http://lists.cs.uiuc.edu/pipermail/svadev/2012-April/000220.html</a><br>
</div><div><br></div><div>My config:</div><div><br></div><div><br></div><div>(Lubuntu 13.04)</div><div><div>Linux 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux</div></div><div>
<br></div><div>gcc version 4.7.3<br></div><div><br></div><div><br></div><div>My Steps:</div><div><br></div><div><div>cd where-you-want-llvm-to-live</div><div>svn co <a href="http://llvm.org/svn/llvm-project/llvm/branches/release_32">http://llvm.org/svn/llvm-project/llvm/branches/release_32</a> llvm</div>
<div>cd llvm/projects</div><div>svn co <a href="http://llvm.org/svn/llvm-project/poolalloc/branches/release_32">http://llvm.org/svn/llvm-project/poolalloc/branches/release_32</a> poolalloc</div><div>svn co <a href="http://llvm.org/svn/llvm-project/safecode/branches/release_32">http://llvm.org/svn/llvm-project/safecode/branches/release_32</a> safecode</div>
</div><div><br></div><div><br></div><div><div>cd LLVM-object-directory</div><div>make tools-only</div><div>cd projects/poolalloc</div><div>make</div><div><br></div><div>(OK till here)</div><div><br></div><div>cd ../safecode</div>
<div>make</div></div><div><br></div><div>The error:</div><div><br></div><div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:301:20: warning: always_inline function might not be inlinable [-Wattributes]</div>
<div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h: In function ‘__softboundcets_copy_metadata’:</div><div>softboundcets.h:443:45: error: inlining failed in call to always_inline ‘__softboundcets_trie_allocate’: function body can be overwritten at link time</div>
<div>softboundcets.h:512:25: error: called from here</div><div>softboundcets.h:443:45: error: inlining failed in call to always_inline ‘__softboundcets_trie_allocate’: function body can be overwritten at link time</div><div>
softboundcets.h:518:23: error: called from here</div><div>softboundcets.h:443:45: error: inlining failed in call to always_inline ‘__softboundcets_trie_allocate’: function body can be overwritten at link time</div><div>softboundcets.h:546:37: error: called from here</div>
<div>softboundcets.h: In function ‘__softboundcets_metadata_store’:</div><div>softboundcets.h:443:45: error: inlining failed in call to always_inline ‘__softboundcets_trie_allocate’: function body can be overwritten at link time</div>
<div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:737:28: error: called from here</div><div>softboundcets.h: In function ‘__softboundcets_memory_allocation’:</div><div>softboundcets.h:999:22: error: inlining failed in call to always_inline ‘__softboundcets_allocate_lock_location’: function body can be overwritten at link time</div>
<div>softboundcets.h:1120:75: error: called from here</div><div>softboundcets.h:1139:20: error: inlining failed in call to always_inline ‘__softboundcets_add_to_free_map’: function body can be overwritten at link time</div>
<div>softboundcets.h:1124:34: error: called from here</div><div>softboundcets.h:1057:1: error: inlining failed in call to always_inline ‘__softboundcets_allocation_secondary_trie_allocate’: function body can be overwritten at link time</div>
<div>softboundcets.h:1126:53: error: called from here</div><div>softboundcets.c: In function ‘__softboundcets_init’:</div><div>softboundcets.h:1029:1: error: inlining failed in call to always_inline ‘__softboundcets_allocation_secondary_trie_allocate_range’: function body can be overwritten at link time</div>
<div>softboundcets.c:249:61: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.c: In function ‘main’:</div><div>softboundcets.h:1029:1: error: inlining failed in call to always_inline ‘__softboundcets_allocation_secondary_trie_allocate_range’: function body can be overwritten at link time</div>
<div>softboundcets.c:316:59: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:1093:1: error: inlining failed in call to always_inline ‘__softboundcets_stack_memory_allocation’: function body can be overwritten at link time</div>
<div>softboundcets.c:318:42: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:1057:1: error: inlining failed in call to always_inline ‘__softboundcets_allocation_secondary_trie_allocate’: function body can be overwritten at link time</div>
<div>softboundcets.c:265:53: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:301:20: error: inlining failed in call to always_inline ‘__softboundcets_allocate_shadow_stack_space’: function body can be overwritten at link time</div>
<div>softboundcets.c:367:46: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:373:20: error: inlining failed in call to always_inline ‘__softboundcets_store_base_shadow_stack’: function body can be overwritten at link time</div>
<div>softboundcets.c:382:42: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:386:20: error: inlining failed in call to always_inline ‘__softboundcets_store_bound_shadow_stack’: function body can be overwritten at link time</div>
<div>softboundcets.c:383:43: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:398:20: error: inlining failed in call to always_inline ‘__softboundcets_store_key_shadow_stack’: function body can be overwritten at link time</div>
<div>softboundcets.c:384:41: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:411:20: error: inlining failed in call to always_inline ‘__softboundcets_store_lock_shadow_stack’: function body can be overwritten at link time</div>
<div>softboundcets.c:385:42: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:422:20: error: inlining failed in call to always_inline ‘__softboundcets_deallocate_shadow_stack_space’: function body can be overwritten at link time</div>
<div>softboundcets.c:398:48: error: called from here</div><div>In file included from softboundcets.c:53:0:</div><div>softboundcets.h:964:20: error: inlining failed in call to always_inline ‘__softboundcets_stack_memory_deallocation’: function body can be overwritten at link time</div>
<div>softboundcets.c:400:44: error: called from here</div><div>/bin/rm: cannot remove ‘/home/bugweek/llvm/projects/safecode/runtime/SoftBoundRuntime/Release+Asserts/softboundcets.d.tmp’: No such file or directory</div><div>
make[2]: *** [/home/bugweek/llvm/projects/safecode/runtime/SoftBoundRuntime/Release+Asserts/softboundcets.o] Error 1</div><div>make[2]: Leaving directory `/home/bugweek/llvm/projects/safecode/runtime/SoftBoundRuntime'</div>
<div>make[1]: *** [SoftBoundRuntime/.makeall] Error 2</div><div>make[1]: Leaving directory `/home/bugweek/llvm/projects/safecode/runtime'</div><div>make: *** [all] Error 1</div></div><div><br></div><div><br></div><div>
<br></div><div>I'm stuck here. I really appreciate any help.</div><div>Thanks in advance.</div><div><br></div><div>-Fernando</div><div><br></div><div><br></div></div>