Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921103 - dev-ruby/grpc-1.54.0 - rb_channel.c: error: passing argument 1 of rb_thread_create from incompatible pointer type [-Wincompatible-pointer-types]
Summary: dev-ruby/grpc-1.54.0 - rb_channel.c: error: passing argument 1 of rb_thread_c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard: ~arch only
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-30 21:48 UTC by Toralf Förster
Modified: 2024-10-31 21:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.83 KB, text/plain)
2023-12-30 21:48 UTC, Toralf Förster
Details
dev-ruby:grpc-1.54.0:20231230-213956.log.xz (dev-ruby:grpc-1.54.0:20231230-213956.log.xz,90.44 KB, application/x-xz)
2023-12-30 21:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,208.11 KB, text/plain)
2023-12-30 21:48 UTC, Toralf Förster
Details
environment (environment,89.89 KB, text/plain)
2023-12-30 21:48 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.12 KB, application/x-xz)
2023-12-30 21:48 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,23.70 KB, application/x-xz)
2023-12-30 21:48 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,56.30 KB, application/x-xz)
2023-12-30 21:48 UTC, Toralf Förster
Details
ps-faux-20240101-081834-46.txt (ps-faux-20240101-081834-46.txt,234.66 KB, application/text-plain)
2024-01-01 10:28 UTC, Toralf Förster
Details
build.log.xz (build.log.xz,344.07 KB, application/x-xz)
2024-10-06 16:36 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-30 21:48:01 UTC
In file included from /usr/include/ruby-3.1.0/ruby/internal/core.h:34,
                 from /usr/include/ruby-3.1.0/ruby/ruby.h:28:
/usr/include/ruby-3.1.0/ruby/internal/core/rtypeddata.h:247:15: note: reserved declared here
  247 |         void *reserved[1]; /* For future extension.
      |               ^~~~~~~~
rb_channel.c: In function grpc_rb_channel_polling_thread_start:
rb_channel.c:764:40: error: passing argument 1 of rb_thread_create from incompatible pointer type [-Wincompatible-pointer-types]
  764 |   background_thread = rb_thread_create(run_poll_channels_loop, NULL);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20231227-054504

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 6ba7b66d9a2acb4a6fb9d295fee811d67bfd608d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Dec 30 19:32:00 2023 +0000

    2023-12-30 19:31:59 UTC

emerge -qpvO dev-ruby/grpc
[ebuild  N    ] dev-ruby/grpc-1.54.0  USE="-doc -test" RUBY_TARGETS="ruby31 -ruby32 -ruby33"
Comment 1 Toralf Förster gentoo-dev 2023-12-30 21:48:02 UTC
Created attachment 881043 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-30 21:48:03 UTC
Created attachment 881044 [details]
dev-ruby:grpc-1.54.0:20231230-213956.log.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-30 21:48:05 UTC
Created attachment 881045 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-12-30 21:48:06 UTC
Created attachment 881046 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-30 21:48:07 UTC
Created attachment 881047 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-30 21:48:08 UTC
Created attachment 881048 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-30 21:48:09 UTC
Created attachment 881049 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-30 21:49:57 UTC
FWIW this package does not respect -j4 :
        ├─sudo(7185)───bwrap.sh(7263)───bwrap(7614)───bwrap(7627)───entrypoint(7659)───timeout(15818)───emerge(15821)─┬─python3.11(18291)───python3.11(18303)───bash(18395)───sleep(23596)
        │                                                                                                             └─bash(18295)───ansifilter(18299)
        ├─sudo(7264)───bwrap.sh(7333)───bwrap(7624)───bwrap(7630)───entrypoint(7663)───timeout(4526)───emerge(4529)─┬─python3.11(18723)───python3.11(18751)───sandbox(18837,portage)───bash(18850)───bash(18933)───ruby31(19040)───make(19166)─┬─x86_64-pc-linux(4027)─┬─cc1plus(4051)
│                       └─as(4060)

...
 
├─x86_64-pc-linux(4134)─┬─cc1plus(4165)
│                       └─as(4178)

<repeated 50x>
Comment 9 Toralf Förster gentoo-dev 2024-01-01 10:28:04 UTC
Created attachment 881187 [details]
ps-faux-20240101-081834-46.txt

ps faux
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-11 20:58:45 UTC
https://github.com/grpc/grpc/blob/master/src/ruby/ext/grpc/extconf.rb#L129

We need to set GRPC_RUBY_BUILD_PROCS.
Comment 11 Larry the Git Cow gentoo-dev 2024-09-11 22:13:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=470e544d6e3d1fa514eb23aac769ad9953379eff

commit 470e544d6e3d1fa514eb23aac769ad9953379eff
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-09-11 22:11:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-11 22:12:25 +0000

    dev-ruby/grpc: respect MAKEOPTS
    
    extconf.rb uses nproc otherwise.
    
    Bug: https://bugs.gentoo.org/921103
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-ruby/grpc/grpc-1.54.0.ebuild | 8 +++++++-
 dev-ruby/grpc/grpc-1.59.2.ebuild | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)
Comment 12 Leonid Kopylov 2024-10-05 17:04:12 UTC
dev-ruby/grpc-1.59.2-r1 also doesn't build with gcc 14
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-06 15:04:41 UTC
Should be fixed by:

commit cdfb7a344fa4b1fd8b91502c545a20f8fbc52a3f
Author: Tomás Carvalho <tomas@thetimesweeper.com>
Date:   Thu Oct 3 11:50:41 2024 +0100

    dev-ruby/grpc: add 1.66.0

    Signed-off-by: Tomás Carvalho <tomas@thetimesweeper.com>
    Closes: https://github.com/gentoo/gentoo/pull/38861
    Signed-off-by: Sam James <sam@gentoo.org>
Comment 14 Leonid Kopylov 2024-10-06 16:36:33 UTC
(In reply to Sam James from comment #13)
> Should be fixed by:
> 
> commit cdfb7a344fa4b1fd8b91502c545a20f8fbc52a3f
> Author: Tomás Carvalho <tomas@thetimesweeper.com>
> Date:   Thu Oct 3 11:50:41 2024 +0100
> 
>     dev-ruby/grpc: add 1.66.0
> 
>     Signed-off-by: Tomás Carvalho <tomas@thetimesweeper.com>
>     Closes: https://github.com/gentoo/gentoo/pull/38861
>     Signed-off-by: Sam James <sam@gentoo.org>

also fails
Comment 15 Leonid Kopylov 2024-10-06 16:36:53 UTC
Created attachment 905006 [details]
build.log.xz
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-07 10:23:04 UTC
Let's discuss that in bug 939544 as it's a separate but related error.