make debug fails on Mac OSX 10.14.x #222
Closed
opened 5 years ago by rotavele
·
2 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
I have tried to compile with
make debug
on several release tags as well as master. I am not sure if it is an issue with my local configuration, but when Imake debug
on the Monero master branch for instance, it works. I see the same issue on hyc's randomx branch, but not other branches on that repo, so I think it has something to do with the extra params being added to get_block_longhash for the randomx builds, but I am not sure where to look next. If anyone has any insight it would be much appreciated. I want to be able to step through the program with LLDB but I am unable to build with debug symbols.output:
This is an attempt to describe the issue and the location(s) of relevant parts. A solution is not given.
Description of the problem:
The error would appear to indicate that the linker is failing to link
src/cryptonote_basic/libcryptonote_basic.dylib
. Some certain symbols are undefined for the x86_64 architecture, which is odd since I recently built wownero on that architecture without issue. @rotavele: are you sure you have installed all of the dependencies?Symbols in question:
cryptonote::get_block_longhash(cryptonote::Blockchain const*, cryptonote::block const&, crypto::hash&, unsigned long long, int)
and
cryptonote::miner::find_nonce_for_given_block(cryptonote::Blockchain const*, cryptonote::block&, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<128u, 128u, (boost::multiprecision::cpp_integer_type)0, (boost::multiprecision::cpp_int_check_type)0, void>, (boost::multiprecision::expression_template_option)0> const&, unsigned long long)
I have no idea what exact requirements are not being met here.
Relevant clips of code:
cryptonote::get_block_longhash(cryptonote::Blockchain const*, cryptonote::block const&, crypto::hash&, unsigned long long, int)
does not occur in the object built with <src/cryptonote_basic/miner.cpp>, where the linker appears to be looking for it.<src/cryptonote_basic/miner.h>
Line 79:
static bool find_nonce_for_given_block(const get_block_hash_t &gbh, block& bl, const difficulty_type& diffic, uint64_t height);
<src/cryptonote_basic/miner.cpp>
Line 474:
make debug
with latest release builds on mac