Can I compile on OSX Tahoe? #33733

issue umrashrf opened this issue on October 29, 2025
  1. umrashrf commented at 1:50 PM on October 29, 2025: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    I recently upgraded my OS to Mac OSX Tahoe 26.0.1 (25A362)

    Step 1: Success

    git clone ssh://github.com/bitcoin/bitcoin.git
    

    Step 2: Success

    cmake -B build -DENABLE_IPC=OFF -DBUILD_GUI=OFF -DWITH_QRENCODE=OFF
    

    Step 3: Fails

    cmake --build build
    

    The default clang was from homebrew which also failed but then I switched to XCode clang and still fails :joy:

    Expected behaviour

    Get a compiled bitcoind ❤️

    Steps to reproduce

    Step 1: Success

    git clone ssh://github.com/bitcoin/bitcoin.git
    

    Step 2: Success

    cmake -B build -DENABLE_IPC=OFF -DBUILD_GUI=OFF -DWITH_QRENCODE=OFF
    

    Step 3: Fails

    cmake --build build
    

    Relevant log output

    Hit the length limit so here's the URL https://gist.github.com/umrashrf/5302d7db0fe3e613d4ca94861eab452b

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    zsh: command not found: bitcoind

    Operating system and version

    MaxOS Tahoe 26.0.1 (25A362)

    Machine specifications

    Clang Version

    % clang --version
    Apple clang version 17.0.0 (clang-1700.3.19.1)
    Target: arm64-apple-darwin25.0.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    

    Homebrew Dependencies

    % brew info cmake boost pkgconf libevent capnp
    ==> cmake: stable 4.1.2 (bottled), HEAD
    Cross-platform make
    https://www.cmake.org/
    Installed
    /opt/homebrew/Cellar/cmake/4.1.2 (3,913 files, 59.0MB) *
      Poured from bottle using the formulae.brew.sh API on 2025-10-25 at 12:17:51
    From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/c/cmake.rb
    License: BSD-3-Clause
    ==> Options
    --HEAD
    	Install HEAD version
    ==> Caveats
    To install the CMake documentation, run:
      brew install cmake-docs
    ==> Analytics
    install: 142,737 (30 days), 415,117 (90 days), 1,567,236 (365 days)
    install-on-request: 106,081 (30 days), 317,265 (90 days), 1,206,009 (365 days)
    build-error: 2,193 (30 days)
    
    ==> boost: stable 1.89.0 (bottled), HEAD
    Collection of portable C++ source libraries
    https://www.boost.org/
    Installed
    /opt/homebrew/Cellar/boost/1.89.0 (16,214 files, 348.0MB) *
      Poured from bottle using the formulae.brew.sh API on 2025-10-25 at 12:17:55
    From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/b/boost.rb
    License: BSL-1.0
    ==> Dependencies
    Required: icu4c@77, xz, zstd
    ==> Options
    --HEAD
    	Install HEAD version
    ==> Analytics
    install: 31,894 (30 days), 108,486 (90 days), 586,596 (365 days)
    install-on-request: 11,761 (30 days), 42,580 (90 days), 254,592 (365 days)
    build-error: 60 (30 days)
    
    ==> pkgconf: stable 2.5.1 (bottled), HEAD
    Package compiler and linker metadata toolkit
    https://github.com/pkgconf/pkgconf
    Installed
    /opt/homebrew/Cellar/pkgconf/2.5.1 (28 files, 521.5KB) *
      Poured from bottle using the formulae.brew.sh API on 2025-07-12 at 17:51:14
    From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/pkgconf.rb
    License: ISC
    ==> Options
    --HEAD
    	Install HEAD version
    ==> Analytics
    install: 193,222 (30 days), 489,560 (90 days), 1,999,656 (365 days)
    install-on-request: 104,564 (30 days), 244,676 (90 days), 836,900 (365 days)
    build-error: 212 (30 days)
    
    ==> libevent: stable 2.1.12 (bottled)
    Asynchronous event library
    https://libevent.org/
    Installed
    /opt/homebrew/Cellar/libevent/2.1.12_1 (57 files, 2.2MB) *
      Poured from bottle using the formulae.brew.sh API on 2024-05-11 at 19:13:14
    From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/lib/libevent.rb
    License: BSD-3-Clause
    ==> Dependencies
    Build: autoconf, automake, libtool, pkgconf
    Required: openssl@3
    ==> Analytics
    install: 58,116 (30 days), 185,092 (90 days), 671,699 (365 days)
    install-on-request: 394 (30 days), 1,302 (90 days), 7,444 (365 days)
    build-error: 0 (30 days)
    
    ==> capnp: stable 1.2.0 (bottled), HEAD
    Data interchange format and capability-based RPC system
    https://capnproto.org/
    Installed
    /opt/homebrew/Cellar/capnp/1.2.0 (145 files, 16MB) *
      Poured from bottle using the formulae.brew.sh API on 2025-10-25 at 12:18:05
    From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/c/capnp.rb
    License: MIT
    ==> Dependencies
    Build: cmake
    ==> Options
    --HEAD
    	Install HEAD version
    ==> Analytics
    install: 1,585 (30 days), 4,577 (90 days), 18,064 (365 days)
    install-on-request: 1,381 (30 days), 4,119 (90 days), 16,719 (365 days)
    build-error: 1 (30 days)
    
  2. fanquake added the label macOS on Oct 29, 2025
  3. maflcko commented at 3:00 PM on October 29, 2025: member

    What is the configure summary, before you start to compile? (The output of cmake -B build -DENABLE_IPC=OFF -DBUILD_GUI=OFF -DWITH_QRENCODE=OFF)

    What is your XCode version?

    You are certainly not using the brew installed boost lib.

    What other boost libs are on your system?

  4. maflcko added the label Build system on Oct 29, 2025
  5. maflcko added the label Questions and Help on Oct 29, 2025
  6. umrashrf commented at 4:29 PM on October 29, 2025: none

    @maflcko ran configure again and here's the output https://gist.github.com/umrashrf/6a63476cce762e00a4f45603837c5bda

    I just opened XCode and it asked me to install it. Still fails to build after installation.

    New logs: https://gist.github.com/umrashrf/0714372957165e0264c8854d0060f660

    XCode version: 26.0.1 (17A400)

  7. umrashrf commented at 4:45 PM on October 29, 2025: none
  8. hebasto commented at 5:23 PM on October 29, 2025: member

    @umrashrf

    Could you please post the output of the following command:

    rm -rf build && cmake -B build -DENABLE_IPC=OFF -DBUILD_GUI=OFF -DWITH_QRENCODE=OFF -LA 2>&1 | grep -i boost
    

    ?

  9. umrashrf commented at 5:42 PM on October 29, 2025: none

    @hebasto I first put the output to a file so I can resue it later.

    % cat configure.log.3 | grep -i boost
    -- Performing Test NO_DIAGNOSTICS_BOOST_NO_CXX98_FUNCTION_BASE
    -- Performing Test NO_DIAGNOSTICS_BOOST_NO_CXX98_FUNCTION_BASE - Failed
    Boost_DIR:PATH=/opt/homebrew/opt/boost/lib/cmake/Boost-1.89.0
    boost_headers_DIR:PATH=/opt/homebrew/opt/boost/lib/cmake/boost_headers-1.89.0
    
  10. hebasto commented at 5:49 PM on October 29, 2025: member

    @umrashrf

    I have a guess, and to confirm it, I'd ask you to try configuring and building with the additional -DENABLE_WALLET=OFF option.

  11. l0rinc commented at 9:01 PM on October 29, 2025: contributor

    -L/opt/homebrew/opt/llvm@14

    this is too old, you need at least version 17. Do a general brew upgrade on the system and retry, I have the same OSx, it should work.

  12. umrashrf commented at 10:41 PM on October 29, 2025: none

    @l0rinc still fails

    1. brew upgrade
    2. brew reinstall boost
    3. use clang from homebrew (update $PATH)
    4. configure logs https://gist.github.com/umrashrf/6ca23317de227f3c8173a0031ced26f8
    5. build logs https://gist.github.com/umrashrf/d4e0ef25921f78fe9fc8909bff043ccb
  13. l0rinc commented at 10:49 PM on October 29, 2025: contributor

    Seems the llvm upgrade was successful, but you still have two boost installations, try removing the old one.

  14. umrashrf commented at 5:07 AM on October 30, 2025: none

    I feel a bit stupid as I just did git pull and it brought some new changes.

    Anyway I am still struggling to build successfully. @l0rinc you gave me a good tip. It's using /usr/local/include/boost/ instead of /opt/homebrew/Cellar/boost/1.89.0/include/boost/

    Any idea how can switch boost? I have already tried Boost_ROOT and other variables.

  15. umrashrf commented at 5:54 AM on October 30, 2025: none

    Oh looks like I made some progress by using:

    rm -rf build
    cmake -B build \
        -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang \
        -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ \
        -DENABLE_IPC=OFF \
        -DBUILD_GUI=OFF \
        -DWITH_QRENCODE=OFF \
        -DENABLE_WALLET=OFF
    

    configure logs: https://gist.github.com/umrashrf/dabd3c476da9fa727add2db1522bf3c7

    It failed but with a different error.

    Build logs: https://gist.github.com/umrashrf/919fbed81177e5829b16bddea6220aae

  16. umrashrf commented at 6:05 AM on October 30, 2025: none

    Doing the following fixed the issue!

    export LDFLAGS="-L$(brew --prefix llvm)/lib/c++"
    export CXXFLAGS="-I$(brew --prefix llvm)/include"
    

    Build success 100%

  17. umrashrf closed this on Oct 30, 2025


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:12 UTC

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