Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943784 - Ruby extensions can't be built with -std=gnu23 because of ANYARGS macro (dev-ruby/brotli-0.6.0 - [libtool] [gcc-15] /.../anyargs.h: error: passing argument 3 of rb_define_singleton_method_m1 from incompatible pointer type)
Summary: Ruby extensions can't be built with -std=gnu23 because of ANYARGS macro (dev-...
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:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 18:47 UTC by Toralf Förster
Modified: 2024-12-01 09:38 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,21.62 KB, text/plain)
2024-11-18 18:47 UTC, Toralf Förster
Details
dev-ruby:brotli-0.6.0:20241118-050845.log (dev-ruby:brotli-0.6.0:20241118-050845.log,19.05 KB, text/plain)
2024-11-18 18:47 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,82.36 KB, application/x-xz)
2024-11-18 18:47 UTC, Toralf Förster
Details
environment (environment,92.99 KB, text/plain)
2024-11-18 18:47 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-11-18 18:47 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,30.62 KB, application/x-xz)
2024-11-18 18:47 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,1.43 KB, application/x-xz)
2024-11-18 18:47 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,85.35 KB, application/x-xz)
2024-11-18 18:47 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 2024-11-18 18:47:11 UTC
x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-3.2.0/x86_64-linux -I/usr/include/ruby-3.2.0/ruby/backward -I/usr/include/ruby-3.2.0 -I.    -DHAVE_BROTLI_DECODE_H -DHAVE_BROTLI_ENCODE_H    -fPIC -O2 -pipe -march=native -fno-diagnostics-color     -o brotli.o -c brotli.c
In file included from /usr/include/ruby-3.2.0/ruby/ruby.h:27,
                 from /usr/include/ruby-3.2.0/ruby.h:38,
                 from brotli.h:4,
                 from brotli.c:1:
brotli.c: In function Init_brotli:
/usr/include/ruby-3.2.0/ruby/internal/anyargs.h:363:45: error: passing argument 3 of rb_define_singleton_method_m1 from incompatible pointer type [-Wincompatible-pointer-types]
  363 | # define RUBY_METHOD_FUNC(func) RBIMPL_CAST((VALUE (*)(ANYARGS))(func))
      |                                             ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0-20241110-003003

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.3
llvm-config: 19.1.3
Python 3.12.7
go version go1.23.2 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.71.1
  [2]   rust-bin-1.77.1
  [3]   rust-bin-1.81.0
  [4]   rust-bin-1.82.0
  [5]   rust-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.432_p06 [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


  HEAD of ::gentoo
commit b813d907728743e9f9306611369cb4aba3f37bec
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 18 03:18:26 2024 +0000

    2024-11-18 03:18:25 UTC

emerge -qpvO =dev-ruby/brotli-0.6.0
[ebuild  N    ] dev-ruby/brotli-0.6.0  USE="-doc -test" RUBY_TARGETS="ruby32 ruby33 -ruby31"
Comment 1 Toralf Förster gentoo-dev 2024-11-18 18:47:12 UTC
Created attachment 909017 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-18 18:47:13 UTC
Created attachment 909018 [details]
dev-ruby:brotli-0.6.0:20241118-050845.log
Comment 3 Toralf Förster gentoo-dev 2024-11-18 18:47:14 UTC
Created attachment 909019 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-11-18 18:47:16 UTC
Created attachment 909020 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-11-18 18:47:16 UTC
Created attachment 909021 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-18 18:47:17 UTC
Created attachment 909022 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-18 18:47:18 UTC
Created attachment 909023 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-18 18:47:19 UTC
Created attachment 909024 [details]
qlist-info.txt.xz
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 16:36:13 UTC
graaff and I discussed this on IRC and I've filed https://bugs.ruby-lang.org/issues/20908.
Comment 10 Hans de Graaff gentoo-dev Security 2024-11-26 06:44:25 UTC
*** Bug 943988 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2024-12-01 09:38:37 UTC
The bug has been closed via the following commit(s):

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

commit dd10b2415464fd308a07e50545202a1ee82d2ed5
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2024-12-01 08:52:10 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-12-01 09:38:29 +0000

    dev-ruby/brotli: fix gnu23 compilation
    
    Closes: https://bugs.gentoo.org/943784
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/brotli/brotli-0.6.0-r1.ebuild             | 39 ++++++++++++++++++
 .../brotli/files/brotli-0.6.0-definemethod.patch   | 46 ++++++++++++++++++++++
 2 files changed, 85 insertions(+)