zyw-200 / FirmAFL

FIRM-AFL is the first high-throughput greybox fuzzer for IoT firmware.
GNU General Public License v3.0
438 stars 91 forks source link

error: 'struct CPUARMState' has no member named 'active_tc' #4

Open cx1417 opened 5 years ago

cx1417 commented 5 years ago

你好,我在编译arm架构时出现了报错,以下是我的编译结果。看报错信息,应该是源码的问题,我在cpu.h中找到了对CPUARMState的定义,但是没找到成员active_tc。不知道您当时是否遇到了这个问题,不知道您是怎么解决的。我使用的Ubuntu的版本是:Ubuntu 16.04.1 LTS

~/tools/fuzz/FirmAFL-master/user_mode$ ./configure --target-list=arm-linux-user
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
library directory /usr/local/lib
module directory  /usr/local/lib/qemu
libexec directory /usr/local/libexec
include directory /usr/local/include
config directory  /usr/local/etc
local state directory   /usr/local/var
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /home/hmsec/tools/fuzz/FirmAFL-master/user_mode
C compiler        cc
Host C compiler   cc
C++ compiler      c++
Objective-C compiler cc
ARFLAGS           rv
CFLAGS            -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g 
QEMU_CFLAGS       -I/usr/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv  -Wendif-labels -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong  -I/usr/include/libpng12
LDFLAGS           -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g 
make              make
install           install
python            python -B
smbd              /usr/sbin/smbd
module support    no
host CPU          x86_64
host big endian   no
target list       arm-linux-user
gprof enabled     no
sparse enabled    no
strip binaries    yes
profiler          no
static build      no
pixman            system
SDL support       yes (1.2.15)
GTK support       no 
GTK GL support    no
VTE support       no 
TLS priority      NORMAL
GNUTLS support    no
GNUTLS rnd        no
libgcrypt         no
libgcrypt kdf     no
nettle            no 
nettle kdf        no
libtasn1          no
curses support    no
virgl support     no
curl support      no
mingw32 support   no
Audio drivers     oss
Block whitelist (rw) 
Block whitelist (ro) 
VirtFS support    
VNC support       yes
VNC SASL support  no
VNC JPEG support  yes
VNC PNG support   yes
xen support       no
brlapi support    no
bluez  support    no
Documentation     no
PIE               yes
vde support       no
netmap support    no
Linux AIO support no
ATTR/XATTR support yes
Install blobs     yes
KVM support       yes
HAX support       no
TCG support       yes
TCG debug enabled no
TCG interpreter   no
RDMA support      no
fdt support       yes
preadv support    yes
fdatasync         yes
madvise           yes
posix_madvise     yes
libcap-ng support no
vhost-net support yes
vhost-scsi support yes
vhost-vsock support yes
vhost-user support yes
Trace backends    log
spice support     no 
rbd support       no
xfsctl support    no
smartcard support no
libusb            no
usb net redir     no
OpenGL support    no
OpenGL dmabufs    no
libiscsi support  no
libnfs support    no
build guest agent yes
QGA VSS support   no
QGA w32 disk info no
QGA MSI support   no
seccomp support   no
coroutine backend ucontext
coroutine pool    yes
debug stack usage no
crypto afalg      no
GlusterFS support no
gcov              gcov
gcov enabled      no
TPM support       yes
libssh2 support   no
TPM passthrough   yes
QOM debugging     yes
Live block migration yes
lzo support       yes
snappy support    no
bzip2 support     no
NUMA host support no
tcmalloc support  no
jemalloc support  no
avx2 optimization yes
replication support yes
VxHS block device no

~/tools/fuzz/FirmAFL-master/user_mode$ make
  GEN     arm-linux-user/config-devices.mak.tmp
  GEN     arm-linux-user/config-devices.mak
  GEN     config-all-devices.mak
  GEN     config-host.h
     DEP tests/dumptrees.c
     DEP tests/trees.S
     DEP tests/testutils.c
     DEP tests/value-labels.c
     DEP tests/asm_tree_dump.c
     DEP tests/truncated_property.c
     DEP tests/check_path.c
     DEP tests/overlay_bad_fixup.c
     DEP tests/overlay.c
     DEP tests/subnode_iterate.c
     DEP tests/property_iterate.c
     DEP tests/integer-expressions.c
     DEP tests/utilfdt_test.c
     DEP tests/path_offset_aliases.c
     DEP tests/add_subnode_with_nops.c
     DEP tests/dtbs_equal_unordered.c
     DEP tests/dtb_reverse.c
     DEP tests/dtbs_equal_ordered.c
     DEP tests/extra-terminating-null.c
     DEP tests/incbin.c
     DEP tests/boot-cpuid.c
     DEP tests/phandle_format.c
     DEP tests/path-references.c
     DEP tests/references.c
     DEP tests/string_escapes.c
     DEP tests/propname_escapes.c
     DEP tests/appendprop2.c
     DEP tests/appendprop1.c
     DEP tests/del_node.c
     DEP tests/del_property.c
     DEP tests/setprop.c
     DEP tests/set_name.c
     DEP tests/rw_tree1.c
     DEP tests/open_pack.c
     DEP tests/nopulate.c
     DEP tests/mangle-layout.c
     DEP tests/move_and_save.c
     DEP tests/sw_tree1.c
     DEP tests/nop_node.c
     DEP tests/nop_property.c
     DEP tests/setprop_inplace.c
     DEP tests/stringlist.c
     DEP tests/addr_size_cells.c
     DEP tests/notfound.c
     DEP tests/sized_cells.c
     DEP tests/char_literal.c
     DEP tests/get_alias.c
     DEP tests/node_offset_by_compatible.c
     DEP tests/node_check_compatible.c
     DEP tests/node_offset_by_phandle.c
     DEP tests/node_offset_by_prop_value.c
     DEP tests/parent_offset.c
     DEP tests/supernode_atdepth_offset.c
     DEP tests/get_path.c
     DEP tests/get_phandle.c
     DEP tests/getprop.c
     DEP tests/get_name.c
     DEP tests/path_offset.c
     DEP tests/subnode_offset.c
     DEP tests/find_property.c
     DEP tests/root_node.c
     DEP tests/get_mem_rsv.c
     DEP libfdt/fdt_overlay.c
     DEP libfdt/fdt_addresses.c
     DEP libfdt/fdt_empty_tree.c
     DEP libfdt/fdt_strerror.c
     DEP libfdt/fdt_rw.c
     DEP libfdt/fdt_sw.c
     DEP libfdt/fdt_wip.c
     DEP libfdt/fdt_ro.c
     DEP libfdt/fdt.c
     DEP util.c
     DEP fdtput.c
     DEP fdtget.c
     DEP fdtdump.c
     LEX convert-dtsv0-lexer.lex.c
make[1]: flex:命令未找到
     DEP srcpos.c
     BISON dtc-parser.tab.c
make[1]: bison:命令未找到
     LEX dtc-lexer.lex.c
make[1]: flex:命令未找到
     DEP treesource.c
     DEP livetree.c
     DEP fstree.c
     DEP flattree.c
     DEP dtc.c
     DEP data.c
     DEP checks.c
    CHK version_gen.h
    UPD version_gen.h
     DEP util.c
     LEX convert-dtsv0-lexer.lex.c
make[1]: flex:命令未找到
     BISON dtc-parser.tab.c
make[1]: bison:命令未找到
     LEX dtc-lexer.lex.c
make[1]: flex:命令未找到
    CHK version_gen.h
     LEX convert-dtsv0-lexer.lex.c
make[1]: flex:命令未找到
     BISON dtc-parser.tab.c
make[1]: bison:命令未找到
     LEX dtc-lexer.lex.c
make[1]: flex:命令未找到
     CC libfdt/fdt.o
     CC libfdt/fdt_ro.o
     CC libfdt/fdt_wip.o
     CC libfdt/fdt_sw.o
     CC libfdt/fdt_rw.o
     CC libfdt/fdt_strerror.o
     CC libfdt/fdt_empty_tree.o
     CC libfdt/fdt_addresses.o
     CC libfdt/fdt_overlay.o
     AR libfdt/libfdt.a
ar: 正在创建 libfdt/libfdt.a
a - libfdt/fdt.o
a - libfdt/fdt_ro.o
a - libfdt/fdt_wip.o
a - libfdt/fdt_sw.o
a - libfdt/fdt_rw.o
a - libfdt/fdt_strerror.o
a - libfdt/fdt_empty_tree.o
a - libfdt/fdt_addresses.o
a - libfdt/fdt_overlay.o
  GEN     qemu-options.def
  GEN     qmp-commands.h
  GEN     qapi-types.h
  GEN     qapi-visit.h
  GEN     qapi-event.h
  GEN     qmp-marshal.c
  GEN     qapi-types.c
  GEN     qapi-visit.c
  GEN     qapi-event.c
  GEN     qmp-introspect.h
  GEN     qmp-introspect.c
  GEN     trace/generated-tcg-tracers.h
  GEN     trace/generated-helpers-wrappers.h
  GEN     trace/generated-helpers.h
  GEN     trace/generated-helpers.c
  GEN     module_block.h
  GEN     tests/test-qapi-types.h
  GEN     tests/test-qapi-visit.h
  GEN     tests/test-qmp-commands.h
  GEN     tests/test-qapi-event.h
  GEN     tests/test-qmp-introspect.h
  GEN     trace-root.h
  GEN     util/trace.h
  GEN     crypto/trace.h
  GEN     io/trace.h
  GEN     migration/trace.h
  GEN     block/trace.h
  GEN     chardev/trace.h
  GEN     hw/block/trace.h
  GEN     hw/block/dataplane/trace.h
  GEN     hw/char/trace.h
  GEN     hw/intc/trace.h
  GEN     hw/net/trace.h
  GEN     hw/virtio/trace.h
  GEN     hw/audio/trace.h
  GEN     hw/misc/trace.h
  GEN     hw/usb/trace.h
  GEN     hw/scsi/trace.h
  GEN     hw/nvram/trace.h
  GEN     hw/display/trace.h
  GEN     hw/input/trace.h
  GEN     hw/timer/trace.h
  GEN     hw/dma/trace.h
  GEN     hw/sparc/trace.h
  GEN     hw/sd/trace.h
  GEN     hw/isa/trace.h
  GEN     hw/mem/trace.h
  GEN     hw/i386/trace.h
  GEN     hw/i386/xen/trace.h
  GEN     hw/9pfs/trace.h
  GEN     hw/ppc/trace.h
  GEN     hw/pci/trace.h
  GEN     hw/s390x/trace.h
  GEN     hw/vfio/trace.h
  GEN     hw/acpi/trace.h
  GEN     hw/arm/trace.h
  GEN     hw/alpha/trace.h
  GEN     hw/xen/trace.h
  GEN     ui/trace.h
  GEN     audio/trace.h
  GEN     net/trace.h
  GEN     target/arm/trace.h
  GEN     target/i386/trace.h
  GEN     target/mips/trace.h
  GEN     target/sparc/trace.h
  GEN     target/s390x/trace.h
  GEN     target/ppc/trace.h
  GEN     qom/trace.h
  GEN     linux-user/trace.h
  GEN     qapi/trace.h
  GEN     accel/tcg/trace.h
  GEN     accel/kvm/trace.h
  GEN     nbd/trace.h
  GEN     trace-root.c
  GEN     util/trace.c
  GEN     crypto/trace.c
  GEN     io/trace.c
  GEN     migration/trace.c
  GEN     block/trace.c
  GEN     chardev/trace.c
  GEN     hw/block/trace.c
  GEN     hw/block/dataplane/trace.c
  GEN     hw/char/trace.c
  GEN     hw/intc/trace.c
  GEN     hw/net/trace.c
  GEN     hw/virtio/trace.c
  GEN     hw/audio/trace.c
  GEN     hw/misc/trace.c
  GEN     hw/usb/trace.c
  GEN     hw/scsi/trace.c
  GEN     hw/nvram/trace.c
  GEN     hw/display/trace.c
  GEN     hw/input/trace.c
  GEN     hw/timer/trace.c
  GEN     hw/dma/trace.c
  GEN     hw/sparc/trace.c
  GEN     hw/sd/trace.c
  GEN     hw/isa/trace.c
  GEN     hw/mem/trace.c
  GEN     hw/i386/trace.c
  GEN     hw/i386/xen/trace.c
  GEN     hw/9pfs/trace.c
  GEN     hw/ppc/trace.c
  GEN     hw/pci/trace.c
  GEN     hw/s390x/trace.c
  GEN     hw/vfio/trace.c
  GEN     hw/acpi/trace.c
  GEN     hw/arm/trace.c
  GEN     hw/alpha/trace.c
  GEN     hw/xen/trace.c
  GEN     ui/trace.c
  GEN     audio/trace.c
  GEN     net/trace.c
  GEN     target/arm/trace.c
  GEN     target/i386/trace.c
  GEN     target/mips/trace.c
  GEN     target/sparc/trace.c
  GEN     target/s390x/trace.c
  GEN     target/ppc/trace.c
  GEN     qom/trace.c
  GEN     linux-user/trace.c
  GEN     qapi/trace.c
  GEN     accel/tcg/trace.c
  GEN     accel/kvm/trace.c
  GEN     nbd/trace.c
    CHK version_gen.h
     LEX convert-dtsv0-lexer.lex.c
make[1]: flex:命令未找到
     BISON dtc-parser.tab.c
make[1]: bison:命令未找到
     LEX dtc-lexer.lex.c
make[1]: flex:命令未找到
  CC      tests/qemu-iotests/socket_scm_helper.o
  LINK    tests/qemu-iotests/socket_scm_helper
  GEN     qga/qapi-generated/qga-qapi-types.h
  GEN     qga/qapi-generated/qga-qapi-visit.h
  GEN     qga/qapi-generated/qga-qmp-commands.h
  CC      qga/commands.o
  CC      qga/guest-agent-command-state.o
  CC      qga/main.o
  CC      qga/commands-posix.o
  CC      qga/channel-posix.o
  GEN     qga/qapi-generated/qga-qapi-types.c
  CC      qga/qapi-generated/qga-qapi-types.o
  GEN     qga/qapi-generated/qga-qapi-visit.c
  CC      qga/qapi-generated/qga-qapi-visit.o
  GEN     qga/qapi-generated/qga-qmp-marshal.c
  CC      qga/qapi-generated/qga-qmp-marshal.o
  CC      qmp-introspect.o
  CC      qapi-types.o
  CC      qapi-visit.o
  CC      qapi-event.o
  CC      qapi/qapi-visit-core.o
  CC      qapi/qapi-dealloc-visitor.o
  CC      qapi/qobject-input-visitor.o
  CC      qapi/qobject-output-visitor.o
  CC      qapi/qmp-registry.o
  CC      qapi/qmp-dispatch.o
  CC      qapi/string-input-visitor.o
  CC      qapi/string-output-visitor.o
  CC      qapi/opts-visitor.o
  CC      qapi/qapi-clone-visitor.o
  CC      qapi/qmp-event.o
  CC      qapi/qapi-util.o
  CC      qobject/qnull.o
  CC      qobject/qnum.o
  CC      qobject/qstring.o
  CC      qobject/qdict.o
  CC      qobject/qlist.o
  CC      qobject/qbool.o
  CC      qobject/qjson.o
  CC      qobject/qobject.o
  CC      qobject/json-lexer.o
  CC      qobject/json-streamer.o
  CC      qobject/json-parser.o
  CC      trace/control.o
  CC      trace/qmp.o
  CC      util/osdep.o
  CC      util/cutils.o
  CC      util/unicode.o
  CC      util/qemu-timer-common.o
  CC      util/bufferiszero.o
  CC      util/lockcnt.o
  CC      util/aiocb.o
  CC      util/async.o
  CC      util/thread-pool.o
  CC      util/qemu-timer.o
  CC      util/main-loop.o
  CC      util/iohandler.o
  CC      util/aio-posix.o
  CC      util/compatfd.o
  CC      util/event_notifier-posix.o
  CC      util/mmap-alloc.o
  CC      util/oslib-posix.o
  CC      util/qemu-openpty.o
  CC      util/qemu-thread-posix.o
  CC      util/memfd.o
  CC      util/envlist.o
  CC      util/path.o
  CC      util/module.o
  CC      util/host-utils.o
  CC      util/bitmap.o
  CC      util/bitops.o
  CC      util/hbitmap.o
  CC      util/fifo8.o
  CC      util/acl.o
  CC      util/cacheinfo.o
  CC      util/error.o
  CC      util/qemu-error.o
  CC      util/id.o
  CC      util/iov.o
  CC      util/qemu-config.o
  CC      util/qemu-sockets.o
  CC      util/uri.o
  CC      util/notify.o
  CC      util/qemu-option.o
  CC      util/qemu-progress.o
  CC      util/keyval.o
  CC      util/hexdump.o
  CC      util/crc32c.o
  CC      util/uuid.o
  CC      util/throttle.o
  CC      util/getauxval.o
  CC      util/readline.o
  CC      util/rcu.o
  CC      util/qemu-coroutine.o
  CC      util/qemu-coroutine-lock.o
  CC      util/qemu-coroutine-io.o
  CC      util/qemu-coroutine-sleep.o
  CC      util/coroutine-ucontext.o
  CC      util/buffer.o
  CC      util/timed-average.o
  CC      util/base64.o
  CC      util/log.o
  CC      util/qdist.o
  CC      util/qht.o
  CC      util/range.o
  CC      util/stats64.o
  CC      util/systemd.o
  CC      trace-root.o
  CC      util/trace.o
  CC      crypto/trace.o
  CC      io/trace.o
  CC      migration/trace.o
  CC      block/trace.o
  CC      chardev/trace.o
  CC      hw/block/trace.o
  CC      hw/block/dataplane/trace.o
  CC      hw/char/trace.o
  CC      hw/intc/trace.o
  CC      hw/net/trace.o
  CC      hw/virtio/trace.o
  CC      hw/audio/trace.o
  CC      hw/misc/trace.o
  CC      hw/usb/trace.o
  CC      hw/scsi/trace.o
  CC      hw/nvram/trace.o
  CC      hw/display/trace.o
  CC      hw/input/trace.o
  CC      hw/timer/trace.o
  CC      hw/dma/trace.o
  CC      hw/sparc/trace.o
  CC      hw/sd/trace.o
  CC      hw/isa/trace.o
  CC      hw/mem/trace.o
  CC      hw/i386/trace.o
  CC      hw/i386/xen/trace.o
  CC      hw/9pfs/trace.o
  CC      hw/ppc/trace.o
  CC      hw/pci/trace.o
  CC      hw/s390x/trace.o
  CC      hw/vfio/trace.o
  CC      hw/acpi/trace.o
  CC      hw/arm/trace.o
  CC      hw/alpha/trace.o
  CC      hw/xen/trace.o
  CC      ui/trace.o
  CC      audio/trace.o
  CC      net/trace.o
  CC      target/arm/trace.o
  CC      target/i386/trace.o
  CC      target/mips/trace.o
  CC      target/sparc/trace.o
  CC      target/s390x/trace.o
  CC      target/ppc/trace.o
  CC      qom/trace.o
  CC      linux-user/trace.o
  CC      qapi/trace.o
  CC      accel/tcg/trace.o
  CC      accel/kvm/trace.o
  CC      nbd/trace.o
  AR      libqemuutil.a
  CC      crypto/pbkdf-stub.o
  CC      stubs/arch-query-cpu-def.o
  CC      stubs/arch-query-cpu-model-expansion.o
  CC      stubs/arch-query-cpu-model-comparison.o
  CC      stubs/arch-query-cpu-model-baseline.o
  CC      stubs/bdrv-next-monitor-owned.o
  CC      stubs/blk-commit-all.o
  CC      stubs/blockdev-close-all-bdrv-states.o
  CC      stubs/clock-warp.o
  CC      stubs/cpu-get-clock.o
  CC      stubs/cpu-get-icount.o
  CC      stubs/dump.o
  CC      stubs/error-printf.o
  CC      stubs/fdset.o
  CC      stubs/gdbstub.o
  CC      stubs/get-vm-name.o
  CC      stubs/iothread.o
  CC      stubs/iothread-lock.o
  CC      stubs/is-daemonized.o
  CC      stubs/machine-init-done.o
  CC      stubs/migr-blocker.o
  CC      stubs/change-state-handler.o
  CC      stubs/monitor.o
  CC      stubs/notify-event.o
  CC      stubs/qtest.o
  CC      stubs/replay.o
  CC      stubs/runstate-check.o
  CC      stubs/set-fd-handler.o
  CC      stubs/slirp.o
  CC      stubs/sysbus.o
  CC      stubs/trace-control.o
  CC      stubs/uuid.o
  CC      stubs/vm-stop.o
  CC      stubs/vmstate.o
  CC      stubs/qmp_pc_dimm_device_list.o
  CC      stubs/target-monitor-defs.o
  CC      stubs/target-get-monitor-def.o
  CC      stubs/pc_madt_cpu_entry.o
  CC      stubs/vmgenid.o
  CC      stubs/xen-common.o
  CC      stubs/xen-hvm.o
  AR      libqemustub.a
  LINK    qemu-ga
  CC      contrib/ivshmem-client/ivshmem-client.o
  CC      contrib/ivshmem-client/main.o
  LINK    ivshmem-client
  CC      contrib/ivshmem-server/ivshmem-server.o
  CC      contrib/ivshmem-server/main.o
  LINK    ivshmem-server
  CC      qemu-nbd.o
  CC      block.o
  CC      blockjob.o
  CC      qemu-io-cmds.o
  CC      replication.o
  CC      block/raw-format.o
  CC      block/qcow.o
  CC      block/vdi.o
  CC      block/vmdk.o
  CC      block/cloop.o
  CC      block/bochs.o
  CC      block/vpc.o
  CC      block/vvfat.o
  CC      block/dmg.o
  CC      block/qcow2.o
  CC      block/qcow2-refcount.o
  CC      block/qcow2-cluster.o
  CC      block/qcow2-snapshot.o
  CC      block/qcow2-cache.o
  CC      block/qcow2-bitmap.o
  CC      block/qed.o
  CC      block/qed-l2-cache.o
  CC      block/qed-table.o
  CC      block/qed-cluster.o
  CC      block/qed-check.o
  CC      block/vhdx.o
  CC      block/vhdx-endian.o
  CC      block/vhdx-log.o
  CC      block/quorum.o
  CC      block/parallels.o
  CC      block/blkdebug.o
  CC      block/blkverify.o
  CC      block/blkreplay.o
  CC      block/block-backend.o
  CC      block/snapshot.o
  CC      block/qapi.o
  CC      block/file-posix.o
  CC      block/null.o
  CC      block/mirror.o
  CC      block/commit.o
  CC      block/io.o
  CC      block/throttle-groups.o
  CC      block/nbd.o
  CC      block/nbd-client.o
  CC      block/sheepdog.o
  CC      block/accounting.o
  CC      block/dirty-bitmap.o
  CC      block/write-threshold.o
  CC      block/backup.o
  CC      block/replication.o
  CC      block/crypto.o
  CC      nbd/server.o
  CC      nbd/client.o
  CC      nbd/common.o
  CC      crypto/init.o
  CC      crypto/hash.o
  CC      crypto/hash-glib.o
  CC      crypto/hmac.o
  CC      crypto/hmac-glib.o
  CC      crypto/aes.o
  CC      crypto/desrfb.o
  CC      crypto/cipher.o
  CC      crypto/tlscreds.o
  CC      crypto/tlscredsanon.o
  CC      crypto/tlscredsx509.o
  CC      crypto/tlssession.o
  CC      crypto/secret.o
  CC      crypto/random-platform.o
  CC      crypto/pbkdf.o
  CC      crypto/ivgen.o
  CC      crypto/ivgen-essiv.o
  CC      crypto/ivgen-plain.o
  CC      crypto/ivgen-plain64.o
  CC      crypto/afsplit.o
  CC      crypto/xts.o
  CC      crypto/block.o
  CC      crypto/block-qcow.o
  CC      crypto/block-luks.o
  CC      io/channel.o
  CC      io/channel-buffer.o
  CC      io/channel-command.o
  CC      io/channel-file.o
  CC      io/channel-socket.o
  CC      io/channel-tls.o
  CC      io/channel-watch.o
  CC      io/channel-websock.o
  CC      io/channel-util.o
  CC      io/dns-resolver.o
  CC      io/task.o
  CC      qom/object.o
  CC      qom/container.o
  CC      qom/qom-qobject.o
  CC      qom/object_interfaces.o
  LINK    qemu-nbd
  GEN     qemu-img-cmds.h
  CC      qemu-img.o
  LINK    qemu-img
  CC      qemu-io.o
  LINK    qemu-io
  CC      qemu-bridge-helper.o
  LINK    qemu-bridge-helper
  CC      cpus-common.o
  CC      disas/arm.o
  CXX     disas/arm-a64.o
  CC      disas/i386.o
  CXX     disas/libvixl/vixl/utils.o
  CXX     disas/libvixl/vixl/compiler-intrinsics.o
  CXX     disas/libvixl/vixl/a64/instructions-a64.o
  CXX     disas/libvixl/vixl/a64/decoder-a64.o
  CXX     disas/libvixl/vixl/a64/disasm-a64.o
  CC      hw/core/qdev.o
  CC      hw/core/qdev-properties.o
  CC      hw/core/bus.o
  CC      hw/core/reset.o
  CC      hw/core/fw-path-provider.o
  CC      hw/core/irq.o
  CC      hw/core/hotplug.o
  CC      hw/core/nmi.o
  CC      qom/cpu.o
  CC      chardev/char.o
  CC      chardev/char-fd.o
  CC      chardev/char-fe.o
  CC      chardev/char-file.o
  CC      chardev/char-io.o
  CC      chardev/char-mux.o
  CC      chardev/char-null.o
  CC      chardev/char-parallel.o
  CC      chardev/char-pipe.o
  CC      chardev/char-pty.o
  CC      chardev/char-ringbuf.o
  CC      chardev/char-serial.o
  CC      chardev/char-socket.o
  CC      chardev/char-stdio.o
  CC      chardev/char-udp.o
  GEN     arm-linux-user/config-target.h
  CC      arm-linux-user/exec.o
  CC      arm-linux-user/tcg/tcg.o
  CC      arm-linux-user/tcg/tcg-op.o
  CC      arm-linux-user/tcg/optimize.o
  CC      arm-linux-user/tcg/tcg-common.o
  CC      arm-linux-user/tcg/tcg-runtime.o
  CC      arm-linux-user/fpu/softfloat.o
  CC      arm-linux-user/disas.o
  GEN     arm-linux-user/gdbstub-xml.c
  CC      arm-linux-user/gdbstub-xml.o
  CC      arm-linux-user/hax-stub.o
  CC      arm-linux-user/gdbstub.o
  CC      arm-linux-user/thunk.o
  CC      arm-linux-user/user-exec.o
  CC      arm-linux-user/user-exec-stub.o
  CC      arm-linux-user/accel/stubs/kvm-stub.o
  CC      arm-linux-user/accel/tcg/cpu-exec.o
In file included from /home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c:39:0:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:39:6: warning: no previous prototype for ‘add_premap_page’ [-Wmissing-prototypes]
 void add_premap_page(target_ulong pc)
      ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:45:5: warning: no previous prototype for ‘if_premap_page’ [-Wmissing-prototypes]
 int if_premap_page(target_ulong pc)
     ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:56:5: warning: no previous prototype for ‘if_page_pc’ [-Wmissing-prototypes]
 int if_page_pc(target_ulong pc)
     ^
In file included from /home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c:39:0:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:222:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 static void start_run() {
             ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h: In function ‘start_run’:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:222:13: warning: old-style function definition [-Wold-style-definition]
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:228:5: warning: implicit declaration of function ‘write_aflcmd’ [-Wimplicit-function-declaration]
     write_aflcmd(cmd,  &user_mode_time);
     ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:228:5: warning: nested extern declaration of ‘write_aflcmd’ [-Wnested-externs]
In file included from /home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c:39:0:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h: At top level:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:371:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 void cross_process_mutex_first_init()
      ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h: In function ‘cross_process_mutex_first_init’:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:371:6: warning: old-style function definition [-Wold-style-definition]
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:380:16: warning: ‘return’ with a value, in function returning void
         return -1;
                ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:391:16: warning: ‘return’ with a value, in function returning void
         return -2;
                ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h: At top level:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:403:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 void cross_process_mutex_init()
      ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h: In function ‘cross_process_mutex_init’:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:403:6: warning: old-style function definition [-Wold-style-definition]
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:410:16: warning: ‘return’ with a value, in function returning void
         return -1;
                ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:416:16: warning: ‘return’ with a value, in function returning void
         return -2;
                ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h: At top level:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:421:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 void cross_shamem_disconn()
      ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h: In function ‘cross_shamem_disconn’:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:421:6: warning: old-style function definition [-Wold-style-definition]
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h: At top level:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:473:5: warning: no previous prototype for ‘write_aflcmd’ [-Wmissing-prototypes]
 int write_aflcmd(int cmd, USER_MODE_TIME *user_mode_time)  
     ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:524:14: warning: no previous prototype for ‘startTrace’ [-Wmissing-prototypes]
 target_ulong startTrace(target_ulong start, target_ulong end)
              ^
In file included from /home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c:39:0:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c: In function ‘cpu_exec’:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:101:11: error: ‘struct CPUARMState’ has no member named ‘active_tc’
     if(env->active_tc.PC == afl_entry_point && fork_times==0) { \
           ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c:698:13: note: in expansion of macro ‘AFL_QEMU_CPU_SNIPPET2’
             AFL_QEMU_CPU_SNIPPET2;
             ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:107:22: error: ‘struct CPUARMState’ has no member named ‘active_tc’
     afl_maybe_log(env->active_tc.PC); \
                      ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c:698:13: note: in expansion of macro ‘AFL_QEMU_CPU_SNIPPET2’
             AFL_QEMU_CPU_SNIPPET2;
             ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c:700:34: error: ‘struct CPUARMState’ has no member named ‘active_tc’
             target_ulong pc = env->active_tc.PC;
                                  ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c:701:19: error: ‘struct CPUARMState’ has no member named ‘active_tc’
             if(env->active_tc.PC  == 0 )
                   ^
In file included from /home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c:39:0:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/accel/tcg/cpu-exec.c: At top level:
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/afl-qemu-cpu-inl.h:222:13: warning: ‘start_run’ defined but not used [-Wunused-function]
 static void start_run() {
             ^
/home/hmsec/tools/fuzz/FirmAFL-master/user_mode/rules.mak:66: recipe for target 'accel/tcg/cpu-exec.o' failed
make[1]: *** [accel/tcg/cpu-exec.o] Error 1
Makefile:326: recipe for target 'subdir-arm-linux-user' failed
make: *** [subdir-arm-linux-user] Error 2
findo commented 4 years ago

兄弟你解决这个问题了吗

cx1417 commented 4 years ago

没有啊!@_@

发送自 Windows 10 版邮件应用

发件人: Jerry Wang 发送时间: 2020年7月7日 19:50 收件人: zyw-200/FirmAFL 抄送: cx1417; Author 主题: Re: [zyw-200/FirmAFL] error: 'struct CPUARMState' has no member named'active_tc' (#4)

兄弟你解决这个问题了吗 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.