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

Build failure under Apple clang 14 #133

Closed
anarthal opened this issue Feb 28, 2024 · 2 comments
Closed

Build failure under Apple clang 14 #133

anarthal opened this issue Feb 28, 2024 · 2 comments

Comments

@anarthal
Copy link

anarthal commented Feb 28, 2024

Build log is here (edited link): https://github.com/boostorg/mysql/actions/runs/8084450940/job/22089745435

This looks closely related to llvm/llvm-project#54765. This build is in GHA using macos-latest (no container here since OSX doesn't support it).

Compiler details as reported by b2:

  • Apple clang version 14.0.0 (clang-1400.0.29.202)
  • Target: x86_64-apple-darwin21.6.0
  • InstalledDir: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
  • cxxstd=20
  • variant=debug,release (happens in both)
@tzlaine
Copy link
Owner

tzlaine commented Mar 30, 2024

Unfortunately, C++20 mode is not going to work for any version of Clang before (LLVM) Clang 15. Their concepts implementation does not play nice with libstdc++'s lib, nor does their own lib have all of implemented properly, even though it defines __cpp_lib_ranges.

There is a workaround, though. You can define BOOST_PARSER_DISABLE_CONCEPTS and that should work even in C++20 builds, since it will use the non-concept C++17 implementations.

@tzlaine tzlaine closed this as completed Mar 30, 2024
@tzlaine
Copy link
Owner

tzlaine commented Mar 30, 2024

Ah. I just realized the proper fix for this is for me to disable the use of concept constraints in Clang < 16. I mentioned this in #131.

@tzlaine tzlaine reopened this Mar 30, 2024
@tzlaine tzlaine closed this as completed in 5f50c37 Apr 1, 2024
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

2 participants