Can I compile on OSX Tahoe? #33733

issue umrashrf openend 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

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

    Step 2: Success

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

    Step 3: Fails

    0cmake --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

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

    Step 2: Success

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

    Step 3: Fails

    0cmake --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

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

    Homebrew Dependencies

     0% brew info cmake boost pkgconf libevent capnp
     1==> cmake: stable 4.1.2 (bottled), HEAD
     2Cross-platform make
     3https://www.cmake.org/
     4Installed
     5/opt/homebrew/Cellar/cmake/4.1.2 (3,913 files, 59.0MB) *
     6  Poured from bottle using the formulae.brew.sh API on 2025-10-25 at 12:17:51
     7From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/c/cmake.rb
     8License: BSD-3-Clause
     9==> Options
    10--HEAD
    11	Install HEAD version
    12==> Caveats
    13To install the CMake documentation, run:
    14  brew install cmake-docs
    15==> Analytics
    16install: 142,737 (30 days), 415,117 (90 days), 1,567,236 (365 days)
    17install-on-request: 106,081 (30 days), 317,265 (90 days), 1,206,009 (365 days)
    18build-error: 2,193 (30 days)
    19
    20==> boost: stable 1.89.0 (bottled), HEAD
    21Collection of portable C++ source libraries
    22https://www.boost.org/
    23Installed
    24/opt/homebrew/Cellar/boost/1.89.0 (16,214 files, 348.0MB) *
    25  Poured from bottle using the formulae.brew.sh API on 2025-10-25 at 12:17:55
    26From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/b/boost.rb
    27License: BSL-1.0
    28==> Dependencies
    29Required: icu4c@77, xz, zstd
    30==> Options
    31--HEAD
    32	Install HEAD version
    33==> Analytics
    34install: 31,894 (30 days), 108,486 (90 days), 586,596 (365 days)
    35install-on-request: 11,761 (30 days), 42,580 (90 days), 254,592 (365 days)
    36build-error: 60 (30 days)
    37
    38==> pkgconf: stable 2.5.1 (bottled), HEAD
    39Package compiler and linker metadata toolkit
    40https://github.com/pkgconf/pkgconf
    41Installed
    42/opt/homebrew/Cellar/pkgconf/2.5.1 (28 files, 521.5KB) *
    43  Poured from bottle using the formulae.brew.sh API on 2025-07-12 at 17:51:14
    44From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/pkgconf.rb
    45License: ISC
    46==> Options
    47--HEAD
    48	Install HEAD version
    49==> Analytics
    50install: 193,222 (30 days), 489,560 (90 days), 1,999,656 (365 days)
    51install-on-request: 104,564 (30 days), 244,676 (90 days), 836,900 (365 days)
    52build-error: 212 (30 days)
    53
    54==> libevent: stable 2.1.12 (bottled)
    55Asynchronous event library
    56https://libevent.org/
    57Installed
    58/opt/homebrew/Cellar/libevent/2.1.12_1 (57 files, 2.2MB) *
    59  Poured from bottle using the formulae.brew.sh API on 2024-05-11 at 19:13:14
    60From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/lib/libevent.rb
    61License: BSD-3-Clause
    62==> Dependencies
    63Build: autoconf, automake, libtool, pkgconf
    64Required: openssl@3
    65==> Analytics
    66install: 58,116 (30 days), 185,092 (90 days), 671,699 (365 days)
    67install-on-request: 394 (30 days), 1,302 (90 days), 7,444 (365 days)
    68build-error: 0 (30 days)
    69
    70==> capnp: stable 1.2.0 (bottled), HEAD
    71Data interchange format and capability-based RPC system
    72https://capnproto.org/
    73Installed
    74/opt/homebrew/Cellar/capnp/1.2.0 (145 files, 16MB) *
    75  Poured from bottle using the formulae.brew.sh API on 2025-10-25 at 12:18:05
    76From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/c/capnp.rb
    77License: MIT
    78==> Dependencies
    79Build: cmake
    80==> Options
    81--HEAD
    82	Install HEAD version
    83==> Analytics
    84install: 1,585 (30 days), 4,577 (90 days), 18,064 (365 days)
    85install-on-request: 1,381 (30 days), 4,119 (90 days), 16,719 (365 days)
    86build-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:

    0rm -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.

    0% cat configure.log.3 | grep -i boost
    1-- Performing Test NO_DIAGNOSTICS_BOOST_NO_CXX98_FUNCTION_BASE
    2-- Performing Test NO_DIAGNOSTICS_BOOST_NO_CXX98_FUNCTION_BASE - Failed
    3Boost_DIR:PATH=/opt/homebrew/opt/boost/lib/cmake/Boost-1.89.0
    4boost_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:

    0rm -rf build
    1cmake -B build \
    2    -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang \
    3    -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ \
    4    -DENABLE_IPC=OFF \
    5    -DBUILD_GUI=OFF \
    6    -DWITH_QRENCODE=OFF \
    7    -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!

    0export LDFLAGS="-L$(brew --prefix llvm)/lib/c++"
    1export 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: 2025-11-22 09:12 UTC

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