Bitcoin core will not compile on Windows 11 #25195

issue LordOfDisdain opened this issue on May 24, 2022
  1. LordOfDisdain commented at 7:37 AM on May 24, 2022: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! Any report, issue or feature request related to the GUI should be reported at https://github.com/bitcoin-core/gui/issues/ -->

    <!-- Describe the issue -->

    I have ran into several issues during my compiling of Bitcoin. I have tried to compile this thing but each time I try to do so, there is a new issue. For reference I am using Ubuntu Bash terminal to compile Bitcoin. My operating system is Windows 11 and I have tried everything I know to troubleshoot this issue. I have downloaded clang, mingw g++ and I will attach the a photo to explain this issue. Each time I try to use the ./configure, ./autogen.sh and sudo make, there seems to be issues and this will not compile at all. Any help will be greatly appreciated. Thank you! PS. I have also created a virtual environment and I have installed the necessary tools for it as well. Bitcoin Error

    <!--- What behavior did you expect? --> I expected the Bitcoin Core to compile.

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? --> The version of Bitcoin core is version 23.0 I have forked it from the bitcoin GitHub Bitcoin page.

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? --> I am using an ASUS X555Y series Laptop.

    <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? --> My operating system is Windows 11.

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

    config.log

  2. hebasto commented at 7:50 AM on May 24, 2022: member

    I have also created a virtual environment

    Do you mean WSL?

  3. LordOfDisdain commented at 12:30 PM on May 24, 2022: none

    WSL? I'm lost with the acronyms at times.

    I have also created a virtual environment

    Do you mean WSL?

  4. hebasto commented at 12:35 PM on May 24, 2022: member

    @LordOfDisdain

    I mean, there are two supported ways to build Bitcoin Core on Windows:

    • using Windows Subsystem for Linux (WSL)
    • using Microsoft VS tools

    I was trying to understand what does "using Ubuntu Bash terminal to compile Bitcoin" mean exactly...

  5. LordOfDisdain commented at 12:53 PM on May 24, 2022: none

    @LordOfDisdain

    I mean, there are two supported ways to build Bitcoin Core on Windows:

    * using Windows Subsystem for Linux (WSL)
    
    * using Microsoft VS tools

    I was trying to understand what does "using Ubuntu Bash terminal to compile Bitcoin" mean exactly...

    I understand now. I was using the WSL because my OS is Windows 11.

  6. hebasto commented at 1:14 PM on May 24, 2022: member

    Ok. From you screenshot it is not clear if you follow https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md#building-for-64-bit-windows, especially, building depends

    cd depends
    make HOST=x86_64-w64-mingw32
    cd ..
    

    ?

  7. LordOfDisdain commented at 3:15 PM on May 24, 2022: none

    Ok. From you screenshot it is not clear if you follow https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md#building-for-64-bit-windows, especially, building depends

    cd depends
    make HOST=x86_64-w64-mingw32
    cd ..
    

    ?

    I did not follow that. I will look into that and if I have some issues I will update this issue list. Thanks!

  8. hebasto commented at 3:20 PM on May 24, 2022: member

    Closing for now. Feel free to reopen this issue at anytime.

  9. hebasto closed this on May 24, 2022

  10. hebasto added the label Questions and Help on May 24, 2022
  11. hebasto added the label Windows on May 24, 2022
  12. LordOfDisdain commented at 6:51 AM on May 25, 2022: none

    I am still having issues with the install. I always get this error MakeFile: 741. I'll attach the config log. Also I have one other question. How do I use this bash script exactly: PATH=$(echo "$PATH" | sed -e 's/:/mnt.*//g') # strip out problematic Windows %PATH% imported var sudo bash -c "echo 0 > /proc/sys/fs/binfmt_misc/status" # Disable WSL support for Win32 applications. cd depends make HOST=x86_64-w64-mingw32 cd .. ./autogen.sh CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/ make # use "-j N" for N parallel jobs sudo bash -c "echo 1 > /proc/sys/fs/binfmt_misc/status" # Enable WSL support for Win32 applications.

    Do I use that in the configure script or am I misunderstanding something. Any help will be appreciated. Thanks!

  13. LordOfDisdain commented at 6:53 AM on May 25, 2022: none

    Here is the config log! My apologizes for not attaching it in the prior message. Uploading config.log…

  14. DrahtBot locked this on May 25, 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-17 03:13 UTC

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