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

Cross compile for x86_64-win fails to compile without "--disable-shared" #180

Open
alamshafil opened this issue Sep 20, 2022 · 0 comments
Open
Labels
bug Something isn't working test QA testing system

Comments

@alamshafil
Copy link
Contributor

x86_64-win with PoW cache from #168 will not build unless --disable-shared is passed to the configure script. This is the error:

/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-block.o:block.cpp:(.text+0x1576): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text+0xa34): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text+0xe2a): undefined reference to `ArgsManager::GetArg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long long) const'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text+0xeb0): undefined reference to `ArgsManager::GetArg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long long) const'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text+0x131b): undefined reference to `GetDataDir(bool)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA5_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcDpRKT_[_Z5errorIJA5_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcDpRKT_]+0x3f1): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA5_cPKcEEbS2_DpRKT_[_Z5errorIJA5_cPKcEEbS2_DpRKT_]+0x3f1): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA5_cEEbPKcDpRKT_[_Z5errorIJA5_cEEbPKcDpRKT_]+0x107): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA6_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcDpRKT_[_Z5errorIJA6_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcDpRKT_]+0x3f1): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA6_cPKcEEbS2_DpRKT_[_Z5errorIJA6_cPKcEEbS2_DpRKT_]+0x3f1): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x33): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x86): undefined reference to `Params()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x247): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x30b): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x478): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x7a0): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x31): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x569): undefined reference to `Params()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x5b3): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x685): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x793): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x885): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x986): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x14d3): undefined reference to `GetTimeMillis()'
make[2]: Leaving directory '/home/runner/work/Avian/Avian/src'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x36): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x115): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x240): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x37d): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x438): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
make[1]: Leaving directory '/home/runner/work/Avian/Avian/src'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x52b): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x619): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x71b): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x8e3): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x1716): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.rdata$.refptr.logCategories[.refptr.logCategories]+0x0): undefined reference to `logCategories'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.rdata$.refptr.gArgs[.refptr.gArgs]+0x0): undefined reference to `gArgs'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:5831: libavianconsensus.la] Error 1
make[1]: *** [Makefile:15961: install-recursive] Error 1
make: *** [Makefile:753: install-recursive] Error 1
@alamshafil alamshafil added bug Something isn't working test QA testing system labels Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working test QA testing system
Projects
None yet
Development

No branches or pull requests

1 participant