Bugzilla – Bug 1228353
Package rubygem-grpc does not build with gcc 14 because of new errors (that were previously warnings)
Last modified: 2024-07-26 12:26:14 UTC
Package rubygem-grpc fails to build with GCC 14 because of various C99 violations which previously just generated warning s but which cause errors with GCC 14 by default. For more information see https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571. BuildService failures are available online at: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/rubygem-grpc/standard/x86_64 The build with GCC 14 can now be tried locally with: osc build --clean --alternative-project home:rguenther:nextgcc The (first) error that stops the build is: [ 34s] rb_compression_options.c: In function ‘grpc_rb_compression_options_algorithm_value_to_name_internal’: [ 34s] rb_compression_options.c:301:56: error: passing argument 2 of ‘grpc_compression_algorithm_name’ from incompatible pointer type [-Wincompatible-pointer-types] [ 34s] 301 | if (!grpc_compression_algorithm_name(internal_value, &algorithm_name)) { [ 34s] | ^~~~~~~~~~~~~~~ [ 34s] | | [ 34s] | char ** [ 34s] In file included from rb_compression_options.c:29: [ 34s] /usr/include/grpc/compression.h:50:56: note: expected ‘const char **’ but argument is of type ‘char **’ [ 34s] 50 | grpc_compression_algorithm algorithm, const char** name); [ 34s] | ~~~~~~~~~~~~~^~~~
Apparently I have already filed a bug for this. *** This bug has been marked as a duplicate of bug 1225920 ***