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

Macos 13.5 cmake error #57

Open
lxyeternal opened this issue Aug 19, 2023 · 2 comments
Open

Macos 13.5 cmake error #57

lxyeternal opened this issue Aug 19, 2023 · 2 comments

Comments

@lxyeternal
Copy link

lxyeternal commented Aug 19, 2023

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

@JusticeRage
Copy link
Owner

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

@lxyeternal
Copy link
Author

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

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