radareorg / r2retdec

RetDec plugin for Radare2
https://retdec.com/
MIT License
124 stars 24 forks source link

Installation via r2pm on Ubuntu 18.04 #22

Closed enovella closed 2 years ago

enovella commented 4 years ago
[ 33%] Building CXX object _deps/retdec-build/src/loader/CMakeFiles/loader.dir/loader/pe/pe_image.cpp.o
[ 33%] Building CXX object _deps/retdec-build/src/cpdetect/CMakeFiles/cpdetect.dir/heuristics/elf_heuristics.cpp.o
[ 67%] Built target llvmir2hll
[ 67%] Building CXX object _deps/retdec-build/src/cpdetect/CMakeFiles/cpdetect.dir/heuristics/heuristics.cpp.o
[ 68%] Building CXX object _deps/retdec-build/src/loader/CMakeFiles/loader.dir/loader/coff/coff_image.cpp.o
CMakeFiles/ar-extractortool.dir/ar_extractor.cpp.o: In function `processArguments(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)':
ar_extractor.cpp:(.text+0x1927): undefined reference to `std::experimental::filesystem::v1::status(std::experimental::filesystem::v1::__cxx11::path const&)'
CMakeFiles/ar-extractortool.dir/ar_extractor.cpp.o: In function `std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
ar_extractor.cpp:(.text._ZNSt12experimental10filesystem2v17__cxx114pathC2INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EERKT_[_ZNSt12experimental10filesystem2v17__cxx114pathC5INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EERKT_]+0x68): undefined reference to `std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
../ar-extractor/libretdec-ar-extractor.a(archive_wrapper.cpp.o): In function `retdec::ar_extractor::ArchiveWrapper::extract(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':
archive_wrapper.cpp:(.text+0x5f6d): undefined reference to `std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
archive_wrapper.cpp:(.text+0x5f75): undefined reference to `std::experimental::filesystem::v1::status(std::experimental::filesystem::v1::__cxx11::path const&)'
collect2: error: ld returned 1 exit status
_deps/retdec-build/src/ar-extractortool/CMakeFiles/ar-extractortool.dir/build.make:122: recipe for target '_deps/retdec-build/src/ar-extractortool/retdec-ar-extractor' failed
make[2]: *** [_deps/retdec-build/src/ar-extractortool/retdec-ar-extractor] Error 1
CMakeFiles/Makefile2:696: recipe for target '_deps/retdec-build/src/ar-extractortool/CMakeFiles/ar-extractortool.dir/all' failed
make[1]: *** [_deps/retdec-build/src/ar-extractortool/CMakeFiles/ar-extractortool.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 68%] Building CXX object _deps/retdec-build/src/loader/CMakeFiles/loader.dir/loader/segment.cpp.o
[ 68%] Building CXX object _deps/retdec-build/src/loader/CMakeFiles/loader.dir/loader/intel_hex/intel_hex_image.cpp.o
[ 68%] Building CXX object _deps/retdec-build/src/loader/CMakeFiles/loader.dir/loader/macho/macho_image.cpp.o
[ 68%] Building CXX object _deps/retdec-build/src/cpdetect/CMakeFiles/cpdetect.dir/heuristics/macho_heuristics.cpp.o
[ 68%] Linking CXX executable retdec-getsig
[ 68%] Building CXX object _deps/retdec-build/src/cpdetect/CMakeFiles/cpdetect.dir/heuristics/pe_heuristics.cpp.o
[ 68%] Building CXX object _deps/retdec-build/src/loader/CMakeFiles/loader.dir/loader/raw_data/raw_data_image.cpp.o
[ 68%] Building CXX object _deps/retdec-build/src/loader/CMakeFiles/loader.dir/loader/segment_data_source.cpp.o
[ 68%] Building CXX object _deps/retdec-build/src/cpdetect/CMakeFiles/cpdetect.dir/cpdetect.cpp.o
[ 68%] Building CXX object _deps/retdec-build/src/cpdetect/CMakeFiles/cpdetect.dir/cptypes.cpp.o
[ 68%] Building CXX object _deps/retdec-build/src/loader/CMakeFiles/loader.dir/loader/elf/elf_image.cpp.o
[ 68%] Built target getsig
[ 69%] Building CXX object _deps/retdec-build/src/cpdetect/CMakeFiles/cpdetect.dir/errors.cpp.o
[ 69%] Building CXX object _deps/retdec-build/src/cpdetect/CMakeFiles/cpdetect.dir/search.cpp.o
[ 69%] Building CXX object _deps/retdec-build/src/cpdetect/CMakeFiles/cpdetect.dir/signature.cpp.o
[ 69%] Linking CXX static library libretdec-patterngen.a
[ 69%] Built target patterngen
[ 69%] Linking CXX static library libretdec-loader.a
[ 69%] Built target loader
[ 69%] Linking CXX static library libretdec-cpdetect.a
[ 69%] Built target cpdetect
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
xkubov commented 4 years ago

Hi, thanks for the report. This is related to https://github.com/avast/retdec/issues/842. After this is solved in RetDec I will update version in master and let you know.

In a meanwhile, if you want to r2pm -i succeed you can do:

$ export CMAKE_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/ $ r2pm -i retdec-r2plugin

apkunpacker commented 4 years ago

same error occur on android termux but there is no path of ( CMAKE_LIBRARY_PATH=/usr/lib/gcc/ ) as gcc is removed from termux , clang is available but no idea if retdec support that on not

trufae commented 2 years ago

dupe o other tickets complaining about the same. will do a release when it builds again