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

Link error after compile on M1 Mac OS #226

Open
kr1z1s opened this issue Jan 4, 2023 · 0 comments
Open

Link error after compile on M1 Mac OS #226

kr1z1s opened this issue Jan 4, 2023 · 0 comments

Comments

@kr1z1s
Copy link

kr1z1s commented Jan 4, 2023

Apple ARM64 platform. Latest Mac Os Ventura 13.1 and latest BREW systems.
Compilation of dependencies and the main code goes fine.
But after starting code linking got error

CXXLD vertcoin-tx
Undefined symbols for architecture arm64:
"LogInstance()", referenced from:
VerthashDatFile::CreateMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
void LogPrintf_<>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, char const*) in libbitcoinconsensus_la-verthash_datfile.o
Verthash::VerifyDatFile() in libbitcoinconsensus_la-verthash.o
"Params()", referenced from:
CBlockHeader::GetPoWHash(int) const in libbitcoinconsensus_la-block.o
"CBaseChainParams::MAIN", referenced from:
CBlockHeader::GetPoWHash(int) const in libbitcoinconsensus_la-block.o
"CBaseChainParams::REGTEST", referenced from:
CBlockHeader::GetPoWHash(int) const in libbitcoinconsensus_la-block.o
"CBaseChainParams::TESTNET", referenced from:
CBlockHeader::GetPoWHash(int) const in libbitcoinconsensus_la-block.o
"BCLog::Logger::LogPrintStr(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::_1::allocator > const&, int)", referenced from:
VerthashDatFile::CreateMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
void LogPrintf
<>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, char const*) in libbitcoinconsensus_la-verthash_datfile.o
Verthash::VerifyDatFile() in libbitcoinconsensus_la-verthash.o
"boost::filesystem::path::operator/=(boost::filesystem::path const&)", referenced from:
VerthashDatFile::DeleteMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
VerthashDatFile::CreateMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
Verthash::VerifyDatFile() in libbitcoinconsensus_la-verthash.o
Verthash::LoadInRam() in libbitcoinconsensus_la-verthash.o
Verthash::Hash(char const*, char*) in libbitcoinconsensus_la-verthash.o
"boost::filesystem::detail::remove(boost::filesystem::path const&, boost::system::error_code*)", referenced from:
VerthashDatFile::DeleteMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
"boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)", referenced from:
VerthashDatFile::DeleteMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
VerthashDatFile::CreateMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
Verthash::VerifyDatFile() in libbitcoinconsensus_la-verthash.o
Verthash::LoadInRam() in libbitcoinconsensus_la-verthash.o
Verthash::Hash(char const*, char*) in libbitcoinconsensus_la-verthash.o
"fsbridge::fopen(boost::filesystem::path const&, char const*)", referenced from:
NewGraph(long long, boost::filesystem::path const&, unsigned char*) in libbitcoinconsensus_la-verthash_datfile.o
Verthash::VerifyDatFile() in libbitcoinconsensus_la-verthash.o
Verthash::LoadInRam() in libbitcoinconsensus_la-verthash.o
Verthash::Hash(char const*, char*) in libbitcoinconsensus_la-verthash.o
"ArgsManager::GetDataDir(bool) const", referenced from:
VerthashDatFile::DeleteMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
VerthashDatFile::CreateMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
Verthash::VerifyDatFile() in libbitcoinconsensus_la-verthash.o
Verthash::LoadInRam() in libbitcoinconsensus_la-verthash.o
Verthash::Hash(char const*, char*) in libbitcoinconsensus_la-verthash.o
"_gArgs", referenced from:
VerthashDatFile::DeleteMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
VerthashDatFile::CreateMiningDataFile() in libbitcoinconsensus_la-verthash_datfile.o
Verthash::VerifyDatFile() in libbitcoinconsensus_la-verthash.o
Verthash::LoadInRam() in libbitcoinconsensus_la-verthash.o
Verthash::Hash(char const*, char*) in libbitcoinconsensus_la-verthash.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libbitcoinconsensus.la] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

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

1 participant