• Bug#1066328: scalapack: FTBFS: igsum2d_.c:154:7: error: implicit declar

    From Andrey Rakhmatullin@21:1/5 to Lucas Nussbaum on Sat Mar 16 14:30:01 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

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmX1nRotFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh MQQP/jxxuii3NLQ7aoRqx1ZZJo4AItTjwiTY0QuyJiakccwP2eSLqwFvuY2qtgho dlaRLZwlrS6UnEKbYytnmQVULLRca1k3ClCZRUcxHo1sS+X7g8oWhjwmN8stdjJo eCzDC4RtHTpUNG/ckd2q9GItGfQdebT57jrpkL1JROyZrdGyAMDFWmnJOOF7x/If P8ly+ZEH6ru62aLbzT8uZ67tw4+kEGQKOrMadc7E1JIPeOwWmwbS6NeZ60F3AAqw Qei/+j5+YiIy4WkiKRgupZfpLpgQfr6jZutQiauQgFsd9incNSc3MLCstzyJltZ7 /9EtVQ0KEC/DPlIKabTxdaeMpQfunE3Z5ll4Ii4mfDqWjwXe40Y0lqpoe/T2WtA+ k2OKntkl4nkVLD6Z1l64VeQzbSe+zAG0J7bqTjNHm7XByjRX8FQ2WMXJuBSmqWja Kw7e7sebbGyG05PyDyLJlehZYzZNK/KU8C296ToUAJu9Vb/YnXoIymgkmkyu7o61 SehVUgPCqwoKzekL9pvF99m6pUYoGgHP4VtD8CkvHsLgbSq0dJvfTPrHI6Nzl0db EnQmyxZm4AiYq0E+y6HdG4lXuY5iqgE1lo4ebn3FaOtRxY1g/rUZmaWE6pT8YQGK OvsDHOZ4vda+EbBjUGB4LQXIbcRZj0vma8Eqr+lvnCEh15mu
    =OtCf
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)