Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 May 2023 20:19:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271540] net/rubygem-grpc: fix build with clang 16
Message-ID:  <bug-271540-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271540

            Bug ID: 271540
           Summary: net/rubygem-grpc: fix build with clang 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

Clang 16 has a new error about incompatible function types, which shows
up when building net/rubygem-grpc:

  rb_channel.c:764:40: error: incompatible function pointer types passing
'VALUE (VALUE)' (aka 'unsigned long (unsigned long)') to parameter of type
'VALUE (*)(void *)' (aka 'unsigned long (*)(void *)')
[-Wincompatible-function-pointer-types]
    background_thread =3D rb_thread_create(run_poll_channels_loop, NULL);
                                         ^~~~~~~~~~~~~~~~~~~~~~
  /usr/local/include/ruby-3.1/ruby/internal/intern/thread.h:190:32: note:
passing argument to parameter 'f' here
  VALUE rb_thread_create(VALUE (*f)(void *g), void *g);
                                 ^

Fix it by adjusting the parameters for the thread callback functions.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271540-7788>