Cannot compile decaf1.9 onUbuntu14.04 i386

80 views
Skip to first unread message

杜震

unread,
Jun 22, 2017, 4:01:07 AM6/22/17
to decaf-platform-discuss
Machine configuration: Ubuntu 14.04 i386 gcc 4.8.4
I got decaf1.9 from http://sycurelab.ecs.syr.edu/image/decaf1.9.tar.gz,then decompressed it.
entered cmd ./configure --enable-vmi --enable-tcg-taint --enable-tcg-ir-log
done
entered cmd make received error below:

...                              ^
/home/allan/decaf1.9/target-i386/op_helper.c: In function ‘helper_flds_FT0’:
/home/allan/decaf1.9/target-i386/op_helper.c:3648:6: error: frame pointer required, but reserved
 void helper_flds_FT0(uint32_t val)
      ^
In file included from /home/allan/decaf1.9/target-i386/op_helper.c:22:0:
/home/allan/decaf1.9/dyngen-exec.h:64:20: note: for ‘env’
 register CPUState *env asm(AREG0);
                    ^
In file included from /home/allan/decaf1.9/target-i386/op_helper.c:31:0:
/home/allan/decaf1.9/target-i386/op_helper.c: In function ‘helper_DECAF_taint_patch’:
/home/allan/decaf1.9/target-i386/../shared/tainting/taintcheck_opt.h:71:56: warning: ‘taint_check’ may be used uninitialized in this function [-Wmaybe-uninitialized]
           leaf_node->bitmap[(addr+i)&LEAF_ADDRESS_MASK]=taint[i];
                                                        ^
/home/allan/decaf1.9/target-i386/op_helper.c:5961:11: note: ‘taint_check’ was declared here
  uint8_t  taint_check;
           ^
make[1]: *** [op_helper.o] Error 1
make: *** [subdir-i386-softmmu] Error 2

compile crashed!
Could you please give me some advice to solve this problem?
Thanks

Xunchao Hu

unread,
Jun 22, 2017, 8:09:34 AM6/22/17
to decaf-platf...@googlegroups.com
 try this config,
./configure --enable-vmi --enable-tcg-taint --enable-tcg-ir-log --target-list=i386

--
You received this message because you are subscribed to the Google Groups "decaf-platform-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to decaf-platform-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

杜震

unread,
Jun 22, 2017, 10:33:53 PM6/22/17
to decaf-platform-discuss
Thanks Xunchao Hu,
I tried ./configure --enable-vmi --enable-tcg-taint --enable-tcg-ir-log --target-list=i386
however, it still didn't work.
But I tried ./configure --enable-vmi --enable-tcg-taint --enable-tcg-ir-log --target-list=arm-softmmu
compile succeed,and there were no output errors. 
 
在 2017年6月22日星期四 UTC+8下午8:09:34,Xunchao Hu写道:

杜震

unread,
Jun 23, 2017, 9:03:19 AM6/23/17
to decaf-platform-discuss
But I am confused with the option "target-list,' it  specifies the host or guest?
For example,my machine is configuration is : x86,Ubuntu 14,i386,and qemu emulates an ARM environment.Which option(i386 or arm) should I specify?


在 2017年6月22日星期四 UTC+8下午8:09:34,Xunchao Hu写道:
 try this config,

Xunchao Hu

unread,
Jun 23, 2017, 9:21:22 AM6/23/17
to decaf-platf...@googlegroups.com
target-list specifies the guest arch you expect to emulate. 


To unsubscribe from this group and stop receiving emails from it, send an email to decaf-platform-discuss+unsubscri...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

杜震

unread,
Jun 23, 2017, 9:57:18 AM6/23/17
to decaf-platform-discuss
Thank you so much

在 2017年6月23日星期五 UTC+8下午9:21:22,Xunchao Hu写道:
To unsubscribe from this group and stop receiving emails from it, send an email to decaf-platform-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages