Skip to content

Binder cannot understand the system headers with MacOS 15.5/Clang 17.0.0 #317

@adamnovak

Description

@adamnovak

I have MacOS 15.5 and Clang 17.0.0. I'm trying to run Binder, but it can't understand my system headers. I get a bunch of errors like this:

In file included from /Users/anovak/workspace/vg/deps/libbdsg/all_cmake_includes.hpp:1:
In file included from /Users/anovak/workspace/vg/deps/libbdsg/bdsg/include/bdsg/internal/binder_hook_bind.hpp:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:308:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/copy.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/copy_move_common.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/iterator_operations.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/iter_swap.h:13:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/declval.h:18:1: error: expected identifier or '{'
_LIBCPP_BEGIN_NAMESPACE_STD
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:596:81: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
                                      namespace _LIBCPP_TYPE_VISIBILITY_DEFAULT std {                                  \
                                                                                ^

I'm calling into build.py to install Binder, and it is selecting LLVM 13.0.0 as appropriate for my environment. It could be that a newer LLVM version is required, and build.py needs to be taught to select it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions