RFC: Boost Process requires boost::filesystem when compiling with mingw #24036

issue hebasto opened this issue on January 11, 2022
  1. hebasto commented at 3:14 PM on January 11, 2022: member

    Working on "Use std::filesystem. Remove Boost Filesystem & System" #20744, I found an unfortunate pitfall -- boost/process.hpp depends on boost::filesystem when cross-compiling for Windows. It happens in Guix environment as well.

    The goal of this issue is to discuss and find a solution to get rid of boost::filesystem.

  2. hebasto added the label Brainstorming on Jan 11, 2022
  3. hebasto added the label Windows on Jan 11, 2022
  4. laanwj commented at 4:14 PM on January 11, 2022: member

    Is it a problem that something uses boost::filesystem? Does it conflicts with our own (non-use), or is it a lot of extra code to build? At least it could be specifically gated for the windows build.

    In the longer run boost::process could be replaced with another library, or some own solution. It doesn't seem like rocket science though it is tricky to get right in a cross-platform way (especially windows, I guess :smile:)

  5. hebasto commented at 4:22 PM on January 11, 2022: member

    Cross-compiling is successful only when a build system has been configured with --disable-external-signer.

  6. hebasto cross-referenced this on Jan 12, 2022 from issue Use std::filesystem. Remove Boost Filesystem & System by fanquake
  7. fanquake cross-referenced this on Jan 14, 2022 from issue build: explicitly disable support for external signing on Windows by fanquake
  8. fanquake closed this on Jan 20, 2022

  9. bitcoin locked this on Jan 20, 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-05-20 06:53 UTC