OSX El Capitan build issues #7175

issue eliot1785 opened this issue on December 5, 2015
  1. eliot1785 commented at 11:02 PM on December 5, 2015: none

    I'm new to GitHub and this project, so I apologize if this isn't helpful. I have a new laptop with OS X and followed the instructions in doc/build-osx.md but can't get it to work.

    There are some export issues, but I think they've already been reported in a pull request: http://fdecollibus.blogspot.com/2015/11/building-bitcoinlitecoin-on-mac-os-x.html

    After following that, however, I have a new issue where build.h cannot be found (see below). I hesitated to report this because maybe I am just doing it wrong, but in that case maybe the instructions could be improved?

    My-MacBook-Pro:bitcoin myuser$ make
    Making all in src
    ../share/genbuild.sh: line 3: cd: Source/bitcoin/src/obj/build.h: No such file or directory
      CXX      libbitcoin_util_a-clientversion.o
    clientversion.cpp:42:10: fatal error: 'build.h' file not found
    #include "build.h"
             ^
    1 error generated.
    make[2]: *** [libbitcoin_util_a-clientversion.o] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    
  2. jonasschnelli added the label Mac on Dec 7, 2015
  3. jonasschnelli commented at 7:55 AM on December 7, 2015: contributor

    Could you post your config.log somewhere and the output of brew info openssl as well as brew -v?

  4. eliot1785 commented at 7:14 PM on December 12, 2015: none

    Sure, here you go: config.log.txt

    Stephens-MacBook-Pro:bitcoin stephen$ brew -v
    Homebrew 0.9.5 (git revision 911a; last commit 2015-12-05)
    
    
    Stephens-MacBook-Pro:bitcoin stephen$ brew info openssl
    openssl: stable 1.0.2e (bottled) [keg-only]
    OpenSSL SSL/TLS cryptography library
    https://openssl.org/
    /usr/local/Cellar/openssl/1.0.2d_1 (464 files, 17M)
      Poured from bottle
    From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/openssl.rb
    ==> Dependencies
    Build: makedepend ✘
    ==> Options
    --universal
            Build a universal binary
    --without-check
        Skip build-time tests (not recommended)
    ==> Caveats
    A CA file has been bootstrapped using certificates from the system
    keychain. To add additional certificates, place .pem files in
      /usr/local/etc/openssl/certs
    
    and run
      /usr/local/opt/openssl/bin/c_rehash
    This formula is keg-only, which means it was not symlinked into /usr/local.
    Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
    
  5. tnull commented at 1:02 PM on December 17, 2015: none

    I can reproduce this. When I link OpenSSL via brew link openssl, configure finds the header and all is fine. When not, conftest does not find them. See config.txt. The corresponding line in the configure-script is:

    ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/ec.h" "ac_cv_header_openssl_ec_h" "$ac_includes_default"
    

    Which may be generated by https://github.com/bitcoin/bitcoin/blob/master/configure.ac#L749 ? And maybe this ignores the $openssl_prefix?

  6. laanwj added the label Build system on Feb 16, 2016
  7. laanwj commented at 12:57 PM on February 16, 2016: member

    Any progress here?

  8. laanwj closed this on Apr 28, 2016

  9. 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-21 18:15 UTC

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