-
Notifications
You must be signed in to change notification settings - Fork 378
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
Use quotes instead of angles for an include in compute/global_operations #12854
Comments
Yes. But maybe we can change our intentions. Some background: with MSVC, the code generated by Protobuf has more warnings that one cares to deal with. We wanted to see warnings in our code, and suppress warnings for code in Protobuf, or gRPC, or any "external" projects. We use these: google-cloud-cpp/ci/gha/builds/lib/bazel.sh Lines 63 to 69 in 1d94ab4
You may be able to enable angle brackets in your code with something like this: https://github.com/googleapis/google-cloud-cpp/blob/main/bazel/googleapis.BUILD Which you would enable in your workspace file (or workspace function):
Maybe we should add the /FYI: @scotthart |
I am not clever enough to use Changing all the code to include with quotes is "easy". But requires changes to the code generator, and then changes to the CMake build scripts, and then changes to the CI scripts. |
Thnx @coryan for getting back to me! The idea you proposed does not seem to work, as we have confirmed offline. |
Thanks for the detailed bug report. The fixes are available from the |
What component of
google-cloud-cpp
is this related to?google/cloud/compute/global_operations
Describe the bug
This autogenerated line
google-cloud-cpp/google/cloud/compute/global_operations/v1/global_operations_connection_idempotency_policy.h
Line 24 in 1d94ab4
should be quoted.
To Reproduce Steps to reproduce the behavior:
cc_binary(
name = "gcp_bug",
srcs = ["gcp_bug.cc"],
deps = [
"@com_github_googleapis_google_cloud_cpp//:compute_instances",
],
)
bazel build : gcp_bug
results in:
Expected behavior
It should build.
Operating system:
PRETTY_NAME="Debian GNU/Linux rodete"
What compiler and version are you using?
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 13.2.0-4' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-13-oyarai/gcc-13-13.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-13-oyarai/gcc-13-13.2.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=28
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Debian 13.2.0-4)
What version of
google-cloud-cpp
are you using?https://github.com/googleapis/google-cloud-cpp/archive/v2.16.0.tar.gz
Additional context
I see that this might be intentional.
#3598
If so, can you suggest changes on my side to fix this.
The text was updated successfully, but these errors were encountered: