macOS 15.0.1 can’t build Qt (Intel, without Xcode) #31054

issue Sjors openend this issue on October 8, 2024
  1. Sjors commented at 7:20 am on October 8, 2024: member

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    make in depends fails

    This is very recent, will try to find an earlier commit where it works.

    Expected behaviour

    To work.

    Steps to reproduce

    0cd depends
    1make NO_WALLET=1 NO_UPNP=1 NO_ZMQ=1 
    

    Relevant log output

     0...
     1Configuring qt...
     2Creating qmake...
     3In file included from /Users/sjors/dev/bitcoin2/depends/work/build/x86_64-apple-darwin24.0.0/qt/5.15.14-3f2e53999e5/qtbase/qmake/main.cpp:30:
     4In file included from /Users/sjors/dev/bitcoin2/depends/work/build/x86_64-apple-darwin24.0.0/qt/5.15.14-3f2e53999e5/qtbase/qmake/project.h:32:
     5In file included from /Users/sjors/dev/bitcoin2/depends/work/build/x86_64-apple-darwin24.0.0/qt/5.15.14-3f2e53999e5/qtbase/qmake/library/qmakeevaluator.h:36:
     6In file included from /Users/sjors/dev/bitcoin2/depends/work/build/x86_64-apple-darwin24.0.0/qt/5.15.14-3f2e53999e5/qtbase/qmake/library/qmakeparser.h:32:
     7In file included from /Users/sjors/dev/bitcoin2/depends/work/build/x86_64-apple-darwin24.0.0/qt/5.15.14-3f2e53999e5/qtbase/qmake/library/qmake_global.h:32:
     8In file included from /Users/sjors/dev/bitcoin2/depends/work/build/x86_64-apple-darwin24.0.0/qt/5.15.14-3f2e53999e5/qtbase/include/QtCore/qglobal.h:1:
     9/Users/sjors/dev/bitcoin2/depends/work/build/x86_64-apple-darwin24.0.0/qt/5.15.14-3f2e53999e5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:45:12: fatal error: 'type_traits' file not found
    10   45 | #  include <type_traits>
    11      |            ^~~~~~~~~~~~~
    121 error generated.
    13make[1]: *** [main.o] Error 1
    14make: *** [/Users/sjors/dev/bitcoin2/depends/x86_64-apple-darwin24.0.0/.qt_stamp_configured] Error 2
    

    I also still get #30978, in case that’s related.

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    master@62e4516722115c2d5aeb6c197abc73ca7c078b23

    Operating system and version

    macOS 15.0.1

    0clang --version
    1Apple clang version 16.0.0 (clang-1600.0.26.3)
    2Target: x86_64-apple-darwin24.0.0
    3Thread model: posix
    4InstalledDir: /Library/Developer/CommandLineTools/usr/bin
    
    0xcode-select -p
    1/Library/Developer/CommandLineTools
    

    Machine specifications

    Intel MBP from 2019.

  2. Sjors commented at 7:27 am on October 8, 2024: member
    It happens even on d71ac768424333b65a6d88c9752cc9c7fdb276f3, so it’s not a recent change in the code. Will try some variations with Xcode, etc.
  3. Sjors commented at 8:16 am on October 8, 2024: member

    When I install XCode 16 and build depends for master @ 62e4516722115c2d5aeb6c197abc73ca7c078b23 it’s happy.

    brew install llvm (currently at 19.1.1) does not help. I used:

    0export PATH="$(brew --prefix llvm)/bin:$PATH"
    1export LDFLAGS="-L$(brew --prefix llvm)/lib"
    2export CPPFLAGS="-I$(brew --prefix llvm)/include"
    

    Doesn’t work on d71ac768424333b65a6d88c9752cc9c7fdb276f3 either.

    I went back as far as ef20add4c98674183720d9631ac780f9a248b487 and still getting this error.

    I always had Xcode installed on that machine, so it’s possible I just never noticed it. But it’s also possible this machine is just in a weird state.

  4. hebasto commented at 4:02 pm on October 9, 2024: member

    I cannot neither confirm nor reproduce the issue on my MacBook Pro (2019, Intel).

    The following scenarios were tested:

    • Sonoma 14.6.1 + Command-Line Tools 15.0.
    • Sonoma 14.7 + Command-Line Tools 16.0.
    • Sequoia 15.0.1 + Command-Line Tools 16.0.
    • Sequoia 15.0.1 + Xcode 16.0.
    • Sequoia 15.0.1 + Xcode 16.0 installed and then deleted.

    For all scenarios, here is the list of the installed Homebrew’s packages:

    0% brew list
    1==> Formulae
    2cmake		pkg-config
    3
    4==> Casks
    

    But it’s also possible this machine is just in a weird state.

    It seems like that.

    Did you try to reinstall command-line tools?

  5. Sjors commented at 3:34 pm on October 21, 2024: member

    Going to close this for now, since you can’t reproduce on Intel.

    Once I have a new laptop, I might wipe and reinstall the 2019 device and try this stuff again.

  6. Sjors closed this on Oct 21, 2024


Sjors hebasto


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-11-23 09:12 UTC

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