Comments (11)
from r2ghidra.
Do you have r2 installed from git? Or at least 5.4?
from r2ghidra.
from r2ghidra.
Yeah 5.5.0 is not the latest but should be enough. Maybe you miss the -dev package?
from r2ghidra.
from r2ghidra.
do you have more than one r2 installed? you can see this with r2 -V
.. you should not copy any file by hand. you probably broke the system/compiler by doing that. wsl is not really that different from any regular linux distor. i use it every day, and its just a virtual machine with full linux kernel running on it (wsl2), the only difference is that it exports the filesystem and permits graphical usage on native windows without starting x server or so. but none of this affects compilation or r2 at all.
you dont need to add any path. the dev pkg should contain the pkg-config files required to tell the build system where to find those files and compile. Do you have pkg-config installed? can you paste the full build log? not just the error
thanks
from r2ghidra.
Thanks, you propably know WSL much better than I do, and I think you are right (just the windows integration is a bit puzzling to me, like how can I pipe to clip.exe, that doesn't work in a normal linux VM... never mind, off topic).
Nope, only one r2 version installed, r2 -V returns 5.5 for everything. Yes, I installed pkg-config before initializing r2pm.
In case I broke things when I tried to fix the install I decided to start fresh and install r2ghidra in my (regular) kali linux VM. First:
sudo apt install pkg-config
r2pm init
r2pm update
All fine, no errors.
Then this:
r2pm -ci r2ghidra
Cleaning r2ghidra...
DEPENDS: r2ghidra-sleigh
HEAD is now at 351c48a add keystone dep
Updating 351c48a..5f3220d
Fast-forward
db/r2frida | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
[r2pm] Updating package database /home/kali/.local/share/radare2/r2pm/db ...
Already up to date.
error: pathspec 'r2-5.5.0' did not match any file(s) known to git
Already up to date.
Install Done For r2ghidra-sleigh
--2021-12-28 16:47:18-- https://github.com/radareorg/r2ghidra/releases/download/5.5.2/r2ghidra_sleigh-5.5.2.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/323166300/b05db594-df58-4c9f-b0ed-d5823233b29c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211228%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211228T214724Z&X-Amz-Expires=300&X-Amz-Signature=a882c2c676b02bd12e7ddadba09401ae9e251639659167cebaf58cbc95ba1662&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=323166300&response-content-disposition=attachment%3B%20filename%3Dr2ghidra_sleigh-5.5.2.zip&response-content-type=application%2Foctet-stream [following]
--2021-12-28 16:47:19-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/323166300/b05db594-df58-4c9f-b0ed-d5823233b29c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211228%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211228T214724Z&X-Amz-Expires=300&X-Amz-Signature=a882c2c676b02bd12e7ddadba09401ae9e251639659167cebaf58cbc95ba1662&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=323166300&response-content-disposition=attachment%3B%20filename%3Dr2ghidra_sleigh-5.5.2.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12352712 (12M) [application/octet-stream]
Saving to: ‘r2ghidra_sleigh-5.5.2.zip’
r2ghidra_sleigh-5.5.2.zip 100%[=====================================================================================================>] 11.78M 13.4MB/s in 0.9s
2021-12-28 16:47:20 (13.4 MB/s) - ‘r2ghidra_sleigh-5.5.2.zip’ saved [12352712/12352712]
Archive: r2ghidra_sleigh-5.5.2.zip
creating: r2ghidra_sleigh-5.5.2/
inflating: r2ghidra_sleigh-5.5.2/TI_MSP430X.cspec
inflating: r2ghidra_sleigh-5.5.2/avr8imgCraftV8.cspec
inflating: r2ghidra_sleigh-5.5.2/avr32a.sla
inflating: r2ghidra_sleigh-5.5.2/V850.cspec
inflating: r2ghidra_sleigh-5.5.2/avr8xmega.sla
inflating: r2ghidra_sleigh-5.5.2/avr8egcc.cspec
inflating: r2ghidra_sleigh-5.5.2/x86borland.cspec
inflating: r2ghidra_sleigh-5.5.2/mips64_32_o32.cspec
inflating: r2ghidra_sleigh-5.5.2/data.ldefs
inflating: r2ghidra_sleigh-5.5.2/superh.pspec
inflating: r2ghidra_sleigh-5.5.2/z180.sla
inflating: r2ghidra_sleigh-5.5.2/6502.cspec
inflating: r2ghidra_sleigh-5.5.2/mips32be.sla
inflating: r2ghidra_sleigh-5.5.2/x86gcc.cspec
inflating: r2ghidra_sleigh-5.5.2/z80.cspec
inflating: r2ghidra_sleigh-5.5.2/8051.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_64_isa_be.sla
inflating: r2ghidra_sleigh-5.5.2/MCS96.pspec
inflating: r2ghidra_sleigh-5.5.2/mips64le.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_64_32.cspec
inflating: r2ghidra_sleigh-5.5.2/RV64GC.pspec
inflating: r2ghidra_sleigh-5.5.2/x86win.cspec
inflating: r2ghidra_sleigh-5.5.2/ARM7_be.sla
inflating: r2ghidra_sleigh-5.5.2/ARMtTHUMB.pspec
inflating: r2ghidra_sleigh-5.5.2/AARCH64BE.sla
inflating: r2ghidra_sleigh-5.5.2/riscv.lp64d.sla
inflating: r2ghidra_sleigh-5.5.2/x86-64-gcc.cspec
inflating: r2ghidra_sleigh-5.5.2/tc172x.pspec
inflating: r2ghidra_sleigh-5.5.2/mips64_32_n32.cspec
inflating: r2ghidra_sleigh-5.5.2/sh-2a.sla
inflating: r2ghidra_sleigh-5.5.2/8051_archimedes.cspec
inflating: r2ghidra_sleigh-5.5.2/MCS96.cspec
inflating: r2ghidra_sleigh-5.5.2/z80.pspec
inflating: r2ghidra_sleigh-5.5.2/80390.cspec
inflating: r2ghidra_sleigh-5.5.2/ARM5_be.sla
inflating: r2ghidra_sleigh-5.5.2/x86-64-win.cspec
inflating: r2ghidra_sleigh-5.5.2/data-be-64.sla
inflating: r2ghidra_sleigh-5.5.2/6502.pspec
inflating: r2ghidra_sleigh-5.5.2/RV64IC.pspec
inflating: r2ghidra_sleigh-5.5.2/x86.ldefs
inflating: r2ghidra_sleigh-5.5.2/superh.cspec
inflating: r2ghidra_sleigh-5.5.2/avr8xmega.pspec
inflating: r2ghidra_sleigh-5.5.2/AARCH64.ldefs
inflating: r2ghidra_sleigh-5.5.2/RV64G.pspec
inflating: r2ghidra_sleigh-5.5.2/ppc_64_le.sla
inflating: r2ghidra_sleigh-5.5.2/SparcV9_32.cspec
inflating: r2ghidra_sleigh-5.5.2/ppc_64_isa_altivec_be.sla
inflating: r2ghidra_sleigh-5.5.2/mips32micro.pspec
inflating: r2ghidra_sleigh-5.5.2/V850.pspec
inflating: r2ghidra_sleigh-5.5.2/mx51.sla
inflating: r2ghidra_sleigh-5.5.2/TI_MSP430X.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_32_mpc8270.pspec
inflating: r2ghidra_sleigh-5.5.2/ARM_win.cspec
inflating: r2ghidra_sleigh-5.5.2/mips32R6le.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_64.cspec
inflating: r2ghidra_sleigh-5.5.2/80251.cspec
inflating: r2ghidra_sleigh-5.5.2/AARCH64.cspec
inflating: r2ghidra_sleigh-5.5.2/ARMt_v6.pspec
inflating: r2ghidra_sleigh-5.5.2/mx51.cspec
inflating: r2ghidra_sleigh-5.5.2/ARM4t_le.sla
inflating: r2ghidra_sleigh-5.5.2/mips32.pspec
inflating: r2ghidra_sleigh-5.5.2/ppc_32_be.sla
inflating: r2ghidra_sleigh-5.5.2/tc176x.pspec
inflating: r2ghidra_sleigh-5.5.2/RV32IC.pspec
inflating: r2ghidra_sleigh-5.5.2/MCS96.ldefs
inflating: r2ghidra_sleigh-5.5.2/riscv64-fp.cspec
inflating: r2ghidra_sleigh-5.5.2/ARMt.pspec
inflating: r2ghidra_sleigh-5.5.2/mips32le.cspec
inflating: r2ghidra_sleigh-5.5.2/superh.ldefs
inflating: r2ghidra_sleigh-5.5.2/data.pspec
inflating: r2ghidra_sleigh-5.5.2/x86delphi.cspec
inflating: r2ghidra_sleigh-5.5.2/tc29x.pspec
inflating: r2ghidra_sleigh-5.5.2/ARM6_le.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_32_quicciii_be.sla
inflating: r2ghidra_sleigh-5.5.2/z8401x.pspec
inflating: r2ghidra_sleigh-5.5.2/x86-16.pspec
inflating: r2ghidra_sleigh-5.5.2/x86-16.cspec
inflating: r2ghidra_sleigh-5.5.2/RV32GC.pspec
inflating: r2ghidra_sleigh-5.5.2/6502.ldefs
inflating: r2ghidra_sleigh-5.5.2/ppc_32_4xx_le.sla
inflating: r2ghidra_sleigh-5.5.2/x86.pspec
inflating: r2ghidra_sleigh-5.5.2/SparcV9_32.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_64_be_Mac.cspec
inflating: r2ghidra_sleigh-5.5.2/mips32be.cspec
inflating: r2ghidra_sleigh-5.5.2/ARM8_le.sla
inflating: r2ghidra_sleigh-5.5.2/ARM4_le.sla
inflating: r2ghidra_sleigh-5.5.2/mips.ldefs
inflating: r2ghidra_sleigh-5.5.2/z80.ldefs
inflating: r2ghidra_sleigh-5.5.2/V850.ldefs
inflating: r2ghidra_sleigh-5.5.2/RV32I.pspec
inflating: r2ghidra_sleigh-5.5.2/data-ptr32.cspec
inflating: r2ghidra_sleigh-5.5.2/mx51.pspec
inflating: r2ghidra_sleigh-5.5.2/AARCH64.pspec
inflating: r2ghidra_sleigh-5.5.2/riscv64.cspec
inflating: r2ghidra_sleigh-5.5.2/80251.pspec
inflating: r2ghidra_sleigh-5.5.2/ARM5t_le.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_64.pspec
inflating: r2ghidra_sleigh-5.5.2/data-ptr16.cspec
inflating: r2ghidra_sleigh-5.5.2/AARCH64.sla
inflating: r2ghidra_sleigh-5.5.2/atmega256.pspec
inflating: r2ghidra_sleigh-5.5.2/riscv.ldefs
inflating: r2ghidra_sleigh-5.5.2/riscv.ilp32d.sla
inflating: r2ghidra_sleigh-5.5.2/x86-64.pspec
inflating: r2ghidra_sleigh-5.5.2/JVM.cspec
inflating: r2ghidra_sleigh-5.5.2/ppc_32_quicciii_le.sla
inflating: r2ghidra_sleigh-5.5.2/ARM6_be.sla
inflating: r2ghidra_sleigh-5.5.2/tricore.pspec
inflating: r2ghidra_sleigh-5.5.2/80251.sla
inflating: r2ghidra_sleigh-5.5.2/avr8.pspec
inflating: r2ghidra_sleigh-5.5.2/JVM.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_32_le.sla
inflating: r2ghidra_sleigh-5.5.2/RV32G.pspec
inflating: r2ghidra_sleigh-5.5.2/8051.cspec
inflating: r2ghidra_sleigh-5.5.2/superh2a.cspec
inflating: r2ghidra_sleigh-5.5.2/avr8e.sla
inflating: r2ghidra_sleigh-5.5.2/avr32a.cspec
inflating: r2ghidra_sleigh-5.5.2/ARM4t_be.sla
inflating: r2ghidra_sleigh-5.5.2/ARM.cspec
inflating: r2ghidra_sleigh-5.5.2/ARMCortex.pspec
inflating: r2ghidra_sleigh-5.5.2/mips32R6be.sla
inflating: r2ghidra_sleigh-5.5.2/mips64.pspec
inflating: r2ghidra_sleigh-5.5.2/avr8.sla
inflating: r2ghidra_sleigh-5.5.2/avr8gcc.cspec
inflating: r2ghidra_sleigh-5.5.2/data-le-64.sla
inflating: r2ghidra_sleigh-5.5.2/tricore.sla
inflating: r2ghidra_sleigh-5.5.2/mips64.cspec
inflating: r2ghidra_sleigh-5.5.2/ARM5t_be.sla
inflating: r2ghidra_sleigh-5.5.2/TI_MSP430.sla
inflating: r2ghidra_sleigh-5.5.2/data-ptr64.cspec
inflating: r2ghidra_sleigh-5.5.2/ppc_64_isa_altivec_vle_be.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_32_be_Mac.cspec
inflating: r2ghidra_sleigh-5.5.2/riscv32.cspec
inflating: r2ghidra_sleigh-5.5.2/avr32a.pspec
inflating: r2ghidra_sleigh-5.5.2/V850.sla
inflating: r2ghidra_sleigh-5.5.2/TI_MSP430.ldefs
inflating: r2ghidra_sleigh-5.5.2/8051.pspec
inflating: r2ghidra_sleigh-5.5.2/ppc_32.pspec
inflating: r2ghidra_sleigh-5.5.2/tricore.cspec
inflating: r2ghidra_sleigh-5.5.2/MCS96.sla
inflating: r2ghidra_sleigh-5.5.2/ARM4_be.sla
inflating: r2ghidra_sleigh-5.5.2/avr8eind.sla
inflating: r2ghidra_sleigh-5.5.2/ARM8_be.sla
inflating: r2ghidra_sleigh-5.5.2/mips64R6.pspec
inflating: r2ghidra_sleigh-5.5.2/SparcV9.ldefs
inflating: r2ghidra_sleigh-5.5.2/JVM.pspec
inflating: r2ghidra_sleigh-5.5.2/ppc_32_4xx_be.sla
inflating: r2ghidra_sleigh-5.5.2/ARM7_le.sla
inflating: r2ghidra_sleigh-5.5.2/sh-1.sla
inflating: r2ghidra_sleigh-5.5.2/mips64_32_o64.cspec
inflating: r2ghidra_sleigh-5.5.2/ARM_v45.pspec
inflating: r2ghidra_sleigh-5.5.2/mips32R6.pspec
inflating: r2ghidra_sleigh-5.5.2/mips64be.sla
inflating: r2ghidra_sleigh-5.5.2/z180.pspec
inflating: r2ghidra_sleigh-5.5.2/ppc_64_isa_le.sla
inflating: r2ghidra_sleigh-5.5.2/tricore.ldefs
inflating: r2ghidra_sleigh-5.5.2/mips32le.sla
inflating: r2ghidra_sleigh-5.5.2/mips32_fp64.cspec
inflating: r2ghidra_sleigh-5.5.2/z80.sla
inflating: r2ghidra_sleigh-5.5.2/RV64I.pspec
inflating: r2ghidra_sleigh-5.5.2/sh-2.sla
inflating: r2ghidra_sleigh-5.5.2/riscv32-fp.cspec
inflating: r2ghidra_sleigh-5.5.2/x86-16-real.pspec
inflating: r2ghidra_sleigh-5.5.2/mips64micro.pspec
inflating: r2ghidra_sleigh-5.5.2/z182.pspec
inflating: r2ghidra_sleigh-5.5.2/80390.sla
inflating: r2ghidra_sleigh-5.5.2/avr8.ldefs
inflating: r2ghidra_sleigh-5.5.2/TI_MSP430.cspec
inflating: r2ghidra_sleigh-5.5.2/ppc_32_le.cspec
inflating: r2ghidra_sleigh-5.5.2/avr32a.ldefs
inflating: r2ghidra_sleigh-5.5.2/8051.ldefs
inflating: r2ghidra_sleigh-5.5.2/x86-64.sla
inflating: r2ghidra_sleigh-5.5.2/TI_MSP430.pspec
inflating: r2ghidra_sleigh-5.5.2/SparcV9_64.sla
inflating: r2ghidra_sleigh-5.5.2/SparcV9_64.cspec
inflating: r2ghidra_sleigh-5.5.2/ARMt_v45.pspec
inflating: r2ghidra_sleigh-5.5.2/ppc_64_isa_altivec_le.sla
inflating: r2ghidra_sleigh-5.5.2/ARM.ldefs
inflating: r2ghidra_sleigh-5.5.2/RV32IMC.pspec
inflating: r2ghidra_sleigh-5.5.2/ppc_32_be.cspec
inflating: r2ghidra_sleigh-5.5.2/ppc_64_isa_vle_be.sla
inflating: r2ghidra_sleigh-5.5.2/ppc_64_be.sla
inflating: r2ghidra_sleigh-5.5.2/SparcV9.pspec
inflating: r2ghidra_sleigh-5.5.2/x86.sla
inflating: r2ghidra_sleigh-5.5.2/AARCH64_win.cspec
inflating: r2ghidra_sleigh-5.5.2/JVM.ldefs
inflating: r2ghidra_sleigh-5.5.2/6502.sla
inflating: r2ghidra_sleigh-5.5.2/ARM5_le.sla
inflating: r2ghidra_sleigh-5.5.2/ppc.ldefs
inflating: r2ghidra_sleigh-5.5.2/avr8iarV1.cspec
inflating: r2ghidra_sleigh-5.5.2/ARM_v45.cspec
clean Done For r2ghidra
/home/kali/.local/share/radare2/r2pm/db/r2ghidra TGZ=
Cleaning up /home/kali/.local/share/radare2/r2pm/git/r2ghidra...
HEAD is now at 351c48a add keystone dep
Updating 351c48a..5f3220d
Fast-forward
db/r2frida | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
[r2pm] Updating package database /home/kali/.local/share/radare2/r2pm/db ...
Already up to date.
error: pathspec 'r2-5.5.0' did not match any file(s) known to git
Already up to date.
DEPENDS: r2ghidra-sleigh
Tue Dec 28 04:47:23 PM EST 2021
Install Done For r2ghidra
git clone https://github.com/radareorg/ghidra-native
Cloning into 'ghidra-native'...
remote: Enumerating objects: 1935, done.
remote: Counting objects: 100% (1935/1935), done.
remote: Compressing objects: 100% (1044/1044), done.
remote: Total 1935 (delta 680), reused 1887 (delta 637), pack-reused 0
Receiving objects: 100% (1935/1935), 3.17 MiB | 7.90 MiB/s, done.
Resolving deltas: 100% (680/680), done.
cd ghidra-native && git checkout 0.1.4
Note: switching to '0.1.4'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 9d22dfb Add patch to make the 'bad unicode codepoint' less dramatic
gmake -C ghidra-native patch
gmake[1]: Entering directory '/home/kali/.local/share/radare2/r2pm/git/r2ghidra/ghidra-native'
for a in patches/0001-space-after-comma.patch patches/0002-make-sleigharch-public.patch patches/0004-public-fields.patch patches/0005-heritage-crash.patch patches/0015-Support-ARM-AArch64-in-Decompiler.patch patches/0018-Add-FreeBSD-and-OpenBSD-support-6.patch patches/0019-Add-aarch64-to-type-definitions-for-m1-compilation-1.patch patches/0020-Fix-double-free-crash-when-deinitializing-multiple-X.patch patches/0022-Show-noreturn-information-in-function-signature-2.patch patches/0023-Undef-LoadImage-for-windows.patch patches/0024-ignore-symbol-beyond-space.patch patches/0044-bad-unicode-codepoint.patch ; do patch -p1 < $a ; done
patching file src/decompiler/printc.cc
patching file src/decompiler/sleigh_arch.hh
patching file src/decompiler/context.hh
patching file src/decompiler/sleigh.hh
patching file src/decompiler/heritage.cc
patching file src/decompiler/types.h
patching file src/decompiler/types.h
Hunk #1 succeeded at 174 (offset 8 lines).
patching file src/decompiler/xml.cc
patching file src/decompiler/xml.hh
patching file src/decompiler/prettyprint.cc
patching file src/decompiler/prettyprint.hh
patching file src/decompiler/printc.cc
patching file src/decompiler/loadimage.hh
patching file src/decompiler/database.cc
patching file src/decompiler/stringmanage.cc
touch patch.done
gmake[1]: Leaving directory '/home/kali/.local/share/radare2/r2pm/git/r2ghidra/ghidra-native'
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for working directories... current
using prefix '/usr'
checking for c++ compiler... c++
checking for cpp... cpp
checking for git... /usr/bin/git
checking for pkg-config... /usr/bin/pkg-config
Using PKGCONFIG: /usr/bin/pkg-config
checking pkg-config flags for r_core... no
This package is required
gmake: Entering directory '/home/kali/.local/share/radare2/r2pm/git/r2ghidra/src'
g++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/kali/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -c R2Architecture.cpp
g++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/kali/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -c R2LoadImage.cpp
g++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/kali/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -c R2Scope.cpp
g++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/kali/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -c R2TypeFactory.cpp
In file included from R2LoadImage.cpp:3:
R2LoadImage.h:8:10: fatal error: r_core.h: No such file or directory
8 | #include <r_core.h>
| ^~~~~~~~~~
compilation terminated.
In file included from R2Architecture.cpp:3:
R2LoadImage.h:8:10: fatal error: r_core.h: No such file or directory
8 | #include <r_core.h>
| ^~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:81: R2LoadImage.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [Makefile:81: R2Architecture.o] Error 1
In file included from R2Scope.cpp:3:
R2Scope.h:8:10: fatal error: r_types.h: No such file or directory
8 | #include <r_types.h>
| ^~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:81: R2Scope.o] Error 1
R2TypeFactory.cpp:6:10: fatal error: r_core.h: No such file or directory
6 | #include <r_core.h>
| ^~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:81: R2TypeFactory.o] Error 1
gmake: Leaving directory '/home/kali/.local/share/radare2/r2pm/git/r2ghidra/src'
gmake: Entering directory '/home/kali/.local/share/radare2/r2pm/git/r2ghidra/src'
gmake install PLUGDIR= BINDIR=/home/kali/.local/share/radare2/prefix/bin
gmake[1]: Entering directory '/home/kali/.local/share/radare2/r2pm/git/r2ghidra/src'
mkdir -p /home/kali/.local/share/radare2/prefix/bin
cp -f sleighc /home/kali/.local/share/radare2/prefix/bin
cp: cannot stat 'sleighc': No such file or directory
gmake[1]: *** [Makefile:87: install] Error 1
gmake[1]: Leaving directory '/home/kali/.local/share/radare2/r2pm/git/r2ghidra/src'
gmake: *** [Makefile:96: user-install] Error 2
gmake: Leaving directory '/home/kali/.local/share/radare2/r2pm/git/r2ghidra/src'
Note, this folder does not exist: /home/kali/.local/share/radare2/prefix/include
from r2ghidra.
from r2ghidra.
Yeah, but...
pkg-config/kali-rolling,now 0.29.2-1 amd64 [installed]
ls -l /usr/bin/pkg-config
-rwxr-xr-x 2 root root 56240 Apr 21 2020 /usr/bin/pkg-config
So, what else could cause this?
checking for pkg-config... /usr/bin/pkg-config
Using PKGCONFIG: /usr/bin/pkg-config
checking pkg-config flags for r_core... no
from r2ghidra.
This means that pkg-config cant find the r_core.pc file because you installed r2 in a path that is not expected or you didnt installed the dev pckage which contains those files. See pkg-config --cflags r_core
from r2ghidra.
libxxhash is not a mandatory dependency, and this one its actually not requiring pkg-config to work. so not sure how that would fix.
I have updated the r2pm package to fail earilier, so the error message is easier to spot now. pkg-config is the very freedesktop standard to build things on all unix platforms, and i use to think the error message is clear enough and user can always check that line by hand if something goes wrong.
But i have to consider that it's always nice to see a list of dependencies/requirements to build the tool. So i just did that, hope that helps other users :)
thanks for pointing out!
from r2ghidra.
Related Issues (20)
- Linux build errors v5.7.8 HOT 13
- [Install error] cannot stat 'sleighc': No such file or directory HOT 2
- Build errors HOT 1
- Debian build issues HOT 1
- Allow using system pugixml for build HOT 4
- Another debian packaging improvement
- add the boolean check kwarg to the run_command call HOT 1
- RISC-V on windows HOT 14
- How to install on Kali? HOT 4
- Issues with interface with radare2? HOT 7
- Compilation failure on latest radare2 git pull HOT 2
- SleightInit Non-existent context variable: TMode HOT 2
- Build error HOT 8
- Errors updating on Kali Linux ARM64 (latest version of r2) HOT 1
- ‘R_ARCH_INFO_MIN_OP_SIZE’ was not declared in this scope (Error at ArchMap.cpp:242:14) HOT 4
- Different behavior when opening local vs remote files. HOT 3
- Segmentation fault during decompilation HOT 4
- Is it possible to bring ghidra's plug-in in? HOT 1
- Error installing r2ghidra with r2pm HOT 7
- Issue after installing r2ghidra HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r2ghidra.