[DRE-maint] Bug#996219: ruby-enumerable-statistics: FTBFS with ruby3.0: statistics.c:67:32: error: ‘RComplex’ undeclared (first use in this function)
Antonio Terceiro
terceiro at debian.org
Tue Oct 12 13:04:23 BST 2021
Source: ruby-enumerable-statistics
Version: 2.0.1+dfsg-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0
Hi,
We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-enumerable-statistics was found to fail to build in that situation.
To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.
Relevant part (hopefully):
> gcc -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -I. -I/usr/include/x86_64-linux-gnu/ruby-3.0.0 -I/usr/include/ruby-3.0.0/ruby/backward -I/usr/include/ruby-3.0.0 -I. -DHAVE_RB_RATIONAL_NEW -DHAVE_RB_RATIONAL_NUM -DHAVE_RB_RATIONAL_DEN -DHAVE_RB_COMPLEX_RAW -DHAVE_RB_COMPLEX_REAL -DHAVE_RB_COMPLEX_IMAG -DHAVE_RB_COMPLEX_PLUS -DHAVE_RB_COMPLEX_DIV -DHAVE_RB_DBL_COMPLEX_NEW -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -ffile-prefix-map=/build/ruby3.0-2KsnwC/ruby3.0-3.0.2=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -o statistics.o -c statistics.c
> statistics.c: In function ‘complex_add’:
> statistics.c:67:25: warning: implicit declaration of function ‘R_CAST’ [-Wimplicit-function-declaration]
> 67 | # define RCOMPLEX(obj) (R_CAST(RComplex)(obj))
> | ^~~~~~
> statistics.c:152:18: note: in expansion of macro ‘RCOMPLEX’
> 152 | real = f_add(RCOMPLEX(self)->real, RCOMPLEX(other)->real);
> | ^~~~~~~~
> statistics.c:67:32: error: ‘RComplex’ undeclared (first use in this function)
> 67 | # define RCOMPLEX(obj) (R_CAST(RComplex)(obj))
> | ^~~~~~~~
> statistics.c:152:18: note: in expansion of macro ‘RCOMPLEX’
> 152 | real = f_add(RCOMPLEX(self)->real, RCOMPLEX(other)->real);
> | ^~~~~~~~
> statistics.c:67:32: note: each undeclared identifier is reported only once for each function it appears in
> 67 | # define RCOMPLEX(obj) (R_CAST(RComplex)(obj))
> | ^~~~~~~~
> statistics.c:152:18: note: in expansion of macro ‘RCOMPLEX’
> 152 | real = f_add(RCOMPLEX(self)->real, RCOMPLEX(other)->real);
> | ^~~~~~~~
> statistics.c: In function ‘f_zero_p’:
> statistics.c:47:33: error: ‘RRational’ undeclared (first use in this function)
> 47 | # define RRATIONAL(obj) (R_CAST(RRational)(obj))
> | ^~~~~~~~~
> statistics.c:400:17: note: in expansion of macro ‘RRATIONAL’
> 400 | VALUE num = RRATIONAL(x)->num;
> | ^~~~~~~~~
> statistics.c: In function ‘rb_rational_plus’:
> statistics.c:47:33: error: ‘RRational’ undeclared (first use in this function)
> 47 | # define RRATIONAL(obj) (R_CAST(RRational)(obj))
> | ^~~~~~~~~
> statistics.c:613:17: note: in expansion of macro ‘RRATIONAL’
> 613 | VALUE num = RRATIONAL(self)->num;
> | ^~~~~~~~~
> statistics.c: In function ‘calculate_and_set_mean’:
> statistics.c:67:32: error: ‘RComplex’ undeclared (first use in this function)
> 67 | # define RCOMPLEX(obj) (R_CAST(RComplex)(obj))
> | ^~~~~~~~
> statistics.c:751:24: note: in expansion of macro ‘RCOMPLEX’
> 751 | VALUE const real = RCOMPLEX(sum)->real;
> | ^~~~~~~~
> make[1]: *** [Makefile:245: statistics.o] Error 1
The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-enumerable-statistics/ruby-enumerable-statistics_2.0.1+dfsg-3+rebuild1633378917_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211012/9dfdbb03/attachment-0001.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list