Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 939544

Summary: dev-ruby/grpc-1.66.0-r1 - [gcc-15] rb_compression_options.c: error: passing argument 2 of grpc_compression_algorithm_name from incompatible pointer type [-Wincomp
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal CC: admnd, doug.hunley, juho-mikko.pellinen, leonchik1976, peter.volkov
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=921103
https://github.com/grpc/grpc/issues/37731
https://github.com/grpc/grpc/pull/37741
Whiteboard: ~arch only
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-ruby:grpc-1.59.2:20240912-174018.log.xz
emerge-history.txt.xz
environment
etc.portage.tar.xz
qlist-info.txt.xz

Description Toralf Förster gentoo-dev 2024-09-12 18:38:16 UTC
rb_call_credentials.c:164:13: warning: unused parameter num_creds_md [-Wunused-parameter]
  164 |     size_t* num_creds_md, grpc_status_code* status,
      |     ~~~~~~~~^~~~~~~~~~~~
rb_call_credentials.c:164:45: warning: unused parameter status [-Wunused-parameter]
  164 |     size_t* num_creds_md, grpc_status_code* status,
      |                           ~~~~~~~~~~~~~~~~~~^~~~~~
rb_compression_options.c:301:56: error: passing argument 2 of grpc_compression_algorithm_name from incompatible pointer type [-Wincompatible-pointer-types]
  301 |   if (!grpc_compression_algorithm_name(internal_value, &algorithm_name)) {
      |                                                        ^~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib-20240905-152002

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15

  Block bug #35155 if this looks like a parallel build issue.
  Possible reproducer: MAKEOPTS='...  shuffle=227384982'

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
Python 3.12.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.80.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.3 *
go version go1.23.0 linux/amd64

  HEAD of ::gentoo
commit 0fff567a78a6a0fc5653c62614fb733ee66bea75
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Sep 12 17:04:04 2024 +0000

    2024-09-12 17:04:03 UTC

emerge -qpvO =dev-ruby/grpc-1.59.2
[ebuild  N    ] dev-ruby/grpc-1.59.2  USE="-doc -test" RUBY_TARGETS="ruby31 ruby32 ruby33"
Comment 1 Toralf Förster gentoo-dev 2024-09-12 18:38:17 UTC
Created attachment 902799 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-09-12 18:38:18 UTC
Created attachment 902800 [details]
dev-ruby:grpc-1.59.2:20240912-174018.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-09-12 18:38:19 UTC
Created attachment 902801 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-09-12 18:38:21 UTC
Created attachment 902802 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-09-12 18:38:22 UTC
Created attachment 902803 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-09-12 18:38:23 UTC
Created attachment 902804 [details]
qlist-info.txt.xz
Comment 7 Agostino Sarubbo gentoo-dev 2024-10-07 06:56:19 UTC
ci has reproduced this issue with version 1.66.0 - Updating summary.
Comment 8 Leonid Kopylov 2024-10-07 07:25:01 UTC
same for gcc 14
Comment 9 Agostino Sarubbo gentoo-dev 2024-10-07 10:11:49 UTC
ci has reproduced this issue with version 1.66.0-r1 - Updating summary.
Comment 10 Juho-Mikko Pellinen 2024-10-07 19:29:03 UTC
The upstream patch fixes this bug (at least for me :)
Comment 11 Leonid Kopylov 2024-10-08 04:07:13 UTC
(In reply to Agostino Sarubbo from comment #9)
> ci has reproduced this issue with version 1.66.0-r1 - Updating summary.

can also confirm, patch also to build it with gcc 14
Comment 12 Leonid Kopylov 2024-10-08 04:07:41 UTC
(In reply to Juho-Mikko Pellinen from comment #10)
> The upstream patch fixes this bug (at least for me :)

can also confirm, patch allows to build it with gcc 14
Comment 13 Larry the Git Cow gentoo-dev 2024-10-11 02:50:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fb4fd3e5ba0ba4414a93fab3bbe1651201245b1

commit 0fb4fd3e5ba0ba4414a93fab3bbe1651201245b1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-11 02:48:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-11 02:49:16 +0000

    dev-ruby/grpc: fix modern C issue
    
    Also, fix pkg_setup stub from testing.
    
    Closes: https://bugs.gentoo.org/939544
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-ruby/grpc/files/grpc-1.66.0-c99.patch          | 22 ++++++++++++++++++++++
 ...grpc-1.66.0-r1.ebuild => grpc-1.66.0-r2.ebuild} |  4 +++-
 2 files changed, 25 insertions(+), 1 deletion(-)