-
Notifications
You must be signed in to change notification settings - Fork 74
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
Macro conflict in fuzztest/regexp.cc
on NO_THREAD_SAFETY_ANALYSIS
#41
Comments
markww
pushed a commit
to google-research/raksha
that referenced
this issue
Sep 30, 2022
Currently, the fuzztest library has an issue where two macros with colliding names are leaked from the headers of `absl` and `re2` into one of fuzztest's `.cc` files ( google/fuzztest#41 ). Once this issue is fixed, we should re-enable this warning.
markww
pushed a commit
to google-research/raksha
that referenced
this issue
Sep 30, 2022
Currently, the fuzztest library has an issue where two macros with colliding names are leaked from the headers of `absl` and `re2` into one of fuzztest's `.cc` files ( google/fuzztest#41 ). Once this issue is fixed, we should re-enable this warning.
markww
pushed a commit
to google-research/raksha
that referenced
this issue
Sep 30, 2022
Currently, the fuzztest library has an issue where two macros with colliding names are leaked from the headers of `absl` and `re2` into one of fuzztest's `.cc` files ( google/fuzztest#41 ). Once this issue is fixed, we should re-enable this warning.
copybara-service bot
pushed a commit
to abseil/abseil-cpp
that referenced
this issue
Oct 3, 2022
by default. The compatibility macro `ABSL_LEGACY_THREAD_ANNOTATIONS` can be defined on the compile command-line to temporarily restore these spellings. All of the thread annotation macros are available under ABSL_ prefixed spellings in `absl/base/thread_annotations.h`. The compatibility macro and the legacy spellings will be removed in the future. See google/fuzztest#41 PiperOrigin-RevId: 478498273 Change-Id: I120ad6480d031642bf95a11bf72ab883d9161810
Hi Mark. Did the Abseil commit 6acb60c fix the issue for you? |
copybara-service bot
pushed a commit
that referenced
this issue
Oct 3, 2022
PiperOrigin-RevId: 478523114
copybara-service bot
pushed a commit
that referenced
this issue
Oct 3, 2022
PiperOrigin-RevId: 478523114
copybara-service bot
pushed a commit
that referenced
this issue
Oct 3, 2022
PiperOrigin-RevId: 478523114
copybara-service bot
pushed a commit
that referenced
this issue
Oct 3, 2022
PiperOrigin-RevId: 478523114
copybara-service bot
pushed a commit
that referenced
this issue
Oct 3, 2022
PiperOrigin-RevId: 478523114
Bumping up your ABSL version like in 3ae1783 fixes the issue. |
markww
pushed a commit
to google-research/raksha
that referenced
this issue
Oct 3, 2022
Currently, the fuzztest library has an issue where two macros with colliding names are leaked from the headers of `absl` and `re2` into one of fuzztest's `.cc` files ( google/fuzztest#41 ). Once this issue is fixed, we should re-enable this warning.
netkex
pushed a commit
to netkex/abseil-cpp
that referenced
this issue
Apr 3, 2024
by default. The compatibility macro `ABSL_LEGACY_THREAD_ANNOTATIONS` can be defined on the compile command-line to temporarily restore these spellings. All of the thread annotation macros are available under ABSL_ prefixed spellings in `absl/base/thread_annotations.h`. The compatibility macro and the legacy spellings will be removed in the future. See google/fuzztest#41 PiperOrigin-RevId: 478498273 Change-Id: I120ad6480d031642bf95a11bf72ab883d9161810
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While attempting to build
fuzztest
, I encountered the following (warning, upgraded to) error:It looks like
re2
andabsl
both enable a macro calledNO_THREAD_SAFETY_ANALYSIS
with different definitions.re2
is doing it with a#ifndef
guard, whileabsl
is unconditionally dropping it in.It looks like this could possibly be solved by just making the
re2
headers be included before theabsl
headers, though that would be a non-standard include order. The real fix may be to ask one or both of the upstream repos to change the name of their macro or at least#undef
it when they're done with it. Alternatively, (though this would be ugly) they could be explicitly#undef
ed between the inclusions in this file.The text was updated successfully, but these errors were encountered: