Compile error: “clientversion.cpp:42:10: fatal error: ‘build.h’ file not found” #9933

issue pinheadmz openend this issue on March 7, 2017
  1. pinheadmz commented at 0: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:

     0$ brew info openssl
     1openssl: stable 1.0.2k (bottled) [keg-only]
     2SSL/TLS cryptography library
     3https://openssl.org/
     4/usr/local/Cellar/openssl/1.0.2j (1,695 files, 12M)
     5  Poured from bottle on 2016-10-04 at 10:12:41
     6/usr/local/Cellar/openssl/1.0.2k (1,696 files, 12M)
     7  Poured from bottle on 2017-03-06 at 15:09:14
     8From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl.rb
     9==> Dependencies
    10Build: makedepend 
    11==> Options
    12--universal
    13	Build a universal binary
    14--without-test
    15	Skip build-time tests (not recommended)
    16==> Caveats
    17A CA file has been bootstrapped using certificates from the SystemRoots
    18keychain. To add additional certificates (e.g. the certificates added in
    19the System keychain), place .pem files in
    20  /usr/local/etc/openssl/certs
    21
    22and run
    23  /usr/local/opt/openssl/bin/c_rehash
    24
    25This formula is keg-only, which means it was not symlinked into /usr/local.
    26
    27Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
    28
    29If you need to have this software first in your PATH run:
    30  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
    31
    32For compilers to find this software you may need to set:
    33    LDFLAGS:  -L/usr/local/opt/openssl/lib
    34    CPPFLAGS: -I/usr/local/opt/openssl/include
    35For pkg-config to find this software you may need to set:
    36    PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
    

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

     0Options used to compile and link:
     1  with wallet   = yes
     2  with gui / qt = no
     3  with zmq      = no
     4  with test     = yes
     5  with bench    = yes
     6  with upnp     = yes
     7  debug enabled = no
     8  werror        = no
     9
    10  target os     = darwin
    11  build os      = darwin
    12
    13  CC            = gcc
    14  CFLAGS        = -g -O2
    15  CPPFLAGS      = -I/usr/local/opt/openssl/include -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -I/usr/local/opt/berkeley-db@4/include -DMAC_OSX
    16  CXX           = g++ -std=c++11
    17  CXXFLAGS      = -g -O2 -Wall -Wextra -Wformat -Wvla -Wformat-security -Wshadow -Wno-unused-parameter -Wno-self-assign -Wno-unused-local-typedef -Wno-deprecated-register
    18  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


pinheadmz laanwj

Labels
macOS


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: 2024-12-05 00:12 UTC

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