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

fatal error C1090 : CMake build error on windows #36634

Closed
sathishk-r opened this issue May 16, 2024 · 1 comment
Closed

fatal error C1090 : CMake build error on windows #36634

sathishk-r opened this issue May 16, 2024 · 1 comment

Comments

@sathishk-r
Copy link

sathishk-r commented May 16, 2024

What version of gRPC and what language are you using?

using v1.60.0, C++ language

What operating system (Linux, Windows,...) and version?

Windows

What runtime / compiler are you using (e.g. python version or version of gcc)

MSVC

What did you do?

Building gRPC v#1.60.0 for windows using cmake. I am able to build for the release configuration, Debug configuration is failing.

What did you expect to see?

expected debug libraries are built without any issue.

What did you see instead?

cmake build is failing, issue is not consistent with the same file, it is randomly happening at different files with the same error.
third_party\re2\re2\regexp.cc : fatal error C1090: PDB API call failed, error code '5':
proto_parser_helper.cc : fatal error C1090: PDB API call failed, error code '5':

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

See TROUBLESHOOTING.md for how to diagnose problems better.

Anything else we should know about your project / environment?

@sathishk-r sathishk-r changed the title CMake build error on windows fatal error C1090 : CMake build error on windows May 16, 2024
@yashykt
Copy link
Member

yashykt commented May 20, 2024

We've got debug builds on windows that are tested with CI.

In your specific case, it looks like an environment setup issue (seemingly unrelated to gRPC). I don't have a clear solution for you but you can try the steps at https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1090?view=msvc-170.

Previously I've also run into issues on windows with parallel builds, so removing the -j or equivalent option might do the trick for you.

Also, take a look at https://github.com/grpc/grpc/blob/master/tools/run_tests/helper_scripts/build_cxx.bat for how we setup our builds for windows.

You might also try reaching out to the wider grpc.io google group or stack-overflow for wider community support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants