Skip to content

use legacy atomics on gcc < 5 #893

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

Merged
merged 1 commit into from
Nov 12, 2021

Conversation

rcsanchez97
Copy link
Contributor

So, it turns out that we need to use legacy atomics on all gcc 4.x versions. The original change in #889 still results in build failures on Debian 8 (gcc 4.9). It seems that using the new __atomic built-ins requires setting -std=c11. It is not clear that we want to require that for legacy platforms, so expanding the check in this way seems like the better way.

Full patch build (filtered down to the Debian 8 variant): https://spruce.mongodb.com/version/618d9bcd0305b93ba3051410/tasks?page=0&variant=%5Egcc49%24

Copy link
Contributor

@vector-of-bool vector-of-bool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch. Well, a simple fix. LGTM.

Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the quick fix!

@rcsanchez97 rcsanchez97 merged commit 02b91f4 into mongodb:master Nov 12, 2021
@rcsanchez97 rcsanchez97 deleted the legacy_atomics branch November 12, 2021 14:56
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.

3 participants