Compile error: "clientversion.cpp:42:10: fatal error: 'build.h' file not found" #9933

issue pinheadmz opened this issue on March 7, 2017
  1. pinheadmz commented at 12:52 AM on March 7, 2017: member

    OSX 10.10.5 git clone latest master (19be26afe3d04783a92d032b55bf3fb1e2ae63cc)

    I'm not sure what happened because I've been able to compile bitcoin from source on this machine recently until today.

    config.log

    I've seen on other issues that openssl might be the issue:

    $ brew info openssl
    openssl: stable 1.0.2k (bottled) [keg-only]
    SSL/TLS cryptography library
    https://openssl.org/
    /usr/local/Cellar/openssl/1.0.2j (1,695 files, 12M)
      Poured from bottle on 2016-10-04 at 10:12:41
    /usr/local/Cellar/openssl/1.0.2k (1,696 files, 12M)
      Poured from bottle on 2017-03-06 at 15:09:14
    From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl.rb
    ==> Dependencies
    Build: makedepend ✘
    ==> Options
    --universal
    	Build a universal binary
    --without-test
    	Skip build-time tests (not recommended)
    ==> Caveats
    A CA file has been bootstrapped using certificates from the SystemRoots
    keychain. To add additional certificates (e.g. the certificates added in
    the System keychain), 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
    
    If you need to have this software first in your PATH run:
      echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
    
    For compilers to find this software you may need to set:
        LDFLAGS:  -L/usr/local/opt/openssl/lib
        CPPFLAGS: -I/usr/local/opt/openssl/include
    For pkg-config to find this software you may need to set:
        PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
    
    

    ... but I did set those flags (output of configure):

    Options used to compile and link:
      with wallet   = yes
      with gui / qt = no
      with zmq      = no
      with test     = yes
      with bench    = yes
      with upnp     = yes
      debug enabled = no
      werror        = no
    
      target os     = darwin
      build os      = darwin
    
      CC            = gcc
      CFLAGS        = -g -O2
      CPPFLAGS      = -I/usr/local/opt/openssl/include -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -I/usr/local/opt/berkeley-db@4/include -DMAC_OSX
      CXX           = g++ -std=c++11
      CXXFLAGS      = -g -O2 -Wall -Wextra -Wformat -Wvla -Wformat-security -Wshadow -Wno-unused-parameter -Wno-self-assign -Wno-unused-local-typedef -Wno-deprecated-register
      LDFLAGS       = -L/usr/local/opt/openssl/lib -Wl,-headerpad_max_install_names -Wl,-dead_strip
    
  2. fanquake added the label MacOSX on Mar 7, 2017
  3. pinheadmz commented at 1:09 AM on March 7, 2017: member

    OK, I seem to have solved this problem by removing a space in the name of a parent directory of the source code! SHEESH!

  4. pinheadmz closed this on Mar 7, 2017

  5. laanwj commented at 8:18 AM on March 7, 2017: member

    You could help test/review #5872 which was intended to solve the space in parent path issue, but no one seemed to care at the time.

  6. DrahtBot 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