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

[ci][fix]use libc++ when compile with clang #483

Merged
merged 8 commits into from
Oct 31, 2023

Conversation

qicosmos
Copy link
Collaborator

@qicosmos qicosmos commented Oct 31, 2023

Why

/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: error: call to consteval function 'std::chrono::hh_mm_ss::_S_fractional_width' is not a constant expression
        static constexpr unsigned fractional_width = {_S_fractional_width()};
                                                      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: note: undefined function '_S_fractional_width' cannot be used in a constant expression
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2275:2: note: declared here
        _S_fractional_width()

llvm bug link: https://www.mail-archive.com/[email protected]/msg1928482.html

clang + libstdc++13 + C++20 will build failed when include chrono.

What is changing

use clang17 to solve this issue.

Example

@qicosmos qicosmos changed the title use libc++ [ci][fix]use libc++ when compile with clang Oct 31, 2023
@qicosmos qicosmos merged commit 18ac0ec into alibaba:main Oct 31, 2023
30 checks passed
@qicosmos qicosmos deleted the fix_ci_for_clang branch October 31, 2023 07:00
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

Successfully merging this pull request may close these issues.

1 participant