rizin
rizin copied to clipboard
Fix PPC RzIL code compilation with capstone '3' and 'next'
capstone-3
FAILED: librz/analysis/librz_analysis.so.0.5.0.p/arch_ppc_ppc_il.c.o
gcc -Ilibrz/analysis/librz_analysis.so.0.5.0.p -I. -I.. -Ilibrz -I../librz -Ilibrz/include -I../librz/include -I../librz/analysis/arch/gb -Ilibrz/util/sdb/src -I../librz/util/sdb/src -Ilibrz/util/sdb -I../librz/util/sdb -I../librz/asm/arch/include -I../librz/asm/arch -I../librz/asm/arch/h8300 -I../librz/asm/arch/hexagon -I../librz/asm/arch/msp430 -I../librz/asm/arch/rsp -I../librz/asm/arch/mcore -I../librz/asm/arch/v850 -I../librz/asm/arch/propeller -I../librz/asm/arch/ebc -I../librz/asm/arch/cr16 -I../librz/asm/arch/8051 -I../librz/asm/arch/v810 -I../librz/asm/arch/or1k -I../librz/bin/format -I../librz/type/parser -I../subprojects/capstone-3.0.5/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -Wimplicit-fallthrough=3 -DRZ_PLUGIN_INCORE=1 -D_GNU_SOURCE --std=gnu99 -Werror=sizeof-pointer-memaccess -fvisibility=hidden -Wno-cpp -fPIC -MD -MQ librz/analysis/librz_analysis.so.0.5.0.p/arch_ppc_ppc_il.c.o -MF librz/analysis/librz_analysis.so.0.5.0.p/arch_ppc_ppc_il.c.o.d -o librz/analysis/librz_analysis.so.0.5.0.p/arch_ppc_ppc_il.c.o -c ../librz/analysis/arch/ppc/ppc_il.c
../librz/analysis/arch/ppc/ppc_il.c: In function ‘ppc_is_x_form’:
../librz/analysis/arch/ppc/ppc_il.c:36:7: error: ‘PPC_INS_LBZCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_LBZX’?
36 | case PPC_INS_LBZCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_LBZX
../librz/analysis/arch/ppc/ppc_il.c:36:7: note: each undeclared identifier is reported only once for each function it appears in
../librz/analysis/arch/ppc/ppc_il.c:41:7: error: ‘PPC_INS_LDCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_LDX’?
41 | case PPC_INS_LDCIX:
| ^~~~~~~~~~~~~
| PPC_INS_LDX
../librz/analysis/arch/ppc/ppc_il.c:47:7: error: ‘PPC_INS_LHZCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_LHZX’?
47 | case PPC_INS_LHZCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_LHZX
../librz/analysis/arch/ppc/ppc_il.c:54:7: error: ‘PPC_INS_LWZCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_LWZX’?
54 | case PPC_INS_LWZCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_LWZX
../librz/analysis/arch/ppc/ppc_il.c:65:7: error: ‘PPC_INS_STBCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_STWCX’?
65 | case PPC_INS_STBCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_STWCX
../librz/analysis/arch/ppc/ppc_il.c:66:7: error: ‘PPC_INS_STHCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_STWCX’?
66 | case PPC_INS_STHCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_STWCX
../librz/analysis/arch/ppc/ppc_il.c:67:7: error: ‘PPC_INS_STWCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_STWCX’?
67 | case PPC_INS_STWCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_STWCX
../librz/analysis/arch/ppc/ppc_il.c:68:7: error: ‘PPC_INS_STDCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_STDCX’?
68 | case PPC_INS_STDCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_STDCX
../librz/analysis/arch/ppc/ppc_il.c: In function ‘ppc_get_mem_acc_size’:
../librz/analysis/arch/ppc/ppc_il.c:93:7: error: ‘PPC_INS_LBZCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_LBZX’?
93 | case PPC_INS_LBZCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_LBZX
../librz/analysis/arch/ppc/ppc_il.c:98:7: error: ‘PPC_INS_STBCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_STWCX’?
98 | case PPC_INS_STBCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_STWCX
../librz/analysis/arch/ppc/ppc_il.c:109:7: error: ‘PPC_INS_LHZCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_LHZX’?
109 | case PPC_INS_LHZCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_LHZX
../librz/analysis/arch/ppc/ppc_il.c:115:7: error: ‘PPC_INS_STHCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_STWCX’?
115 | case PPC_INS_STHCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_STWCX
../librz/analysis/arch/ppc/ppc_il.c:126:7: error: ‘PPC_INS_LWZCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_LWZX’?
126 | case PPC_INS_LWZCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_LWZX
../librz/analysis/arch/ppc/ppc_il.c:133:7: error: ‘PPC_INS_STWCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_STWCX’?
133 | case PPC_INS_STWCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_STWCX
../librz/analysis/arch/ppc/ppc_il.c:143:7: error: ‘PPC_INS_LDCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_LDX’?
143 | case PPC_INS_LDCIX:
| ^~~~~~~~~~~~~
| PPC_INS_LDX
../librz/analysis/arch/ppc/ppc_il.c:149:7: error: ‘PPC_INS_STDCIX’ undeclared (first use in this function); did you mean ‘PPC_INS_STDCX’?
149 | case PPC_INS_STDCIX:
| ^~~~~~~~~~~~~~
| PPC_INS_STDCX
../librz/analysis/arch/ppc/ppc_il.c: In function ‘ppc_moves_to_spr’:
../librz/analysis/arch/ppc/ppc_il.c:325:7: error: ‘PPC_INS_MTFSFI’ undeclared (first use in this function); did you mean ‘PPC_INS_MTFSF’?
325 | case PPC_INS_MTFSFI:
| ^~~~~~~~~~~~~~
| PPC_INS_MTFSF
../librz/analysis/arch/ppc/ppc_il.c: In function ‘ppc_decrements_ctr’:
../librz/analysis/arch/ppc/ppc_il.c:403:7: error: ‘PPC_INS_BCT’ undeclared (first use in this function); did you mean ‘PPC_INS_BT’?
403 | case PPC_INS_BCT:
| ^~~~~~~~~~~
| PPC_INS_BT
capstone-next
../librz/analysis/arch/ppc/ppc_il.c: In function ‘ppc_decrements_ctr’:
../librz/analysis/arch/ppc/ppc_il.c:403:7: error: ‘PPC_INS_BCT’ undeclared (first use in this function); did you mean ‘PPC_INS_BT’?
403 | case PPC_INS_BCT:
| ^~~~~~~~~~~
| PPC_INS_BT
@Rot127 please use dist- branch name when you send PR to fix this.