Package Details: retdec-bin 5.0-1

Git Clone URL: https://aur.archlinux.org/retdec-bin.git (read-only, click to copy)
Package Base: retdec-bin
Description: RetDec is a retargetable machine-code decompiler based on LLVM.
Upstream URL: https://github.com/avast/retdec
Keywords: avast borland cpp decompiler gcc msvc retdec
Licenses: MIT
Conflicts: retdec
Provides: retdec
Submitter: JulianXhokaxhiu
Maintainer: JulianXhokaxhiu
Last Packager: JulianXhokaxhiu
Votes: 1
Popularity: 0.000000
First Submitted: 2020-08-01 18:08 (UTC)
Last Updated: 2022-12-12 22:57 (UTC)

Latest Comments

JulianXhokaxhiu commented on 2023-12-30 09:46 (UTC)

@MrSoup678 I'll have a look at this as I find some spare time. Thanks

MrSoup678 commented on 2023-12-26 09:25 (UTC)

Somewhat relateed to this package. Trying to create rz-retdec would cause this:

[slawomir@slawomir-hppavilionlaptop15cc5xx build]$ make
make[2]: *** Brak reguł do zrobienia obiektu '/usr/lib/x86_64-linux-gnu/libz.so', wymaganego przez 'src/rz-plugin/core_retdec.so'. Stop.
make[1]: *** [CMakeFiles/Makefile2:151: src/rz-plugin/CMakeFiles/core_retdec.dir/all] Błąd 2
make: *** [Makefile:136: all] Błąd 2
[slawomir@slawomir-hppavilionlaptop15cc5xx build]$ make clean
[slawomir@slawomir-hppavilionlaptop15cc5xx build]$ LANG=C make
[  7%] Building CXX object src/rz-plugin/CMakeFiles/core_retdec.dir/rzretdec.cpp.o
[ 14%] Building CXX object src/rz-plugin/CMakeFiles/core_retdec.dir/data.cpp.o
[ 21%] Building CXX object src/rz-plugin/CMakeFiles/core_retdec.dir/utils.cpp.o
[ 28%] Building CXX object src/rz-plugin/CMakeFiles/core_retdec.dir/cgen.cpp.o
[ 35%] Building CXX object src/rz-plugin/CMakeFiles/core_retdec.dir/console/console.cpp.o
[ 42%] Building CXX object src/rz-plugin/CMakeFiles/core_retdec.dir/console/data_analysis.cpp.o
[ 50%] Building CXX object src/rz-plugin/CMakeFiles/core_retdec.dir/console/decompiler.cpp.o
[ 57%] Building CXX object src/rz-plugin/CMakeFiles/core_retdec.dir/registration.cpp.o
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libz.so', needed by 'src/rz-plugin/core_retdec.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:151: src/rz-plugin/CMakeFiles/core_retdec.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Found the problem:

set_target_properties(retdec::deps::llvm PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/retdec"
  INTERFACE_LINK_LIBRARIES "retdec::deps::llvm-libs;Threads::Threads;/usr/lib/x86_64-linux-gnu/libz.so;dl"
  INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "include/retdec"
)

this is present in retdec-llvm-targets.cmake. We need to patch this for it to function.