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

Error during ninja check: no type named string_view in namespace absl #232

Open
cymtrick opened this issue Nov 29, 2023 · 1 comment
Open

Comments

@cymtrick
Copy link

cymtrick commented Nov 29, 2023

Hi Team,

I trying to run the ninja check and facing this error. I am using this cmake in build dir

cmake .. -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DLIB_PROTO_MUTATOR_DOWNLOAD_PROTOBUF=ON

and facing the error with string_view .

                    ~~~~~~^
/root/kubefuzzthesis/libs/libprotobuf-mutator/build/external.protobuf/include/absl/time/civil_time.h:509:34: error: no type named 'string_view' in namespace 'absl'
bool ParseLenientCivilTime(absl::string_view s, CivilSecond* c);
                           ~~~~~~^
/root/kubefuzzthesis/libs/libprotobuf-mutator/build/external.protobuf/include/absl/time/civil_time.h:510:34: error: no type named 'string_view' in namespace 'absl'
bool ParseLenientCivilTime(absl::string_view s, CivilMinute* c);
                           ~~~~~~^
/root/kubefuzzthesis/libs/libprotobuf-mutator/build/external.protobuf/include/absl/time/civil_time.h:511:34: error: no type named 'string_view' in namespace 'absl'
bool ParseLenientCivilTime(absl::string_view s, CivilHour* c);
                           ~~~~~~^
/root/kubefuzzthesis/libs/libprotobuf-mutator/build/external.protobuf/include/absl/time/civil_time.h:512:34: error: no type named 'string_view' in namespace 'absl'
bool ParseLenientCivilTime(absl::string_view s, CivilDay* c);
                           ~~~~~~^
/root/kubefuzzthesis/libs/libprotobuf-mutator/build/external.protobuf/include/absl/time/civil_time.h:513:34: error: no type named 'string_view' in namespace 'absl'
bool ParseLenientCivilTime(absl::string_view s, CivilMonth* c);

Thanks
prashanth

@cymtrick cymtrick changed the title Need help with issue during ninja check: no type named string_view in namespace absl Error during ninja check: no type named string_view in namespace absl Nov 29, 2023
@jagvirdehal
Copy link

Also having the same issue. It gets resolved with the download protobuf cmake argument, but it then causes more issues down the line with undefined references

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