-
Notifications
You must be signed in to change notification settings - Fork 269
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
Update grpc-tools to 1.12.4 #490
Conversation
This upgrade is needed to support Mesop builds of ARM on Linux. This includes running Linux on Docker images on MacOS. There are various warnings that show up when running ./scripts/cli.sh It's unclear to me if these are OK to ignore not. On the Linux builds, we get a various warnings like this: ``` external/com_google_protobuf_javascript/generator/js_generator.cc: In member function 'bool google::protobuf::compiler::js::GeneratorOptions::ParseFromOptions(const std::vector<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >&, std::string*)': external/com_google_protobuf_javascript/generator/js_generator.cc:3449:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 3449 | for (int i = 0; i < options.size(); i++) { | ~~^~~~~~~~~~~~~~~~ external/com_google_protobuf_javascript/generator/js_generator.cc: In member function 'void google::protobuf::compiler::js::Generator::GenerateFilesInDepOrder(const google::protobuf::compiler::js::GeneratorOptions&, google::protobuf::io::Printer*, const std::vector<const google::protobuf::FileDescriptor*>&) const': external/com_google_protobuf_javascript/generator/js_generator.cc:3555:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<const google::protobuf::FileDescriptor*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 3555 | for (int i = 0; i < files.size(); i++) { | ~~^~~~~~~~~~~~~~ ``` The warnings on MacOS are a bit different: ``` external/zlib/gzwrite.c:361:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ZEXPORT gzputs(file, s) INFO: From Compiling gzread.c [for tool]: external/zlib/gzread.c:21:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] local int gz_load(state, buf, len, have) external/zlib/infback.c:83:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] local void fixedtables(state) INFO: From Compiling src/google/protobuf/compiler/cpp/helpers.cc [for tool]: external/com_google_protobuf/src/google/protobuf/compiler/cpp/helpers.cc:197:25: warning: unused function 'VerifyInt32TypeToVerifyCustom' [-Wunused-function] inline VerifySimpleType VerifyInt32TypeToVerifyCustom(VerifyInt32Type t) { INFO: From Linking external/com_google_protobuf/libprotoc_lib.a [for tool]: /Library/Developer/CommandLineTools/usr/bin/libtool: warning duplicate member name 'enum.o' from 'bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/_objs/protoc_lib/0/enum.o(enum.o)' and 'bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/_objs/protoc_lib/1/enum.o(enum.o)' /Library/Developer/CommandLineTools/usr/bin/libtool: warning duplicate member name 'enum_field.o' from 'bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/_objs/protoc_lib/1/enum_field.o(enum_field.o)' and 'bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/_objs/protoc_lib/0/enum_field.o(enum_field.o)' ```
I think there's already warnings so I think it's fine |
This upgrade is needed to support Mesop builds of ARM on Linux. This includes running Linux on Docker images on MacOS. There are various warnings that show up when running ./scripts/cli.sh It's unclear to me if these are OK to ignore not. On the Linux builds, we get a various warnings like this: ``` external/com_google_protobuf_javascript/generator/js_generator.cc: In member function 'bool google::protobuf::compiler::js::GeneratorOptions::ParseFromOptions(const std::vector<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >&, std::string*)': external/com_google_protobuf_javascript/generator/js_generator.cc:3449:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 3449 | for (int i = 0; i < options.size(); i++) { | ~~^~~~~~~~~~~~~~~~ external/com_google_protobuf_javascript/generator/js_generator.cc: In member function 'void google::protobuf::compiler::js::Generator::GenerateFilesInDepOrder(const google::protobuf::compiler::js::GeneratorOptions&, google::protobuf::io::Printer*, const std::vector<const google::protobuf::FileDescriptor*>&) const': external/com_google_protobuf_javascript/generator/js_generator.cc:3555:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<const google::protobuf::FileDescriptor*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 3555 | for (int i = 0; i < files.size(); i++) { | ~~^~~~~~~~~~~~~~ ``` The warnings on MacOS are a bit different: ``` external/zlib/gzwrite.c:361:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ZEXPORT gzputs(file, s) INFO: From Compiling gzread.c [for tool]: external/zlib/gzread.c:21:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] local int gz_load(state, buf, len, have) external/zlib/infback.c:83:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] local void fixedtables(state) INFO: From Compiling src/google/protobuf/compiler/cpp/helpers.cc [for tool]: external/com_google_protobuf/src/google/protobuf/compiler/cpp/helpers.cc:197:25: warning: unused function 'VerifyInt32TypeToVerifyCustom' [-Wunused-function] inline VerifySimpleType VerifyInt32TypeToVerifyCustom(VerifyInt32Type t) { INFO: From Linking external/com_google_protobuf/libprotoc_lib.a [for tool]: /Library/Developer/CommandLineTools/usr/bin/libtool: warning duplicate member name 'enum.o' from 'bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/_objs/protoc_lib/0/enum.o(enum.o)' and 'bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/_objs/protoc_lib/1/enum.o(enum.o)' /Library/Developer/CommandLineTools/usr/bin/libtool: warning duplicate member name 'enum_field.o' from 'bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/_objs/protoc_lib/1/enum_field.o(enum_field.o)' and 'bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/_objs/protoc_lib/0/enum_field.o(enum_field.o)' ```
Ref: #361
This upgrade is needed to support Mesop builds of ARM on Linux. This includes running Linux on Docker images on MacOS.
There are various warnings that show up when running ./scripts/cli.sh
It's unclear to me if these are OK to ignore not. It's also unclear which package some of these errors are coming. I think some may be comming from "google-protobuf" library. I guess there was recently a patch version update to 3.21.3 (we have 3.21.2) but that is not released yet.
On the Linux builds, we get a various warnings like this:
The warnings on MacOS are a bit different (only pasted a small subset):