vertcoin-project / vertcoin-core

A digital currency with mining decentralisation and ASIC resistance as a key focus
https://vertcoin.org
MIT License
350 stars 134 forks source link

Link error after compile on M1 Mac OS #226

Open kr1z1s opened 1 year ago

kr1z1s commented 1 year ago

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-verthashdatfile.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-verthashdatfile.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