Bug#1073342: pd-mjlib: FTBFS: m_pd.h:85:26: error: static assertion failed: "field must be t_float!"
Source: pd-mjlib
Version: 0.2.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> cc -DPD -I "/usr/include/pd" -DPD_FLOATSIZE=64 -DUNIX -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -o src/monorhythm.linux-amd64-64.so.o -c src/monorhythm.c
> src/metroplus.c: In function ‘metroplus_time_seq’:
> src/metroplus.c:125:28: warning: assignment to ‘t_float *’ {aka ‘double *’} from incompatible pointer type ‘float *’ [-Wincompatible-pointer-types]
> 125 | x->x_times = (float *) malloc( ac * sizeof( float ));
> | ^
> src/metroplus.c:135:28: warning: assignment to ‘t_float *’ {aka ‘double *’} from incompatible pointer type ‘float *’ [-Wincompatible-pointer-types]
> 135 | x->x_times = (float *) malloc( sizeof( float ));
> | ^
> src/metroplus.c: In function ‘metroplus_time_float’:
> src/metroplus.c:152:20: warning: assignment to ‘t_float *’ {aka ‘double *’} from incompatible pointer type ‘float *’ [-Wincompatible-pointer-types]
> 152 | x->x_times = (float *) malloc( sizeof( float ));
> | ^
> src/monorhythm.c: In function ‘monorhythm_pattern_seq’:
> src/monorhythm.c:172:30: warning: assignment to ‘t_float *’ {aka ‘double *’} from incompatible pointer type ‘float *’ [-Wincompatible-pointer-types]
> 172 | x->x_pattern = (float *) malloc( ac * sizeof( float ));
> | ^
> In file included from src/pin~.c:1:
> src/pin~.c: In function ‘pin_tilde_setup’:
> /usr/include/pd/m_pd.h:85:26: error: static assertion failed: "field must be t_float!"
> 85 | #define PD_STATIC_ASSERT _Static_assert
> | ^~~~~~~~~~~~~~
> /usr/include/pd/m_pd.h:575:5: note: in expansion of macro ‘PD_STATIC_ASSERT’
> 575 | PD_STATIC_ASSERT(sizeof(((type *)NULL)->field) == sizeof(t_float), "field must be t_float!"); \
> | ^~~~~~~~~~~~~~~~
> src/pin~.c:198:5: note: in expansion of macro ‘CLASS_MAINSIGNALIN’
> 198 | CLASS_MAINSIGNALIN( pin_tilde_class, t_pin_tilde, x_f);
> | ^~~~~~~~~~~~~~~~~~
> make[1]: *** [/usr/share/pd-lib-builder//Makefile.pdlibbuilder:987: src/pin~.linux-amd64-64.so.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/pd-mjlib_0.2.0-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Reply to: