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

Fix build for the clang-10 / libstdc++-9 couple #2491

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

jcelerier
Copy link
Contributor

Fixes #2490

@vitaut
Copy link
Contributor

vitaut commented Sep 7, 2021

Looks like this crashes clang for some reason: https://github.com/jcelerier/fmt/runs/3534703685

@jcelerier
Copy link
Contributor Author

that's weird, the patch makes constexpr more restrictive... and the crash seems to happen at parsing stage ?! :throw_table:

@jcelerier
Copy link
Contributor Author

/me spins up a 18.04 docker...

@jcelerier
Copy link
Contributor Author

of course it works there....

from a ubuntu:18.04 image:

$ apt update
$ apt install git clang-9 gcc cmake build-essential
$ git clone https://github.com/jcelerier/fmt
$ mkdir build
$ cd build
$ CC=clang-9 CXX=clang++-9 cmake -DCMAKE_BUILD_TYPE=Debug  -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_STANDARD=11 -DFMT_DOC=OFF -DCMAKE_CXX_VISIBILITY_PRESET=hidden -DCMAKE_VISIBILITY_INLINES_HIDDEN=ON  -DFMT_PEDANTIC=ON -DFMT_WERROR=ON /fmt
$ make -j

do you see anything different I could be forgetting ?

@jcelerier
Copy link
Contributor Author

jcelerier commented Sep 7, 2021

also it seems to work here... https://github.com/fmtlib/fmt/runs/3534712060?check_suite_focus=true

I'm usually not the one to reach for the "bitflip-inducing cosmic ray" theory but... (or just ub in clang maybe)

@vitaut
Copy link
Contributor

vitaut commented Sep 7, 2021

Could be a transient issue.

@vitaut vitaut merged commit c771ba3 into fmtlib:master Sep 7, 2021
@vitaut
Copy link
Contributor

vitaut commented Sep 7, 2021

Merged, thanks!

PoetaKodu pushed a commit to pacc-repo/fmt that referenced this pull request Nov 11, 2021
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.

fmt::v8: bigint build failure with clang-10
2 participants