Error during compiling Bitcoin on Windows Subsystem for Linux #11093

issue tkaczorro opened this issue on August 19, 2017
  1. tkaczorro commented at 5:56 AM on August 19, 2017: none

    Hi, I am trying to compile Bitcoin Core on Windows Subsystem for Linux and I am stuck at the following step:

    cd depends make HOST=x86_64-w64-mingw32

    I got the error message:

    : not foundess: 4: ./config.guess: : not foundess: 6: ./config.guess: : not foundess: 33: ./config.guess: : not foundess: 34: ./config.guess: : not foundess: 36: ./config.guess: : not foundess: 48: ./config.guess: : not foundess: 57: ./config.guess: : not foundess: 60: ./config.guess: ./config.guess: 63: ./config.guess: Syntax error: word unexpected (expecting "in") : not foundb: 4: ./config.sub: : not foundb: 6: ./config.sub: : not foundb: 26: ./config.sub: : not foundb: 27: ./config.sub: : not foundb: 34: ./config.sub: : not foundb: 37: ./config.sub: : not foundb: 45: ./config.sub: : not foundb: 52: ./config.sub: : not foundb: 54: ./config.sub: : not foundb: 66: ./config.sub: : not foundb: 74: ./config.sub: : not foundb: 77: ./config.sub: ./config.sub: 80: ./config.sub: Syntax error: word unexpected (expecting "in") : not foundess: 4: ./config.guess: : not foundess: 6: ./config.guess: : not foundess: 33: ./config.guess: : not foundess: 34: ./config.guess: : not foundess: 36: ./config.guess: : not foundess: 48: ./config.guess: : not foundess: 57: ./config.guess: : not foundess: 60: ./config.guess: ./config.guess: 63: ./config.guess: Syntax error: word unexpected (expecting "in") : not foundb: 4: ./config.sub: : not foundb: 6: ./config.sub: : not foundb: 26: ./config.sub: : not foundb: 27: ./config.sub: : not foundb: 34: ./config.sub: : not foundb: 37: ./config.sub: : not foundb: 45: ./config.sub: : not foundb: 52: ./config.sub: : not foundb: 54: ./config.sub: : not foundb: 66: ./config.sub: : not foundb: 74: ./config.sub: : not foundb: 77: ./config.sub: ./config.sub: 80: ./config.sub: Syntax error: word unexpected (expecting "in") Makefile:72: hosts/.mk: No such file or directory Makefile:74: builders/.mk: No such file or directory /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Makefile: not found /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected /bin/sh: 1: Syntax error: "|" unexpected make: config.site.in: Command not found /bin/sh: 1: Syntax error: "|" unexpected make: config.site.in: Command not found /bin/sh: 1: Syntax error: "|" unexpected make: *** No rule to make target 'builders/.mk'. Stop.

    I am not a Linux user nor developer so I don't know what this means. I just want to run Bitcoin Core to learn raw Bitcoin protocol.

    Thanks in advance for any help.

    Expected behaviour

    Should not return error.

    What version of bitcoin-core are you using?

    0.14.2

    Machine specs:

    • OS: Windows 10
    • CPU: Intel i7-6800K
    • RAM: 16 GB
    • Disk size: 1 TB
    • Disk Type (HD/SDD): SSD
  2. fanquake added the label Windows on Aug 19, 2017
  3. fanquake commented at 6:09 AM on August 19, 2017: member

    Looks like a duplicate of #10269, see that issue for a possible fix.

  4. fanquake closed this on Aug 19, 2017

  5. scubaMaster commented at 7:28 AM on September 15, 2017: none

    The same error still occurs - #10269 is not really a duplicate, but even with the updated path variable and updated and upgraded apt-get it still generates the errors tkaczorro described (with a download from today). What is the suggested fix?

  6. lorenzo-dev1 commented at 7:18 PM on September 26, 2017: none

    same here, still got this error

  7. jonasschnelli commented at 2:46 AM on September 28, 2017: contributor
  8. res-Q commented at 5:12 AM on September 28, 2017: none

    I am also receiving this error when attempting to compile version 0.15.0. I have followed the guide for compiling with windows subsystem for linux. I have performed the suggested PATH command in #10884 - now my path is as follows:

    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

    The error still persists.

    ----UPDATE----

    I was able to successfully build 0.15.0.1 - I created a new directory, downloaded the .zip file from GIT, performed the steps in the guide for compiling with windows subsystem for linux. What worked was the build in the new directory. I had previously been building 0.15.0 in a shared directory with 0.14.2.

  9. novatia commented at 8:35 AM on October 13, 2017: none

    Hi, same problem here. Resolved removing \r char from each file in the source folder like this.

    find ./bitcoin -type f | xargs -Ix sed -i.bak -r 's/\r//g' x

  10. rafawo commented at 8:58 AM on November 20, 2017: none

    I was having this same problem, but got it resolved by re cloning the bitcoin git repository directly from the bash window in the Ubuntu ecosystem.

    I originally cloned the repository from within Windows, then read the instructions on doc/build-windows.cmd and got stuck in the same step. After trying different approaches, I realized it would be easier to just reclone again from within Ubuntu ecosystem, just in case it had to do with git setting up things differently because of OS file system differences. Like paths or something. Seemed to work for me.

  11. mfarnoosh commented at 9:53 AM on February 4, 2018: none

    Hi, Same problem here, The problem is because of difference between EOF in Windows and Linux. do not copy the source from Windows to WSL. clone it in Linux directly from git, or copy the zip file and extract it in Linux. thanks @novatia

  12. leegod commented at 11:21 AM on April 11, 2019: none

    really hard to know... I need step by step guide.

  13. DrahtBot locked this on Dec 16, 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-17 03:15 UTC

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