Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microblaze compilation error #326

Open
sylvainpelissier opened this issue Mar 29, 2023 · 1 comment
Open

Microblaze compilation error #326

sylvainpelissier opened this issue Mar 29, 2023 · 1 comment

Comments

@sylvainpelissier
Copy link
Collaborator

Environment

Wed 29 Mar 09:33:02 CEST 2023
radare2 5.8.5 30445 @ linux-x86-64 git.5.7.8-1255-gf5749b7732
commit: f5749b7732dbeb561a59b73f24b6d793bbba20c6 build: 2023-03-29__09:28:30
Linux x86_64

Description

The Microblaze plugin is not compatible with new arch plugin. What was done for blackfin: 77c8e95 should solve the problem.

To reproduce:

$ r2pm -i microblaze
...
anal_microblaze_gnu.c:1144:20: error: ‘R_ANAL_OP_MASK_DISASM’ undeclared (first use in this function); did you mean ‘R_ARCH_OP_MASK_DISASM’?
 1144 |         if (mask & R_ANAL_OP_MASK_DISASM) {
      |                    ^~~~~~~~~~~~~~~~~~~~~
      |                    R_ARCH_OP_MASK_DISASM
anal_microblaze_gnu.c:1144:20: note: each undeclared identifier is reported only once for each function it appears in
anal_microblaze_gnu.c: At top level:
anal_microblaze_gnu.c:1286:28: warning: initialization of ‘_Bool (*)(RAnal *)’ {aka ‘_Bool (*)(struct r_anal_t *)’} from incompatible pointer type ‘int (*)(RAnal *)’ {aka ‘int (*)(struct r_anal_t *)’} [-Wincompatible-pointer-types]
 1286 |         .set_reg_profile = microblaze_set_reg_profile,
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
anal_microblaze_gnu.c:1286:28: note: (near initialization for ‘r_anal_plugin_microblaze_gnu.set_reg_profile’)
make[1]: *** [<builtin>: anal_microblaze_gnu.o] Error 1
make[1]: Leaving directory '/home/sylvain/.local/share/radare2/r2pm/git/microblaze/microblaze/anal'
make: *** [Makefile:5: all] Error 2
@radare
Copy link
Collaborator

radare commented Mar 29, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants