Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951447 - www-servers/nginx-unit-1.34.2 - [go-1.24] [gcc-15] [ffmpeg] anyargs.h: error: passing argument 1 of rb_thread_create from incompatible pointer type [-Wincompatible-pointe
Summary: www-servers/nginx-unit-1.34.2 - [go-1.24] [gcc-15] [ffmpeg] anyargs.h: error:...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2025-03-16 08:52 UTC by Toralf Förster
Modified: 2025-03-18 18:04 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.25 KB, text/plain)
2025-03-16 08:52 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,69.93 KB, application/x-xz)
2025-03-16 08:52 UTC, Toralf Förster
Details
environment (environment,111.52 KB, text/plain)
2025-03-16 08:52 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.37 KB, application/x-xz)
2025-03-16 08:52 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,33.10 KB, application/x-xz)
2025-03-16 08:52 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,352 bytes, application/x-xz)
2025-03-16 08:52 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,71.99 KB, application/x-xz)
2025-03-16 08:52 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.93 KB, application/x-xz)
2025-03-16 08:52 UTC, Toralf Förster
Details
www-servers:nginx-unit-1.34.2:20250316-034149.log (www-servers:nginx-unit-1.34.2:20250316-034149.log,15.55 KB, text/plain)
2025-03-16 08:52 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2025-03-16 08:52:01 UTC
                 from /usr/include/ruby-3.4.0/ruby/defines.h:72,
                 from /usr/include/ruby-3.4.0/ruby/ruby.h:25,
                 from /usr/include/ruby-3.4.0/ruby.h:38,
                 from src/ruby/nxt_ruby.h:11,
                 from src/ruby/nxt_ruby.c:6:
src/ruby/nxt_ruby.c: In function nxt_ruby_thread_create_gvl:
/usr/include/ruby-3.4.0/ruby/internal/anyargs.h:363:45: error: passing argument 1 of rb_thread_create from incompatible pointer type [-Wincompatible-pointer-types]
  363 | # define RUBY_METHOD_FUNC(func) RBIMPL_CAST((VALUE (*)(ANYARGS))(func))
/usr/include/ruby-3.4.0/ruby/internal/cast.h:31:29: note: in definition of macro RBIMPL_CAST

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened_systemd-20250310-031002

  KEYWORDED/UNMASKED

  [ffmpeg] Requested by sam
  <media-video/ffmpeg-9999
  =media-video/ffmpeg-7*

  [gcc-15] Requested by sam
  <sys-devel/gcc-15.0.9999:15
  <sys-devel/gcc-15.0.9999:15

  [go-1.24] Requested by WilliamH - maybe block bug 950018
  <dev-lang/go-9999
  <dev-lang/go-9999

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 20.1.0
llvm-config: 20.1.0
Python 3.12.9
go version go1.24.1 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby34 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.85.0
  [2]   rust-1.85.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm


  HEAD of ::gentoo
commit 5ae5106b8383b2f8911bfbafe1a7fde72490c472
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Mar 16 02:48:30 2025 +0000

    2025-03-16 02:48:29 UTC

emerge -qpvO =www-servers/nginx-unit-1.34.2
[ebuild  N    ] www-servers/nginx-unit-1.34.2  USE="ruby ssl -perl -php8-3 -python" PYTHON_SINGLE_TARGET="python3_12 -python3_13"
Comment 1 Toralf Förster gentoo-dev 2025-03-16 08:52:03 UTC
Created attachment 920884 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-03-16 08:52:06 UTC
Created attachment 920885 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2025-03-16 08:52:07 UTC
Created attachment 920886 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-03-16 08:52:11 UTC
Created attachment 920887 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-03-16 08:52:12 UTC
Created attachment 920888 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-03-16 08:52:13 UTC
Created attachment 920889 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-03-16 08:52:15 UTC
Created attachment 920890 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2025-03-16 08:52:17 UTC
Created attachment 920891 [details]
temp.tar.xz
Comment 9 Toralf Förster gentoo-dev 2025-03-16 08:52:19 UTC
Created attachment 920892 [details]
www-servers:nginx-unit-1.34.2:20250316-034149.log
Comment 10 Larry the Git Cow gentoo-dev 2025-03-17 21:16:06 UTC
The bug has been closed via the following commit(s):

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

commit c6af387d000430cd399d53b8b91021ffeef08e51
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2025-03-17 21:15:17 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2025-03-17 21:15:17 +0000

    www-servers/nginx-unit: Fix compilation error
    
    Closes: https://bugs.gentoo.org/951447
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 www-servers/nginx-unit/nginx-unit-1.34.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-17 21:25:07 UTC
That isn't the right fix for this -- see https://wiki.gentoo.org/wiki/Modern_C_porting#Unprototyped_functions. It's better to do -std=gnu17 (with an upstream report) as a workaround than it is to -Wno-x or -Wno-error=x.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-17 21:29:17 UTC
I'm having a quick look. I remember looking into this before for another package (the Ruby thing).
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-17 21:37:52 UTC
See https://github.com/grpc/grpc/pull/34481/files where they launder it with a wrapper. That needs to be done here too. Can you report it upstream?