[llvm-dev] compile safecode runs a error

张伟 via llvm-dev llvm-dev at lists.llvm.org
Mon Aug 29 07:57:31 PDT 2016


Hi all, 


I am trying to compile safecode. But I met the compiling error. The following is the machine setup and my operations:

wei at fastpaas:~/ATT/safecode/llvm$ uname -a

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

wei at fastpaas:~/ATT/safecode/llvm$ cat /etc/issue

Ubuntu 16.04 LTS \n \l

I am downing release_32 version. I follow the instruction in there. http://safecode.cs.illinois.edu/docs/Install.html just add ENABLE_OPTIMIZED=1 ,

When I run this command inside the project/safecode, 

make ENABLE_OPTIMIZED=1 

I met errors. Someone also met the problem. 

http://lists.llvm.org/pipermail/cfe-dev/2013-September/032106.html

http://marc.info/?l=cfe-dev&m=137971054530589&w=2

In file included from softboundcets.c:53:0:

softboundcets.h:301:20:warning: always_inline function might not be inlinable [-Wattributes]

 __WEAK_INLINE void __softboundcets_allocate_shadow_stack_space(int num_pointer_args){

                    ^

In file included from softboundcets.c:53:0:

softboundcets.h: In function ‘__softboundcets_copy_metadata’:

softboundcets.h:443:45:error: inlining failed in call to always_inline ‘__softboundcets_trie_allocate’: function body can be overwritten at link time

 __WEAK_INLINE __softboundcets_trie_entry_t* __softboundcets_trie_allocate(){

                                             ^

softboundcets.h:512:25:error: called from here

         temp_from_strie = __softboundcets_trie_allocate();

                         ^

softboundcets.h:443:45:error: inlining failed in call to always_inline ‘__softboundcets_trie_allocate’: function body can be overwritten at link time

 __WEAK_INLINE __softboundcets_trie_entry_t* __softboundcets_trie_allocate(){

                                             ^

softboundcets.h:518:23:error: called from here

         temp_to_strie = __softboundcets_trie_allocate();

                       ^

softboundcets.h:443:45:error: inlining failed in call to always_inline ‘__softboundcets_trie_allocate’: function body can be overwritten at link time

 __WEAK_INLINE __softboundcets_trie_entry_t* __softboundcets_trie_allocate(){

                                             ^

softboundcets.h:546:37:error: called from here

     trie_secondary_table_dest_begin = __softboundcets_trie_allocate();

                                     ^

/bin/rm: cannot remove '/home/wei/ATT/safecode/llvm/projects/safecode/runtime/SoftBoundRuntime/Release+Asserts/softboundcets.d.tmp': No such file or directory

/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

make[2]: *** [/home/wei/ATT/safecode/llvm/projects/safecode/runtime/SoftBoundRuntime/Release+Asserts/softboundcets.o] Error 1

make[2]: Leaving directory '/home/wei/ATT/safecode/llvm/projects/safecode/runtime/SoftBoundRuntime'

/home/wei/ATT/safecode/llvm/Makefile.rules:921: recipe for target 'SoftBoundRuntime/.makeall' failed

make[1]: *** [SoftBoundRuntime/.makeall] Error 2

make[1]: Leaving directory '/home/wei/ATT/safecode/llvm/projects/safecode/runtime'

/home/wei/ATT/safecode/llvm/Makefile.rules:872: recipe for target 'all' failed

make: *** [all] Error 1

Can anyone help to guide how to solve the problem? 

Thanks, 

wei








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160829/f82770c4/attachment-0001.html>


More information about the llvm-dev mailing list