Error on running make on macOS #25844

issue HeroicHitesh openend this issue on August 14, 2022
  1. HeroicHitesh commented at 5:06 pm on August 14, 2022: none

    Expected behavior Bitcoin Core should compile without error as per this guide

    Actual behavior Getting error on running make command

    To reproduce

    • Follow the guide till here.
    • Skip Optional Dependency installation
    • Configure for No Wallet or GUI as shown here
    • Then try compiling using make

    System information

    • Cloned bitcoin repo, at time of cloning latest commit id = dc9d6626835ec2864dfa747c12071dabdc95b919
    • OS = macOS Big Sur
    • Disk Type = SSD
  2. HeroicHitesh added the label Bug on Aug 14, 2022
  3. hebasto commented at 5:54 pm on August 14, 2022: member
    @HeroicHitesh Hmm, your build environment looks a bit weird, considering the BITROCK_COMMON_ROOTDIR variable from your log.
  4. fanquake removed the label Bug on Aug 14, 2022
  5. fanquake added the label macOS on Aug 14, 2022
  6. jarolrod commented at 8:04 pm on August 14, 2022: member
    make works just fine on macOS, please recheck your user environment for any custom changes/environment variables that are preventing you from building.
  7. HeroicHitesh commented at 2:34 am on August 15, 2022: none

    Hi @hebasto @jarolrod thanks for the response. I am still confused as to where to look to fix the error. I am getting following output for ./configure --without-wallet --with-gui=no command

      0export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
      1export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
      2
      3# >>> DB >>>
      4# !! MySQL !!
      5export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"
      6
      7# !! PostgreSQL !!
      8export PATH=/usr/lib/postgresql/12.2/bin/:$PATH
      9# <<< DB <<<
     10
     11
     12
     13# >>> NVM >>>
     14export NVM_DIR="$HOME/.nvm"
     15[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
     16[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion
     17# <<< NVM <<<
     18
     19
     20
     21# >>> Mobile >>>
     22# !! Flutter !!
     23export PATH="$PATH:$HOME/Developer/flutter/bin"
     24export ANDROID_HOME="/Users/apple/Library/Android/sdk"
     25export PATH="$PATH:$HOME/Developer/flutter/bin:$HOME/Developer/flutter/bin/cache/dart-sdk/bin:$HOME/.pub-cache/bin"
     26
     27# !! Android !!
     28export ANDROID_HOME="$HOME/Library/Android/sdk"
     29export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"
     30# <<< Mobile <<<
     31
     32
     33
     34# >>> Python >>>
     35# !! Pyenv !!
     36if command -v pyenv 1>/dev/null 2>&1; then
     37  eval "$(pyenv init -)"
     38fi
     39
     40# !! Python !!
     41# # Setting PATH for Python 3 installed by brew
     42# export PATH=/usr/local/share/python:$PATH
     43
     44# # Configuration for virtualenv
     45# export WORKON_HOME=$HOME/.virtualenvs
     46# export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
     47# export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
     48# source /usr/local/bin/virtualenvwrapper.sh
     49
     50# Setting PATH for Python 3 installed by brew
     51export PATH=/Users/apple/.pyenv/shims/python3:$PATH
     52
     53# Configuration for virtualenv
     54export WORKON_HOME=$HOME/.virtualenvs
     55export VIRTUALENVWRAPPER_PYTHON=/Users/apple/.pyenv/versions/3.8.2/bin/python3
     56export VIRTUALENVWRAPPER_VIRTUALENV=/Users/apple/.pyenv/versions/3.8.2/bin/virtualenv
     57source /Users/apple/.pyenv/versions/3.8.2/bin/virtualenvwrapper.sh
     58# <<< Python <<<
     59
     60
     61
     62# >>> GitLab/GDK >>>
     63# PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
     64. /usr/local/share/zsh/site-functions/_asdf
     65
     66export PATH="/usr/local/opt/libiconv/bin:$PATH"
     67
     68export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
     69export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/site-ccache"
     70export GUILE_SYSTEM_EXTENSIONS_PATH="/usr/local/lib/guile/3.0/extensions"
     71
     72export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/
     73
     74export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:$PKG_CONFIG_PATH"
     75
     76# !! Ruby !!
     77export PATH="$HOME/.asdf/installs/ruby/2.6.6/bin:$PATH"
     78
     79export PATH="/usr/local/opt/ruby/bin:$PATH"
     80
     81export PATH="$HOME/.asdf/installs/golang/1.14.6/go/bin:$PATH"
     82export PATH="$HOME/.asdf/installs/minio/2020-07-27T18-37-02Z/bin:$PATH"
     83export PATH="$HOME/.asdf/installs/redis/6.0.6/bin:$PATH"
     84# <<< GitLab/GDK <<<
     85
     86
     87
     88# >>> PHP >>>
     89export PATH="/usr/local/Cellar/php/7.4.10/bin:$PATH"
     90export PATH="/usr/local/Cellar/php/7.4.10/sbin:$PATH"
     91alias "composer"="php /usr/local/Cellar/composer/2.1.3/bin/composer"
     92export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH"
     93
     94# !! Joomla !!
     95alias jclean="rm -rf administrator/templates/atum/css; rm -rf templates/cassiopeia/css; rm -rf administrator/templates/system/css; rm -rf templates/system/css; rm -rf media/; rm -rf node_modules/; rm -rf libraries/vendor/;rm -f administrator/cache/autoload_psr4.php;rm -rf installation/template/css"
     96alias jinstall="jclean; composer install; npm ci"
     97# <<< PHP <<<
     98
     99
    100
    101# >>> Java >>>
    102export JAVA_HOME=$(/usr/libexec/java_home)
    103jdk() {
    104      version=$1
    105      unset JAVA_HOME;
    106      export JAVA_HOME=$(/usr/libexec/java_home -v"$version");
    107      java -version
    108}
    109# <<< Java <<<
    110
    111
    112# >>> Rust >>>
    113. "$HOME/.cargo/env"
    114# <<< Rust <<<
    115
    116
    117
    118# >>> Cloud >>>
    119
    120# !! kubectl !!
    121[[ /usr/local/bin/kubectl ]] && source <(kubectl completion zsh)
    122# <<< Cloud <<<
    123
    124
    125export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
    126export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
    

    Also, while running make command for the first time I got a lot of warnings like this I am not sure if they caused the issue or not, so just sharing for the reference

    Kindly let me know if there’s any other setting or file where I can look for to fix this issue.

  8. hebasto commented at 7:10 am on August 15, 2022: member

    Also, while running make command for the first time I got a lot of warnings…

    To silence them, add –enable-suppress-external-warnings to your configure invocation.

  9. fanquake commented at 8:12 am on August 15, 2022: member
    It’s not exactly clear what the problem is here, however it’s certainly a local issue. Feel free to reopen if you can recreate the issue in a clean environment. The BITROCK_COMMON_ROOTDIR problem is nothing to with Bitcoin Core or it’s build instructions.
  10. fanquake closed this on Aug 15, 2022

  11. HeroicHitesh commented at 9:16 am on August 16, 2022: none

    Thanks @hebasto for the tip, it helped a lot.

    Ok @fanquake I actually thought BITROCK_COMMON_ROOTDIR issue was something related to Bitcoin Core, since this is the first time I faced it. But after your comment, I did some online search, and thankfully was able to fix it by following this comment.

    Thanks a lot for the support everyone.

  12. bitcoin locked this on Aug 16, 2023

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-09-28 22:12 UTC

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