Manalyze icon indicating copy to clipboard operation
Manalyze copied to clipboard

Macos 13.5 cmake error

Open lxyeternal opened this issue 1 year ago • 2 comments

ld: unknown option: -rpath=$ORIGIN clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [bin/manalyze] Error 1 make[1]: *** [CMakeFiles/manalyze.dir/all] Error 2 make: *** [all] Error 2

lxyeternal avatar Aug 19 '23 06:08 lxyeternal

Hi! Thanks for your report. Would you be able to provide more context? Is this the full output related to the error?

JusticeRage avatar Aug 19 '23 10:08 JusticeRage

My computer environment is as follows: Intel Core i5 Macos 13.5

When I run this command (cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ && make -j5) will report the error. The error context is as fellow:

1 warning generated. [ 93%] Building CXX object CMakeFiles/manalyze.dir/plugins/plugin_packer_detection.cpp.o 2 warnings generated. [ 94%] Building CXX object CMakeFiles/manalyze.dir/plugins/plugin_imports.cpp.o /Users/blue/Downloads/Manalyze/src/plugin_framework/plugin_manager.cpp:36:44: warning: 'basename' is deprecated: Use path::stem() instead [-Wdeprecated-declarations] std::string libname = boost::filesystem::basename(path); ^ /usr/local/include/boost/filesystem/convenience.hpp:34:1: note: 'basename' has been explicitly marked deprecated here BOOST_FILESYSTEM_DETAIL_DEPRECATED("Use path::stem() instead") ^ /usr/local/include/boost/filesystem/config.hpp:73:49: note: expanded from macro 'BOOST_FILESYSTEM_DETAIL_DEPRECATED' #define BOOST_FILESYSTEM_DETAIL_DEPRECATED(msg) BOOST_DEPRECATED(msg) ^ /usr/local/include/boost/config/compiler/clang.hpp:342:46: note: expanded from macro 'BOOST_DEPRECATED' #define BOOST_DEPRECATED(msg) attribute((deprecated(msg))) ^ [ 95%] Linking CXX shared library bin/libplugin_virustotal.dylib 1 warning generated. [ 96%] Building CXX object CMakeFiles/manalyze.dir/plugins/plugin_resources.cpp.o [ 96%] Built target plugin_virustotal [ 97%] Building CXX object CMakeFiles/manalyze.dir/plugins/plugin_mitigation.cpp.o 2 warnings generated. [ 98%] Building CXX object CMakeFiles/manalyze.dir/plugins/plugin_overlay.cpp.o [100%] Linking CXX executable bin/manalyze ld: unknown option: -rpath=$ORIGIN clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [bin/manalyze] Error 1 make[1]: *** [CMakeFiles/manalyze.dir/all] Error 2 make: *** [all] Error 2

lxyeternal avatar Aug 19 '23 16:08 lxyeternal