-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
debug build links monerod with internal libraries which are not installed. #8133
Comments
https://github.com/monero-project/monero/blob/master/CMakeLists.txt#L465-L475 Could be these lines? |
This is intentional. Debug builds are for debugging. The internal libs are built as shared libs so that if any of them needs to be changed, no time is wasted relinking all the resulting executables. None of these are meant to be run anywhere besides the build tree. |
Stack traces in log file without debugging info is useless... |
Irrelevant. There is no need to install a debug binary, just run it from the build tree. |
Then stack traces must be turned off in release build, as they take time (monerod consumes 100% of one core when stacktrace is being printed out to log) and, again, useless in release build. And CMake looks for libunwind unconditionally... |
Does your monerod work fine if you disable stack traces? I don't think your issues are related to the printing of stack traces. |
I'm trying to build
monerod
with debug information on FreeBSD 12 (amd64/x86_64) withcmake
andninja
.When I build release build (
-DCMAKE_BUILD_TYPE:STRING="Release"
) I getmonerod
linked only with "system" shared libraries and everything works:When I build debug build (
-DCMAKE_BUILD_TYPE:STRING="Debug"
) I getmonerod
linked with "system" and internal shared libraries, which are not installed, andmonerod
can not be started:diff with stripped addresses is:
The text was updated successfully, but these errors were encountered: