Draft
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
i want to link
nano-nodeagainst shared libraries, to speed up the build processso effectively, i have reverted #4030 (and some other commits)
this PR should not be merged in its current form
because most package managers dont allow pinning dependencies like nix or guix
ideally, there should be a build option like
USE_SHARED_LIBSand the
CMakeLists.txtshould have separate branches for static or shared buildError: logging should be initialized before creating a logger
fixed: runtime error: Error: logging should be initialized before creating a logger
the build is passing, but now i get this error on runtime... ideas?
it works as expected with the nano-node with gitmodules build
(nixpkgs has only
nano-walletbut not the fullnano-node, dont ask me why)my build script is nano-node.nix
you will need nix to run that build script
it seems like
nano::logger::initializeis not callednano::loggerwas added in #4375 by @pwojcikdevnano/lib/logging.cpp
so
nano::logger::loggerfailsbut
nano::logger::initializeshould be called fromnano/nano_wallet/entry.cppbacktrace
so
nano::logger::loggeris called bynano/nano_wallet/entry.cpp
im surprised that this works in the original version (does it?)
ldd
backport to V26.0
i tried to backport this patch to V26.0 as a workaround for #4680 (comment)
but this fails to build with dynamic boost libraries
see also #269
boost::logwas removed in #4030 = V26.1and without
boost::logthe build just works with dynamic boost libraries