Error Compiling Bitcoin Core v22.0 on MacOS #24087

issue Stolpmann opened this issue on January 17, 2022
  1. Stolpmann commented at 5:27 PM on January 17, 2022: none

    <!-- Describe the issue -->

    Hello, I am trying to install Bitcoin Core version 22.0 on MacOS Catalina 10.15.7. I am following the build for macOS tutorial in the official Bitcoin repo.

    I have been running into issues when compiling.

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

    (base) Evans-MacBook-Pro:bitcoin Evan$ make
    
    Making all in src
      
    CXXLD    bitcoind
    
    ld: archive has no table of contents file 'libbitcoin_server.a' for architecture x86_64
    
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
    make[2]: *** [bitcoind] Error 1
    
    make[1]: *** [all-recursive] Error 1
    
    make: *** [all-recursive] Error 1
    (base) Evans-MacBook-Pro:bitcoin Evan$ 
    

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

    I do not know if there is a way to reproduce the issue I followed the tutorial exactly.

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

    I cloned Bitcoin core v22.0 from the repo

  2. RandyMcMillan commented at 8:06 PM on January 17, 2022: contributor
    cd ~/bitcoin
    make clean
    git checkout a0988140b71485ad12c3c3a4a9573f7c21b1eff8
     ./autogen.sh
    ./configure --disable-tests --disable-bench
     make appbundle
    

    This worked for me on 10.15.7 (19H1519)

  3. fanquake added the label macOS on Jan 18, 2022
  4. Stolpmann commented at 10:17 PM on January 18, 2022: none
    cd ~/bitcoin
    make clean
    git checkout a0988140b71485ad12c3c3a4a9573f7c21b1eff8
     ./autogen.sh
    ./configure --disable-tests --disable-bench
     make appbundle
    

    This worked for me on 10.15.7 (19H1519)

    Worked for me! Thank You!

  5. Stolpmann closed this on Jan 18, 2022

  6. fanquake commented at 11:02 PM on January 18, 2022: member

    I'm assuming the make clean is what has fixed your issue here. There shouldn't be able need to disable the tests or benchmarks. Calling make appbundle is also an obscure target to pick, make or make check should work fine.

  7. brunoerg commented at 1:57 PM on February 20, 2022: member

    Got same issue here and make clean fixed it

  8. DrahtBot locked this on Feb 20, 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: 2026-04-21 18:14 UTC

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