Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos - failure with xcode headers "Libc++ only supports Clang 16 and later" #532

Open
sean-parent opened this issue Feb 4, 2025 · 0 comments

Comments

@sean-parent
Copy link
Contributor

sean-parent commented Feb 4, 2025

It looks like the supplied version of cling doesn't work with new XCode headers. I tried pulling the MacOSX10.9.sdk from Xcode 5.1.1 (the version that I believe cling was built against) and setting CPLUS_INCLUDE_PATH to point to the include director, but I got the same error. I can't use xcode-select on that old an Xcode version.

Has anyone been able to get this going on macOS recently? I'm running on an Intel macOS 15.3, Xcode 16.2. Is there a way to point xeus-cling and a particular set of libcxx headers?

Failed to start the Kernel. 
registering handler for SIGSEGV
In file included from input_line_1:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:89:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__assert:13:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__assertion_handler:13:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:48:8: warning: "Libc++ only supports Clang 16 and later" [-W#warnings]
#      warning "Libc++ only supports Clang 16 and later"
       ^
In file included from input_line_1:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:89:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__assert:13:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__assertion_handler:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__verbose_abort:20:1: error: expected identifier or '{'
_LIBCPP_BEGIN_NAMESPACE_STD
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:901:81: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD namespace _LIBCPP_TYPE_VISIBILITY_DEFAULT std {                                  \
                                                                                ^
In file included from input_line_1:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:89:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__assert:13:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__assertion_handler:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__verbose_abort:20:1: error: C++ requires a type specifier for all declarations
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:901:81: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
...
6   libxeus-cling.0.15.0.dylib          0x00000001072015ec _ZN5clang19RecursiveASTVisitorIN12_GLOBAL__N_120PointerCheckInjectorEE16TraverseDeclStmtEPNS_8DeclStmtEPN4llvm15SmallVectorImplINS6_14PointerIntPairIPNS_4StmtELj1EbNS6_21PointerLikeTypeTraitsISA_EENS6_18PointerIntPairInfoISA_Lj1ESC_EEEEEE + 108
7   libxeus-cling.0.15.0.dylib          0x00000001071fd048 _ZN5clang19RecursiveASTVisitorIN12_GLOBAL__N_120PointerCheckInjectorEE12TraverseStmtEPNS_4StmtEPN4llvm15SmallVectorImplINS6_14PointerIntPairIS5_Lj1EbNS6_21PointerLikeTypeTraitsIS5_EENS6_18PointerIntPairInfoIS5_Lj1ESA_EEEEEE + 6840
8   libxeus-cling.0.15.0.dylib          0x0000000107211db7 _ZN5clang19RecursiveASTVisitorIN12_GLOBAL__N_120PointerCheckInjectorEE22TraverseFunctionHelperEPNS_12FunctionDeclE + 567
9   libxeus-cling.0.15.0.dylib          0x00000001071f6987 _ZN5clang19RecursiveASTVisitorIN12_GLOBAL__N_120PointerCheckInjectorEE12TraverseDeclEPNS_4DeclE + 903. 
View Jupyter [log](command:jupyter.viewOutput) for further details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant