TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: AEN@SPAMTRAP.COM
date: 2018-05-19 20:02:00
subject: edb-debugger

Hi!

Since edb is supposed to run on aarch32, I'm trying to compile it on a
Pi3b+ running a 32-bit raspian stretch, with the example from here:



This worked fine on x86 and x86_64 debian stretch, but on the Pi this
happens:

cmake .. runs without errors, but then make stops at that point:
############################################################
[  4%] Building CXX object
src/CMakeFiles/edb.dir/capstone-edb/Instruction.cpp.o
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp: In
function ‘bool CapstoneEDB::{anonymous}::is_simd_register(const
CapstoneEDB::Operand&)’:
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:45:23:
warning: comparison between ‘const arm_op_type {aka const enum
arm_op_type}’ and ‘enum x86_op_type’ [-Wenum-compare]
  if (operand->type != X86_OP_REG)
                       ^~~~~~~~~~
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp: In
function ‘bool CapstoneEDB::{anonymous}::apriori_not_simd(const
CapstoneEDB::Instruction&, const CapstoneEDB::Operand&)’:
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:65:23:
warning: comparison between ‘const arm_op_type {aka const enum
arm_op_type}’ and ‘enum x86_op_type’ [-Wenum-compare]
  if (operand->type == X86_OP_REG && !is_simd_register(operand))
                       ^~~~~~~~~~
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:67:23:
warning: comparison between ‘const arm_op_type {aka const enum
arm_op_type}’ and ‘enum x86_op_type’ [-Wenum-compare]
  if (operand->type == X86_OP_IMM)
                       ^~~~~~~~~~
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp: In
function ‘bool CapstoneEDB::{anonymous}::KxRegisterPresent(const
CapstoneEDB::Instruction&)’:
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:78:19:
warning: comparison between ‘const arm_op_type {aka const enum
arm_op_type}’ and ‘enum x86_op_type’ [-Wenum-compare]
   if (op->type == X86_OP_REG && X86_REG_K0 reg && op->reg <=
X86_REG_K7) {
                   ^~~~~~~~~~
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp: In member
function ‘std::__cxx11::string CapstoneEDB::Formatter::to_string(const
CapstoneEDB::Operand&) const’:
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:441:23:
warning: comparison between ‘const arm_op_type {aka const enum
arm_op_type}’ and ‘enum x86_op_type’ [-Wenum-compare]
  if (operand->type == X86_OP_REG) {
                       ^~~~~~~~~~
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp: In
function ‘bool CapstoneEDB::KxRegisterPresent(const
CapstoneEDB::Instruction&)’:
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:479:19:
warning: comparison between ‘const arm_op_type {aka const enum
arm_op_type}’ and ‘enum x86_op_type’ [-Wenum-compare]
   if (op->type == X86_OP_REG && X86_REG_K0 reg && op->reg <=
X86_REG_K7)
                   ^~~~~~~~~~
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp: In
function ‘bool CapstoneEDB::is_SIMD_PD(const CapstoneEDB::Operand&)’:
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:829:24:
warning: comparison between ‘const arm_op_type {aka const enum
arm_op_type}’ and ‘enum x86_op_type’ [-Wenum-compare]
   if (insn[2]->type != X86_OP_IMM)
                        ^~~~~~~~~~
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp: In
function ‘bool CapstoneEDB::modifies_pc(const
CapstoneEDB::Instruction&)’:
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:1100:9:
error: ‘const struct cs_arm_op’ has no member named ‘access’
   if(op.access==CS_AC_WRITE && op.type==CS_OP_REG &&
op.reg==ARM_REG_PC)
         ^~~~~~
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:1100:17:
error: ‘CS_AC_WRITE’ was not declared in this scope
   if(op.access==CS_AC_WRITE && op.type==CS_OP_REG &&
op.reg==ARM_REG_PC)
                 ^~~~~~~~~~~
/home/pi/src/edb-debugger/src/capstone-edb/Instruction.cpp:1100:41:
warning: comparison between ‘const arm_op_type {aka const enum
arm_op_type}’ and ‘enum cs_op_type’ [-Wenum-compare]
   if(op.access==CS_AC_WRITE && op.type==CS_OP_REG &&
op.reg==ARM_REG_PC)
                                         ^~~~~~~~~
src/CMakeFiles/edb.dir/build.make:214: recipe for target
'src/CMakeFiles/edb.dir/capstone-edb/Instruction.cpp.o' failed
make[2]: *** [src/CMakeFiles/edb.dir/capstone-edb/Instruction.cpp.o]
Error 1
CMakeFiles/Makefile2:86: recipe for target
'src/CMakeFiles/edb.dir/all' failed
make[1]: *** [src/CMakeFiles/edb.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
#############################################################
Any suggestions?
--
aen

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.