[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1075188: libmpc: ftbfs with GCC-14



Control: tag -1 patch

On Wed, Jul 03, 2024 at 12:33:50PM +0000, Matthias Klose wrote:
> [...]
> The package fails to build in a test rebuild on at least amd64 with
> gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
> severity of this report will be raised before the trixie release.
> 
> The full build log can be found at:
> http://qa-logs.debian.net/2024/07/01/libmpc_0.1~r495-2_unstable_gccexp.log
> The last lines of the build log are at the end of this report.
> [...]
> ans.c: In function ‘NS_Analyse’:
> ans.c:290:120: error: passing argument 10 of ‘FindOptimalANS’ from incompatible pointer type [-Wincompatible-pointer-types]
>   290 |         FindOptimalANS ( MaxBand, MSflag, ANSspec_L, ANSspec_M, m->NS_Order_L, m->SNR_comp_L, m->FIR_L, smr.L, smr.M, m->SCF_Index_L, Transient );
>       |                                                                                                                       ~^~~~~~~~~~~~~
>       |                                                                                                                        |
>       |                                                                                                                        int *
> ans.c:159:40: note: expected ‘const int (*)[3]’ but argument is of type ‘int *’
>   159 |                  const int             scf [] [3],
>       |                  ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
> ans.c:295:120: error: passing argument 10 of ‘FindOptimalANS’ from incompatible pointer type [-Wincompatible-pointer-types]
>   295 |         FindOptimalANS ( MaxBand, MSflag, ANSspec_R, ANSspec_S, m->NS_Order_R, m->SNR_comp_R, m->FIR_R, smr.R, smr.S, m->SCF_Index_R, Transient );
>       |                                                                                                                       ~^~~~~~~~~~~~~
>       |                                                                                                                        |
>       |                                                                                                                        int *
> ans.c:159:40: note: expected ‘const int (*)[3]’ but argument is of type ‘int *’
>   159 |                  const int             scf [] [3],
>       |                  ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
> make[2]: *** [Makefile:387: ans.o] Error 1
> [...]

Just confirmed: the patch at
<https://gitweb.gentoo.org/repo/gentoo.git/tree/media-sound/musepack-tools/files/musepack-tools-495-incompatible-pointers.patch>
fixes this.

HTH,
Flo

Attachment: signature.asc
Description: PGP signature


Reply to: