cmake: unable to build binaries from my fork repo but can do so from bitcoin repo #31959

issue rkrux openend this issue on February 27, 2025
  1. rkrux commented at 12:48 pm on February 27, 2025: contributor

    macOS 15.1

    Not sure if it’s a bug or something I missed. I can build the binaries fine when I do so from my projects/bitcoin but I get the following error when I build from my fork repo here projects/rkrux/bitcoin.

    0➜  bitcoin git:(master) cmake --build build -j 13
    1...
    2...
    3make[2]: *** No rule to make target `/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/lib/libsqlite3.tbd', needed by `src/bitcoind'.  Stop.
    4make[2]: *** Waiting for unfinished jobs....
    5[ 75%] Building CXX object src/CMakeFiles/bitcoind.dir/bitcoind.cpp.o
    6[ 76%] Building CXX object src/CMakeFiles/bitcoind.dir/init/bitcoind.cpp.o
    7make[2]: *** No rule to make target `/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/lib/libsqlite3.tbd', needed by `src/bitcoin-wallet'.  Stop.
    8make[1]: *** [src/CMakeFiles/bitcoin-wallet.dir/all] Error 2
    9make[1]: *** Waiting for unfinished jobs....
    

    The configuration command I used before building.

    0cmake -B build -DBUILD_GUI=OFF -DWITH_BDB=OFF -LH
    

    I have not found any issue exactly related to this, please redirect me to one if it has been posted earlier.

  2. maflcko commented at 1:12 pm on February 27, 2025: member

    Did you try a fresh, clean build? Hint: rm -rf ./build

    If not, what are the exact steps to reproduce, starting from a fresh git clone?

  3. maflcko added the label Build system on Feb 27, 2025
  4. maflcko added the label Questions and Help on Feb 27, 2025
  5. rkrux commented at 2:06 pm on February 27, 2025: contributor

    Fresh clean build seems to have done the trick, thank you @maflcko !

    This can be closed.

  6. fanquake closed this on Feb 27, 2025

  7. ryanofsky commented at 3:15 pm on February 27, 2025: contributor
    @maflcko do you have ideas on how this failure could have happened? I’m not sure how/whether the change discussed #31942 would address this, possibly because I don’t understand exactly what change #31942 is proposing. From the error it seems like the SDK installation got updated between builds, but probably I am misinterpreting it.

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: 2025-03-31 09:12 UTC

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