Windows CMake FetchContent error

35 views
Skip to first unread message

Joshua Raymond

unread,
Jul 28, 2022, 6:45:11 PMJul 28
to grpc.io
I am trying to get the hello world example going from a fresh project using the Cmake FetchContent method to get gRPC on Windows 10. The example project I used works if I run it under WSL2 on Windows so I believe the project is okay. It keeps throwing the follow errors when I attempt to build on windows, which appear to be around a subbranch and filenames too long.

error: unable to create file objectivec/Tests/CocoaPods/OSXCocoaPodsTester/OSXCocoaPodsTester.xcodeproj/project.xcworkspace/contents.xcworkspacedata: Filename too long
fatal: cannot create directory at 'objectivec/Tests/CocoaPods/OSXCocoaPodsTester/OSXCocoaPodsTester.xcodeproj/xcshareddata/xcschemes': Filename too long
fatal: Unable to checkout 'bc1773c42c9c3c522145a3119e989e0dff2a8d54' in submodule path 'third_party/bloaty/third_party/protobuf'
Submodule path 'third_party/bloaty/third_party/re2': checked out '5bd613749fd530b576b890283bfb6bc6ea6246cb'
Submodule path 'third_party/bloaty/third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
fatal: Failed to recurse into submodule path 'third_party/bloaty'
Submodule path 'third_party/boringssl-with-bazel': checked out 'b9232f9e27e5668bc0414879dcdedb2a59ea75f2'
Submodule path 'third_party/cares/cares': checked out '6654436a307a5a686b008c1d4c93b0085da6e6d8'
Submodule path 'third_party/envoy-api': checked out '9c42588c956220b48eb3099d186487c2f04d32ec'
Submodule path 'third_party/googleapis': checked out '2f9af297c84c55c8b871ba4495e01ade42476c92'
Submodule path 'third_party/googletest': checked out '0e402173c97aea7a00749e825b194bfede4f2e45'
Submodule path 'third_party/libuv': checked out '02a9e1be252b623ee032a3137c0b0c94afbe6809'
Submodule path 'third_party/opencensus-proto': checked out '4aa53e15cbf1a47bc9087e6cfdca214c1eea4e89'
Submodule path 'third_party/opentelemetry': checked out '60fa8754d890b5c55949a8c68dcfd7ab5c2395df'
Submodule path 'third_party/protobuf': checked out '22d0e265de7d2b3d2e9a00d071313502e7d4cccf'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/protobuf/third_party/benchmark'
Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/protobuf/third_party/googletest'
Cloning into 'C:/AEDT_Repository/Developers/JD/Joshua Raymond/DelayModelApnup2/cmake-build-debug-visual-studio/_deps/grpc-src/third_party/protobuf/third_party/benchmark'...
Cloning into 'C:/AEDT_Repository/Developers/JD/Joshua Raymond/DelayModelApnup2/cmake-build-debug-visual-studio/_deps/grpc-src/third_party/protobuf/third_party/googletest'...
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8'
Submodule path 'third_party/protobuf/third_party/googletest': checked out '5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081'
Submodule path 'third_party/re2': checked out '8e08f47b11b413302749c0d8b17a1c94777495d5'
Submodule path 'third_party/xds': checked out 'cb28da3451f158a947dfc45090fe92b07b243bc1'
Submodule path 'third_party/zlib': checked out '21767c654d31d2dccdde4330529775c6c5fd5389'
CMake Error at grpc-subbuild/grpc-populate-prefix/tmp/grpc-populate-gitclone.cmake:62 (message):
  Failed to update submodules in: 'C:/AEDT_Repository/Developers/JD/Joshua
  Raymond/DelayModelApnup2/cmake-build-debug-visual-studio/_deps/grpc-src'

Thanks for any help you can provide.
Reply all
Reply to author
Forward
0 new messages