Bug#1066328: scalapack: FTBFS: igsum2d_.c:154:7: error: implicit declaration of function =?UTF-8?Q?=E2=80=98BI=5Fimvcopy=E2=80=99; ?= did you mean ‘BI_zmvcopy’? [-Werror=implicit-function-declaration]

Andrey Rakhmatullin wrar at debian.org
Sat Mar 16 13:22:34 GMT 2024


Control: forwarded -1 https://github.com/Reference-ScaLAPACK/scalapack/issues/31

On Wed, Mar 13, 2024 at 12:44:37PM +0100, Lucas Nussbaum wrote:
> > /<<PKGBUILDDIR>>/BLACS/SRC/igsum2d_.c: In function ‘igsum2d_’:
> > /<<PKGBUILDDIR>>/BLACS/SRC/igsum2d_.c:154:7: error: implicit declaration of function ‘BI_imvcopy’; did you mean ‘BI_zmvcopy’? [-Werror=implicit-function-declaration]
BLACS/SRC is a smelly mess of one-function files calling each other
without (in most cases at least) bothering to declare prototypes.
I started with adding the following prototypes to Bdef.h (before the last
#endif) because adding them to individual files is too much work:

void BI_dmvcopy(Int m, Int n, double *A, Int lda, double *buff);
void BI_dvmcopy(Int m, Int n, double *A, Int lda, double *buff);
void BI_imvcopy(Int m, Int n, Int *A, Int lda, Int *buff);
void BI_ivmcopy(Int m, Int n, Int *A, Int lda, Int *buff);
void BI_smvcopy(Int m, Int n, float *A, Int lda, float *buff);
void BI_svmcopy(Int m, Int n, float *A, Int lda, float *buff);
void BI_TransDist(BLACSCONTEXT *ctxt, char scope, Int m, Int n, Int *rA,
                  Int *cA, Int ldrc, BI_DistType *dist, Int rdest, Int cdest);

But the next errors are things like "BLACS/SRC/blacs_init_.c:35:4: error:
implicit declaration of function ‘blacs_gridmap_’" and blacs_init_.c calls
either Cblacs_gridmap or blacs_gridmap_ but only declares a prototype for
the former and at this point I think let's the authors of this code sort
this mess.

-- 
WBR, wRAR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20240316/53e5b27d/attachment-0001.sig>


More information about the debian-science-maintainers mailing list