Skip to content

Failed to compile on a Raspberry Pi 2 #209

Closed
@ETeissonniere

Description

@ETeissonniere

Hello guys,
So, I have discovered your project because someone suggested it to me on freenode.net.
I downloaded the code and do what COMPILE.txt explain, but I fail to compile using ./make.sh with the folowing error :

root@kali:~/unicorn-0.9# ./make.sh
if [ "x86 m68k arm aarch64 mips sparc" != "`cat config.log`" ]; then make clean; fi
rm -rf libunicorn* unicorn*.lib unicorn*.dll && cd qemu && make -j 8
make[1]: Entering directory '/root/unicorn-0.9/qemu'
  CC    m68k-softmmu/tcg/tcg.o
  CC    arm-softmmu/tcg/tcg.o
  CC    mipsel-softmmu/tcg/tcg.o
  CC    x86_64-softmmu/tcg/tcg.o
  CC    mips-softmmu/tcg/tcg.o
  CC    mips64el-softmmu/tcg/tcg.o
  CC    aarch64-softmmu/tcg/tcg.o
  CC    mips64-softmmu/tcg/tcg.o
In file included from /root/unicorn-0.9/qemu/tcg/tcg-op.h:24:0,
                 from /root/unicorn-0.9/qemu/tcg/tcg.c:49:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c: In function ‘tcg_target_init_m68k’:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: error: ‘tcg_target_available_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: note: each undeclared identifier is reported only once for each function it appears in
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1998:22: error: ‘tcg_target_call_clobber_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_call_clobber_regs, 0,
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg.c:259:0:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:32: warning: passing argument 1 of ‘tcg_add_target_add_op_defs_m68k’ from incompatible pointer type
     tcg_add_target_add_op_defs(arm_op_defs);
                                ^
In file included from <command-line>:0:0:
/root/unicorn-0.9/qemu/m68k.h:2815:36: note: expected ‘struct TCGContext *’ but argument is of type ‘const struct TCGTargetOpDef *#define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_m68k
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/m68k.h:2815:36: error: too few arguments to function ‘tcg_add_target_add_op_defs_m68k’
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_m68k
                                    ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:5: note: in expansion of macro ‘tcg_add_target_add_op_defs’
     tcg_add_target_add_op_defs(arm_op_defs);
     ^
/root/unicorn-0.9/qemu/m68k.h:2815:36: note: declared here
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_m68k
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/rules.mak:54: recipe for target 'tcg/tcg.o' failed
make[2]: *** [tcg/tcg.o] Error 1
Makefile:125: recipe for target 'subdir-m68k-softmmu' failed
make[1]: *** [subdir-m68k-softmmu] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC    mips64el-softmmu/target-mips/translate.o
In file included from /root/unicorn-0.9/qemu/tcg/tcg-op.h:24:0,
                 from /root/unicorn-0.9/qemu/tcg/tcg.c:49:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c: In function ‘tcg_target_init_aarch64’:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: error: ‘tcg_target_available_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg-op.h:24:0,
                 from /root/unicorn-0.9/qemu/tcg/tcg.c:49:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c: In function ‘tcg_target_init_arm’:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: note: each undeclared identifier is reported only once for each function it appears in
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1998:22: error: ‘tcg_target_call_clobber_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_call_clobber_regs, 0,
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg.c:259:0:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:32: warning: passing argument 1 of ‘tcg_add_target_add_op_defs_aarch64’ from incompatible pointer type
     tcg_add_target_add_op_defs(arm_op_defs);
                                ^
In file included from <command-line>:0:0:
/root/unicorn-0.9/qemu/aarch64.h:2815:36: note: expected ‘struct TCGContext *’ but argument is of type ‘const struct TCGTargetOpDef *#define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_aarch64
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: error: ‘tcg_target_available_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: note: each undeclared identifier is reported only once for each function it appears in
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1998:22: error: ‘tcg_target_call_clobber_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_call_clobber_regs, 0,
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg.c:259:0:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:32: warning: passing argument 1 of ‘tcg_add_target_add_op_defs_arm’ from incompatible pointer type
     tcg_add_target_add_op_defs(arm_op_defs);
                                ^
In file included from <command-line>:0:0:
/root/unicorn-0.9/qemu/arm.h:2815:36: note: expected ‘struct TCGContext *’ but argument is of type ‘const struct TCGTargetOpDef *#define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_arm
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/arm.h:2815:36: error: too few arguments to function ‘tcg_add_target_add_op_defs_arm’
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_arm
                                    ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:5: note: in expansion of macro ‘tcg_add_target_add_op_defs’
     tcg_add_target_add_op_defs(arm_op_defs);
     ^
/root/unicorn-0.9/qemu/arm.h:2815:36: note: declared here
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_arm
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/aarch64.h:2815:36: error: too few arguments to function ‘tcg_add_target_add_op_defs_aarch64’
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_aarch64
                                    ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:5: note: in expansion of macro ‘tcg_add_target_add_op_defs’
     tcg_add_target_add_op_defs(arm_op_defs);
     ^
/root/unicorn-0.9/qemu/aarch64.h:2815:36: note: declared here
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_aarch64
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg-op.h:24:0,
                 from /root/unicorn-0.9/qemu/tcg/tcg.c:49:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c: In function ‘tcg_target_init_x86_64’:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: error: ‘tcg_target_available_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: note: each undeclared identifier is reported only once for each function it appears in
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1998:22: error: ‘tcg_target_call_clobber_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_call_clobber_regs, 0,
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg.c:259:0:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:32: warning: passing argument 1 of ‘tcg_add_target_add_op_defs_x86_64’ from incompatible pointer type
     tcg_add_target_add_op_defs(arm_op_defs);
                                ^
In file included from <command-line>:0:0:
/root/unicorn-0.9/qemu/x86_64.h:2815:36: note: expected ‘struct TCGContext *’ but argument is of type ‘const struct TCGTargetOpDef *#define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_x86_64
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/x86_64.h:2815:36: error: too few arguments to function ‘tcg_add_target_add_op_defs_x86_64’
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_x86_64
                                    ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:5: note: in expansion of macro ‘tcg_add_target_add_op_defs’
     tcg_add_target_add_op_defs(arm_op_defs);
     ^
/root/unicorn-0.9/qemu/x86_64.h:2815:36: note: declared here
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_x86_64
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg-op.h:24:0,
                 from /root/unicorn-0.9/qemu/tcg/tcg.c:49:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c: In function ‘tcg_target_init_mipsel’:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: error: ‘tcg_target_available_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: note: each undeclared identifier is reported only once for each function it appears in
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1998:22: error: ‘tcg_target_call_clobber_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_call_clobber_regs, 0,
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg.c:259:0:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:32: warning: passing argument 1 of ‘tcg_add_target_add_op_defs_mipsel’ from incompatible pointer type
     tcg_add_target_add_op_defs(arm_op_defs);
                                ^
In file included from <command-line>:0:0:
/root/unicorn-0.9/qemu/mipsel.h:2815:36: note: expected ‘struct TCGContext *’ but argument is of type ‘const struct TCGTargetOpDef *#define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mipsel
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/mipsel.h:2815:36: error: too few arguments to function ‘tcg_add_target_add_op_defs_mipsel’
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mipsel
                                    ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:5: note: in expansion of macro ‘tcg_add_target_add_op_defs’
     tcg_add_target_add_op_defs(arm_op_defs);
     ^
/root/unicorn-0.9/qemu/mipsel.h:2815:36: note: declared here
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mipsel
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg-op.h:24:0,
                 from /root/unicorn-0.9/qemu/tcg/tcg.c:49:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c: In function ‘tcg_target_init_mips’:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: error: ‘tcg_target_available_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: note: each undeclared identifier is reported only once for each function it appears in
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1998:22: error: ‘tcg_target_call_clobber_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_call_clobber_regs, 0,
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg.c:259:0:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:32: warning: passing argument 1 of ‘tcg_add_target_add_op_defs_mips’ from incompatible pointer type
     tcg_add_target_add_op_defs(arm_op_defs);
                                ^
In file included from <command-line>:0:0:
/root/unicorn-0.9/qemu/mips.h:2815:36: note: expected ‘struct TCGContext *’ but argument is of type ‘const struct TCGTargetOpDef *#define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mips
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/mips.h:2815:36: error: too few arguments to function ‘tcg_add_target_add_op_defs_mips’
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mips
                                    ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:5: note: in expansion of macro ‘tcg_add_target_add_op_defs’
     tcg_add_target_add_op_defs(arm_op_defs);
     ^
/root/unicorn-0.9/qemu/mips.h:2815:36: note: declared here
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mips
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg-op.h:24:0,
                 from /root/unicorn-0.9/qemu/tcg/tcg.c:49:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c: In function ‘tcg_target_init_mips64’:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: error: ‘tcg_target_available_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: note: each undeclared identifier is reported only once for each function it appears in
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1998:22: error: ‘tcg_target_call_clobber_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_call_clobber_regs, 0,
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg.c:259:0:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:32: warning: passing argument 1 of ‘tcg_add_target_add_op_defs_mips64’ from incompatible pointer type
     tcg_add_target_add_op_defs(arm_op_defs);
                                ^
In file included from <command-line>:0:0:
/root/unicorn-0.9/qemu/mips64.h:2815:36: note: expected ‘struct TCGContext *’ but argument is of type ‘const struct TCGTargetOpDef *#define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mips64
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/mips64.h:2815:36: error: too few arguments to function ‘tcg_add_target_add_op_defs_mips64’
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mips64
                                    ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:5: note: in expansion of macro ‘tcg_add_target_add_op_defs’
     tcg_add_target_add_op_defs(arm_op_defs);
     ^
/root/unicorn-0.9/qemu/mips64.h:2815:36: note: declared here
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mips64
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/rules.mak:54: recipe for target 'tcg/tcg.o' failed
make[2]: *** [tcg/tcg.o] Error 1
Makefile:125: recipe for target 'subdir-arm-softmmu' failed
make[1]: *** [subdir-arm-softmmu] Error 2
  CC    mipsel-softmmu/memory.o
/root/unicorn-0.9/qemu/rules.mak:54: recipe for target 'tcg/tcg.o' failed
make[2]: *** [tcg/tcg.o] Error 1
Makefile:125: recipe for target 'subdir-aarch64-softmmu' failed
make[1]: *** [subdir-aarch64-softmmu] Error 2
  CC    mips-softmmu/cputlb.o
In file included from /root/unicorn-0.9/qemu/tcg/tcg-op.h:24:0,
                 from /root/unicorn-0.9/qemu/tcg/tcg.c:49:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c: In function ‘tcg_target_init_mips64el’:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: error: ‘tcg_target_available_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1997:22: note: each undeclared identifier is reported only once for each function it appears in
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:1998:22: error: ‘tcg_target_call_clobber_regs’ undeclared (first use in this function)
     tcg_regset_set32(tcg_target_call_clobber_regs, 0,
                      ^
/root/unicorn-0.9/qemu/tcg/tcg.h:140:42: note: in definition of macro ‘tcg_regset_set32’
 #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)
                                          ^
In file included from /root/unicorn-0.9/qemu/tcg/tcg.c:259:0:
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:32: warning: passing argument 1 of ‘tcg_add_target_add_op_defs_mips64el’ from incompatible pointer type
     tcg_add_target_add_op_defs(arm_op_defs);
                                ^
In file included from <command-line>:0:0:
/root/unicorn-0.9/qemu/mips64el.h:2815:36: note: expected ‘struct TCGContext *’ but argument is of type ‘const struct TCGTargetOpDef *#define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mips64el
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/mips64el.h:2815:36: error: too few arguments to function ‘tcg_add_target_add_op_defs_mips64el’
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mips64el
                                    ^
/root/unicorn-0.9/qemu/tcg/arm/tcg-target.c:2011:5: note: in expansion of macro ‘tcg_add_target_add_op_defs’
     tcg_add_target_add_op_defs(arm_op_defs);
     ^
/root/unicorn-0.9/qemu/mips64el.h:2815:36: note: declared here
 #define tcg_add_target_add_op_defs tcg_add_target_add_op_defs_mips64el
                                    ^
/root/unicorn-0.9/qemu/tcg/tcg.h:783:6: note: in expansion of macro ‘tcg_add_target_add_op_defs’
 void tcg_add_target_add_op_defs(TCGContext *s, const TCGTargetOpDef *tdefs);
      ^
/root/unicorn-0.9/qemu/rules.mak:54: recipe for target 'tcg/tcg.o' failed
make[2]: *** [tcg/tcg.o] Error 1
Makefile:125: recipe for target 'subdir-x86_64-softmmu' failed
make[1]: *** [subdir-x86_64-softmmu] Error 2
  CC    mipsel-softmmu/cputlb.o
/root/unicorn-0.9/qemu/rules.mak:54: recipe for target 'tcg/tcg.o' failed
make[2]: *** [tcg/tcg.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC    mips-softmmu/memory_mapping.o
/root/unicorn-0.9/qemu/rules.mak:54: recipe for target 'tcg/tcg.o' failed
make[2]: *** [tcg/tcg.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC    mips64el-softmmu/target-mips/op_helper.o
/root/unicorn-0.9/qemu/rules.mak:54: recipe for target 'tcg/tcg.o' failed
make[2]: *** [tcg/tcg.o] Error 1
Makefile:125: recipe for target 'subdir-mips64-softmmu' failed
make[1]: *** [subdir-mips64-softmmu] Error 2
  CC    mips64el-softmmu/target-mips/lmi_helper.o
/root/unicorn-0.9/qemu/rules.mak:54: recipe for target 'tcg/tcg.o' failed
make[2]: *** [tcg/tcg.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:125: recipe for target 'subdir-mips-softmmu' failed
make[1]: *** [subdir-mips-softmmu] Error 2
Makefile:125: recipe for target 'subdir-mipsel-softmmu' failed
make[1]: *** [subdir-mipsel-softmmu] Error 2
Makefile:125: recipe for target 'subdir-mips64el-softmmu' failed
make[1]: *** [subdir-mips64el-softmmu] Error 2
make[1]: Leaving directory '/root/unicorn-0.9/qemu'
Makefile:216: recipe for target 'compile_lib' failed
make: *** [compile_lib] Error 2
root@kali:~/unicorn-0.9# 

Hope it will be usefull and you can help me.
Have a good day 😄.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions