Cross Compiling bitcoind fails with fatal error with Ubuntu 18.04 on Windows #24248

issue BTCFranky opened this issue on February 3, 2022
  1. BTCFranky commented at 10:53 AM on February 3, 2022: none

    :~/bitcoin$ make HOST=x86_64-w64-mingw32 Making all in src make[1]: Entering directory '/home/frank/bitcoin/src' make[2]: Entering directory '/home/frank/bitcoin/src' make[3]: Entering directory '/home/frank/bitcoin' make[3]: Leaving directory '/home/frank/bitcoin' CXX primitives/libbitcoinconsensus_la-transaction.lo In file included from primitives/transaction.cpp:11:0: ./util/strencodings.h:16:10: fatal error: charconv: No such file or directory #include <charconv> ^~~~~~~~~~ compilation terminated. Makefile:12722: recipe for target 'primitives/libbitcoinconsensus_la-transaction.lo' failed make[2]: *** [primitives/libbitcoinconsensus_la-transaction.lo] Error 1 make[2]: Leaving directory '/home/frank/bitcoin/src' Makefile:16761: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/frank/bitcoin/src' Makefile:817: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1

  2. BTCFranky added the label Bug on Feb 3, 2022
  3. MarcoFalke commented at 12:50 PM on February 3, 2022: member

    What are the steps to reproduce? Are you using build-windows.md?

  4. fanquake removed the label Bug on Feb 3, 2022
  5. fanquake commented at 11:26 PM on February 3, 2022: member

    ./util/strencodings.h:16:10: fatal error: charconv: No such file or directory

    This means you aren't using a C++17 compiler. g++-mingw-w64 in Bionic is backed by GCC 7.3.0, which doesn't meet the requirements (GCC 8.1+) to build master (I assume that's what you're building).

  6. fanquake closed this on Feb 3, 2022

  7. DrahtBot locked this on Feb 3, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me