Error Compiling Bitcoin Core v22.0 on MacOS #24087

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

    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.

     0(base) Evans-MacBook-Pro:bitcoin Evan$ make
     1
     2Making all in src
     3  
     4CXXLD    bitcoind
     5
     6ld: archive has no table of contents file 'libbitcoin_server.a' for architecture x86_64
     7
     8clang: error: linker command failed with exit code 1 (use -v to see invocation)
     9
    10make[2]: *** [bitcoind] Error 1
    11
    12make[1]: *** [all-recursive] Error 1
    13
    14make: *** [all-recursive] Error 1
    15(base) Evans-MacBook-Pro:bitcoin Evan$ 
    

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

    I cloned Bitcoin core v22.0 from the repo

  2. RandyMcMillan commented at 8:06 pm on January 17, 2022: contributor
    0cd ~/bitcoin
    1make clean
    2git checkout a0988140b71485ad12c3c3a4a9573f7c21b1eff8
    3 ./autogen.sh
    4./configure --disable-tests --disable-bench
    5 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
    0cd ~/bitcoin
    1make clean
    2git checkout a0988140b71485ad12c3c3a4a9573f7c21b1eff8
    3 ./autogen.sh
    4./configure --disable-tests --disable-bench
    5 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: 2024-09-29 01:12 UTC

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