Boost does not support MinGW, hence, bitcoin cannot be compiled with MinGW #4128

issue kostaz opened this issue on May 5, 2014
  1. kostaz commented at 12:56 PM on May 5, 2014: contributor

    Hi all,

    Question As I understand from boost.org, MinGW in not supported, that is, if Boost library (or program using Boost) is compiled with MinGW, then it is unstable. Is it correct? If it is, then what is going on with bitcoin (it is compiled on Windows with MinGW)?

    Excerpt from www.boost.org (http://www.boost.org/doc/libs/1_55_0/more/getting_started/windows.html#pch):

    "A note to Cygwin and MinGW users

    If you plan to use your tools from the Windows command prompt, you're in the right place. If you plan to build from the Cygwin bash shell, you're actually running on a POSIX platform and should follow the instructions for getting started on Unix variants. Other command shells, such as MinGW's MSYS, are not supported—they may or may not work."

    Does it mean that bitcoin can be compiled on Windows only using cygwin?

    Thanks, --- Kosta

  2. sipa commented at 1:02 PM on May 5, 2014: member

    "Not supported" does not mean "does not work" or "is unstable". It just means that the Boost team doesn't do quality assurance for that platform.

    We do build Windows releases using mingw/msys, but control which Boost version is used, and test versions specifically.

  3. laanwj commented at 1:37 PM on May 5, 2014: member

    It's certainly possible to compile it in mingw. For the release builds, we use a mingw cross-compiler.

    Boost is also compiled using mingw, we do need to apply this patch: https://svn.boost.org/trac/boost/raw-attachment/ticket/7262/boost-mingw.patch

    No idea if that is also necessary if you're building from windows. No one except @diapolo is doing that AFAIK.

  4. leofidus commented at 1:52 PM on May 5, 2014: none

    I'm building with mingw/msys on windows with the setup from the bitcointalk thread without problems (except for the unit tests not compiling) and without patches.

    There are even precompiled dependencies here (but with Berkley DB 5.1 since Dogecoin switched to that with the switch to Bitcoin 0.9).

  5. Diapolo commented at 2:00 PM on May 5, 2014: none

    Works perfectly for me, I have to edit 2 of the files (bootstrap.bat and tools\build\v2\engine\build.bat) to make sure it's using gcc instead of msvc. Have been using this for ages!

  6. kostaz commented at 5:11 PM on May 5, 2014: contributor

    Ok. Got it - MinGW is supported by Boost and, hence, by Bitcoin. But what about the boost's patch (https://svn.boost.org/trac/boost/raw-attachment/ticket/7262/boost-mingw.patch)? I though there are some formal agreed upon procedure... is there?

  7. laanwj commented at 6:01 PM on May 5, 2014: member

    Well according to the people with actual experience building on Windows you don't need that patch. We just need it for cross compilation from Linux.

  8. kostaz commented at 6:14 PM on May 5, 2014: contributor

    Ok. Thanks. Closing the issue.

  9. kostaz closed this on May 5, 2014

  10. sidhujag referenced this in commit 66636dbcdb on May 12, 2021
  11. MarcoFalke locked this on Sep 8, 2021

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-15 15:15 UTC

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