rizinorg / rizin

UNIX-like reverse engineering framework and command-line toolset.
https://rizin.re
GNU Lesser General Public License v3.0
2.72k stars 363 forks source link

Alpha linux: linux_debug.c:1170:17: error: unknown type name ‘RZ_DEBUG_REG_T’; did you mean ‘RZ_DEBUG_H’? #1925

Open XVilka opened 3 years ago

XVilka commented 3 years ago

Work environment

Questions Answers
OS/arch/bits (mandatory) Debian Alpha
File format of the file you reverse (mandatory) -
Architecture/bits of the file (mandatory) -
rizin -v full output, not truncated (mandatory) https://github.com/rizinorg/rizin/commit/64239b30ec6870f658161ee8ae141d1c021e1486

Actual behavior

[177/736] Compiling C object librz/deb...ebug.so.0.4.0-git.p/p_debug_native.c.o
../librz/debug/p/debug_native.c: In function ‘rz_debug_native_bp’:
../librz/debug/p/debug_native.c:1427:18: warning: unused variable ‘dbg’ [-Wunused-variable]
 1427 |         RzDebug *dbg = bp->user;
      |                  ^~~
../librz/debug/p/debug_native.c: At top level:
../librz/debug/p/debug_native.c:1629:2: warning: #warning Unsupported architecture [-Wcpp]
 1629 | #warning Unsupported architecture
      |  ^~~~~~~
[182/736] Compiling C object librz/deb...0-git.p/p_native_linux_linux_debug.c.o
FAILED: librz/debug/librz_debug.so.0.4.0-git.p/p_native_linux_linux_debug.c.o 
cc -Ilibrz/debug/librz_debug.so.0.4.0-git.p -I. -I.. -I../librz/include -I../librz/bin/format/elf -I../shlr/qnx/include -I../shlr/gdb/include -I../shlr/gdb/include/gdbclient -I../shlr/gdb/include/gdbserver -I../shlr/bochs/include -I../shlr/winkd -Isubprojects/sdb -I../subprojects/sdb -Isubprojects/sdb/src -I../subprojects/sdb/src -I../librz/analysis/arch/gb -I../librz/analysis/arch/hexagon -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g --std=gnu99 -D_GNU_SOURCE -Werror=sizeof-pointer-memaccess -fvisibility=hidden -fPIC -DRZ_PLUGIN_INCORE=1 -MD -MQ librz/debug/librz_debug.so.0.4.0-git.p/p_native_linux_linux_debug.c.o -MF librz/debug/librz_debug.so.0.4.0-git.p/p_native_linux_linux_debug.c.o.d -o librz/debug/librz_debug.so.0.4.0-git.p/p_native_linux_linux_debug.c.o -c ../librz/debug/p/native/linux/linux_debug.c
../librz/debug/p/native/linux/linux_debug.c: In function ‘linux_reg_profile’:
../librz/debug/p/native/linux/linux_debug.c:61:2: error: #error "Unsupported Linux CPU"
   61 | #error "Unsupported Linux CPU"
      |  ^~~~~
../librz/debug/p/native/linux/linux_debug.c: In function ‘print_fpu’:
../librz/debug/p/native/linux/linux_debug.c:1060:2: warning: #warning print_fpu not implemented for this platform [-Wcpp]
 1060 | #warning print_fpu not implemented for this platform
      |  ^~~~~~~
../librz/debug/p/native/linux/linux_debug.c: In function ‘linux_reg_read’:
../librz/debug/p/native/linux/linux_debug.c:1164:2: warning: #warning getfpregs not implemented for this platform [-Wcpp]
 1164 | #warning getfpregs not implemented for this platform
      |  ^~~~~~~
../librz/debug/p/native/linux/linux_debug.c:1170:17: error: unknown type name ‘RZ_DEBUG_REG_T’; did you mean ‘RZ_DEBUG_H’?
 1170 |                 RZ_DEBUG_REG_T regs;
      |                 ^~~~~~~~~~~~~~
      |                 RZ_DEBUG_H
../librz/debug/p/native/linux/linux_debug.c:1065:14: warning: variable ‘showfpu’ set but not used [-Wunused-but-set-variable]
 1065 |         bool showfpu = false;
      |              ^~~~~~~
At top level:
../librz/debug/p/native/linux/linux_debug.c:969:13: warning: ‘print_fpu’ defined but not used [-Wunused-function]
  969 | static void print_fpu(void *f) {
      |             ^~~~~~~~~
[183/736] Compiling C object librz/ana.../.._asm_arch_hexagon_hexagon_disas.c.o
ninja: build stopped: subcommand failed.

Readily available QEMU VM is at rizin-debian-11-alpha-qemu-qcow2.zip

XVilka commented 6 months ago

TODO: Check this after https://github.com/rizinorg/rizin/pull/4059 is finished and merged