Unable to compile 0.15 on Cygwin (strerror_r was not declared) #12049

issue ZeroGraviti opened this issue on December 29, 2017
  1. ZeroGraviti commented at 1:08 PM on December 29, 2017: 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! -->

    <!-- Describe the issue -->

    Issue Description: Unable to compile and build bitcoin 0.15

    <!--- What behavior did you expect? -->

    Expected behavior: Successful build :)

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

    Actual Behavior: Build breaks -> https://pastebin.com/GYZtKBNC Update #1: https://pastebin.com/9Svrbn8g

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

    Triage/Reproduce the issue: https://pastebin.com/UcWnt8dc

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    Version of bittcoin core: 0.15 (downloaded from github)

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    Type of machine on which issue occured: $ uname -a CYGWIN_NT-6.1-WOW pluto 2.9.0(0.318/5/3) 2017-09-12 10:41 i686 Cygwin

    <!-- 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. -->

    Extra information/updates SO question I have created on this -> https://stackoverflow.com/questions/48008080/c-compilation-stuck-with-boost-interprocess-lib-error-ftruncate-has-not/48008425?noredirect=1#comment83027051_48008425

    Latest config.log -> https://pastebin.com/1q4hzeqD Latest error console output -> https://pastebin.com/9Svrbn8g

  2. laanwj added the label Build system on Dec 30, 2017
  3. laanwj commented at 9:40 AM on December 30, 2017: member

    As far as I know, no one is building this on cygwin. You're free to try, but if you want to build for windows, you'll save yourself a lot of pain by following the windows build instructions in https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md.

  4. ZeroGraviti commented at 4:32 PM on December 30, 2017: none

    I dont have Windows 10 and I did try MinGW.... with no success at all. The only shot I have of some success is with cygwin and I believe I did make some progress... Will update OP with this. I am currently stuck with

    netbase.cpp:720:41: error: `strerror_r' was not declared in this scope
         if (strerror_r(err, buf, sizeof(buf)))
    
    

    which might be caused because of no glibc support (perhaps) in cygwin, so maybe I have to try something like newlib ? Not really sure... some help/advice would be great !

  5. ZeroGraviti commented at 10:58 PM on December 30, 2017: none

    I have pastebin'ed the latest config.log link and the error console output in the OP....

  6. molxyz commented at 2:01 PM on January 8, 2018: none

    @ZeroGraviti On which OS are you trying to do this?

  7. ghost commented at 10:50 PM on January 31, 2018: none

    @ZeroGraviti You can compile on any OS, the main thing is to work on a virtualbox https://github.com/bitcoin/bitcoin/blob/0.15/doc/gitian-building.md

  8. CinchBlue commented at 11:02 PM on February 8, 2018: none

    @DATSEC @molxyz @laanwj The compilation is because <string.h> is probably not being included somewhere somehow. The function strerror_r() is not being declared in the scope in which it is used in netbase.cpp. So, it's not being included somewhere, or perhaps it just isn't there within Cygwin. However, I believe it's under the newlib source files in Cygwin which implement the strerror_r() function.

  9. MarcoFalke renamed this:
    Unable to compile 0.15 on Cygwin
    Unable to compile 0.15 on Cygwin (strerror_r was not declared)
    on Jul 18, 2018
  10. MarcoFalke commented at 1:23 AM on April 26, 2020: member

    Is this still an issue with a recent version of Bitcoin Core? If yes, what are the steps to reproduce?

  11. MarcoFalke closed this on Apr 26, 2020

  12. DrahtBot locked this on Feb 15, 2022

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

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