Reference-ScaLAPACK / scalapack

ScaLAPACK development repository
Other
134 stars 60 forks source link

Build failed due to implicit declaration #97

Open Vineyo opened 6 months ago

Vineyo commented 6 months ago
/home/usrname/.cache/paru/clone/scalapack/src/scalapack-2.2.0/BLACS/SRC/igsum2d_.c: In function ‘igsum2d_’:
/home/usrname/.cache/paru/clone/scalapack/src/scalapack-2.2.0/BLACS/SRC/igsum2d_.c:154:7: error: implicit declaration of function ‘BI_imvcopy’; did you mean ‘BI_zmvcopy’? [-Wimplicit-function-declaration]
  154 |       BI_imvcopy(Mpval(m), Mpval(n), A, tlda, bp->Buff);
      |       ^~~~~~~~~~
      |       BI_zmvcopy
/home/usrname/.cache/paru/clone/scalapack/src/scalapack-2.2.0/BLACS/SRC/igsum2d_.c:169:13: error: implicit declaration of function ‘BI_ivmcopy’; did you mean ‘BI_cvmcopy’? [-Wimplicit-function-declaration]
  169 |             BI_ivmcopy(Mpval(m), Mpval(n), A, tlda, bp2->Buff);
      |             ^~~~~~~~~~
      |             BI_cvmcopy
make[2]: *** [CMakeFiles/scalapack.dir/build.make:636: CMakeFiles/scalapack.dir/BLACS/SRC/igsum2d_.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1039: CMakeFiles/scalapack.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

I've found similar issues, but I don't know what to do.

carlosal1015 commented 6 months ago

Changes in compiler, use gcc 13 or older. https://gcc.gnu.org/gcc-14/changes.html

eeickmeyer commented 3 months ago

I'm having the same problem in Ubuntu, and Debian is having the same problem as well despite their package bug being closed (it looks like an erroneous merge/diagnostic). See https://launchpadlibrarian.net/741773910/buildlog_ubuntu-oracular-amd64.scalapack_2.2.1-3.1ubuntu2_BUILDING.txt.gz. We cannot use an older compiler, so the above option is not an option for us.