bitsecurerlab / SpecTaint

2 stars 0 forks source link

Can you somehow explain how to configure/build SpecTaint? #1

Open ucchiee opened 2 years ago

ucchiee commented 2 years ago

I tried to configure/build SpecTaint (after some preparations in the DECAF wiki):

./configure --enable-force-execution --enable-tcg-taint
make

But the build process failed:

/usr/bin/ld: ../libhw64/9pfs/virtio-9p.o: in function `stat_to_v9stat':
/home/ucchiee/Code/repos/SpecTaint/decaf/hw/9pfs/virtio-9p.c:1037: undefined reference to `minor'
/usr/bin/ld: /home/ucchiee/Code/repos/SpecTaint/decaf/hw/9pfs/virtio-9p.c:1037: undefined reference to `major'
/usr/bin/ld: ../libhw64/9pfs/virtio-9p.o: in function `v9fs_create':
/home/ucchiee/Code/repos/SpecTaint/decaf/hw/9pfs/virtio-9p.c:2221: undefined reference to `makedev'
/usr/bin/ld: ../libhw64/9pfs/virtio-9p.o: in function `v9fs_mknod':
/home/ucchiee/Code/repos/SpecTaint/decaf/hw/9pfs/virtio-9p.c:2852: undefined reference to `makedev'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:436: qemu-system-i386] Error 1
make: *** [Makefile:100: subdir-i386-softmmu] Error 2

Can you somehow explain how to configure/build SpecTaint (and hopefully how to reproduce the result of benchmark...)??

ucchiee commented 2 years ago

I inserted one line of code below to SpecTaint/decaf/hw/9pfs/virtio-9p.c(ref: link):

#include <sys/sysmacros.h>

And then configure/build like this:

./configure --enable-force-execution --enable-tcg-taint --target-list=i386-softmmu
make

Now it seems that the build is done correctly.