Make on windows not working #10856

issue MattyAB openend this issue on July 17, 2017
  1. MattyAB commented at 8:51 pm on July 17, 2017: none
    1. Install Ubuntu for Windows as stated in this post
    2. Run ~sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils curl ~sudo apt-get install g++-mingw-w64-x86-64 mingw-w64-x86-64-dev ~cd depends ~make HOST=x86_64-w64-mingw32
    3. At the last command, it gives an error.

    Expected behaviour

    The make command functioning properly

    Actual behaviour

    The make throws an error.

    Screenshots.

    image

    What version of bitcoin-core are you using?

    Commit no. 0b01935

    Machine specs:

    PC:

    • OS: Windows 10
    • CPU: i7 6700
    • RAM: 6GB
    • SSD storing OS: 250GB
    • HDD storing clone of this repo: 3TB

    Laptop:

    • OS: Windows 10
    • CPU: i5 3210M
    • RAM: 6GB
    • Disk size: 250GB
    • Disk Type: SSD

    I ran this with both my computers, and the error was the same on both. The specs of each are listed above.

  2. fanquake added the label Windows on Jul 18, 2017
  3. mfiumara commented at 10:10 am on July 21, 2017: none

    If you use sudo make the problem with the syntax error will be solved.

    You will encounter a different problem, namely that automake-1.14 is not installed, even though a newer version is installed.

  4. laanwj commented at 1:31 pm on July 21, 2017: member
    This issue is a duplicate of #10269.
  5. laanwj marked this as duplicate on Jul 21, 2017
  6. TheBlueMatt commented at 4:12 pm on July 23, 2017: member
    Given all the bugs filed/issues related to “Ubuntu on Windows”, I think we should just explicitly not support it at this point and if someone shows up who wants to support it, then we can reconsider. For now it seems like at every turn there are fresh bugs in this stuff, and until Microsoft gets their act together, you’re better off just building natively on Windows MSVC.
  7. MattyAB commented at 4:21 pm on July 23, 2017: none
    Yep, fair enough. I didn’t actually know it was possible to build it on MSVC, I’ll have a look into that. Is there any documentation for building Bitcoin on MSVC? If not, I’ll see if I can get it working and then write a guide.
  8. brianmcmichael commented at 1:47 pm on July 24, 2017: contributor

    I was able to build binaries on WSL using #10889 and #10899

    I’m willing to help debug Win10 issues as they arise in my off-hours.

  9. TheBlueMatt commented at 7:51 pm on July 25, 2017: member
    @brianmcmichael awesome, thanks!
  10. laanwj commented at 12:03 pm on July 27, 2017: member

    you’re better off just building natively on Windows MSVC.

    That’s a lot of work! You’ll have to effectively make your own build system, and there might even be code changes necessary (unsure if that’s still the case).

    Cross-compiling from Ubuntu 14.04 (non-Ubuntu-on-windows) is still the recommended, and easiest way, and also how releases get built.

  11. sunnyday845 commented at 7:42 am on August 16, 2017: none

    Hi, New dev here, tried compiling and got here after errors. Wanted to weigh in and say that this…

    Cross-compiling from Ubuntu 14.04 (non-Ubuntu-on-windows) is still the recommended, and easiest way, and also how releases get built.

    … should be in /doc/build-windows.md until the situation changes. Right now, to a newcomer, WSL is referenced as a supported tool for building on Windows.

    Thanks!

  12. fanquake commented at 6:10 am on August 19, 2017: member
    Closing as a duplicate of #10269. Can any further comments please be made in that thread.
  13. fanquake closed this on Aug 19, 2017

  14. 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: 2024-11-22 12:12 UTC

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