You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of protobuf and what language are you using?
Version: v27.2 63def39
Language: Ruby What operating system (Linux, Windows, ...) and version?
Arch Linux rolling What runtime / compiler are you using (e.g., python version or gcc version)
$ gcc --version
gcc (GCC) 14.1.1 20240522
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ ruby --version
ruby 3.2.4 (2024-04-23 revision af471c0e01) [x86_64-linux]
What did you do?
Steps to reproduce the behavior:
$ curl -o protobuf-27.2.tar.gz https://github.com/protocolbuffers/protobuf/archive/v27.2/protobuf-27.2.tar.gz
$ cd protobuf-27.2/ruby
$ rake
What did you expect to see
The extension for the ruby protobuf gem build without error. What did you see instead?
The build failing due to the compiler detecting an incompatible pointer type conversion
compiling ../../../../ext/google/protobuf_c/shared_message.c
../../../../ext/google/protobuf_c/defs.c: In function ‘MethodDescriptor_initialize’:
../../../../ext/google/protobuf_c/defs.c:1513:19: error: assignment to ‘const upb_MethodDef *’ from incompatible pointer type ‘const upb_ServiceDef *’ [-Wincompatible-pointer-types]
1513 | self->methoddef = (const upb_ServiceDef*)NUM2ULL(ptr);
| ^
make: *** [Makefile:247: defs.o] Error 1
make: *** Waiting for unfinished jobs....
rake aborted!
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
What version of protobuf and what language are you using?
Version: v27.2 63def39
Language: Ruby
What operating system (Linux, Windows, ...) and version?
Arch Linux rolling
What runtime / compiler are you using (e.g., python version or gcc version)
What did you do?
Steps to reproduce the behavior:
What did you expect to see
The extension for the ruby protobuf gem build without error.
What did you see instead?
The build failing due to the compiler detecting an incompatible pointer type conversion
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
The text was updated successfully, but these errors were encountered: