Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932452 - sci-mathematics/petsc-3.20.5-r1 does not build with mpi
Summary: sci-mathematics/petsc-3.20.5-r1 does not build with mpi
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL: https://gitlab.com/petsc/petsc/-/issu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 10:38 UTC by Thomas Scheiblauer
Modified: 2024-10-03 18:15 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,12.82 KB, text/plain)
2024-05-22 10:38 UTC, Thomas Scheiblauer
Details
build.log (build.log,33.36 KB, text/plain)
2024-05-22 10:40 UTC, Thomas Scheiblauer
Details
configure.log (configure.log,960.64 KB, text/plain)
2024-05-22 10:41 UTC, Thomas Scheiblauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Scheiblauer 2024-05-22 10:38:29 UTC
Created attachment 893796 [details]
emerge --info

The "configure" phase does not get past the the check for Fortran mpi_init() because the fortran compiler cannot open the includes from /usr/include/mpif.h.

The relevant part from "configure.log" (complete log added as attachment):

Executing: gfortran -c -o /var/tmp/portage/sci-mathematics/petsc-3.20.5-r1/temp/petsc-00urcfrt/config.libraries/conftest.o -I/var/tmp/portage/sci-mathematics/petsc-3.20.5-r1/temp/petsc-00urcfrt/config.setCompile
rs -I/var/tmp/portage/sci-mathematics/petsc-3.20.5-r1/temp/petsc-00urcfrt/config.compilersFortran -I/var/tmp/portage/sci-mathematics/petsc-3.20.5-r1/temp/petsc-00urcfrt/config.compilers -I/var/tmp/portage/sci-ma
thematics/petsc-3.20.5-r1/temp/petsc-00urcfrt/config.libraries -O2 -pipe -fPIC    /var/tmp/portage/sci-mathematics/petsc-3.20.5-r1/temp/petsc-00urcfrt/config.libraries/conftest.F90                               
stdout:                                                                                                                                                                                                            
/usr/include/mpif.h:56:0:                                                                                                                                                                                          
   56 |       include 'mpif-config.h'                                                                                                                                                                              
Fatal Error: Cannot open included file ‘mpif-config.h’                                                   
compilation terminated.
Comment 1 Thomas Scheiblauer 2024-05-22 10:40:24 UTC
Created attachment 893797 [details]
build.log
Comment 2 Thomas Scheiblauer 2024-05-22 10:41:43 UTC
Created attachment 893798 [details]
configure.log
Comment 3 Fabio Rossi 2024-10-03 16:58:10 UTC
opened an issue upstream: https://gitlab.com/petsc/petsc/-/issues/1657
Comment 4 Fabio Rossi 2024-10-03 18:15:54 UTC
What we wanna do with USE=fortran is to enable/disable support for fortran bindings. The config option to do this is --with-fortran-bindings which is undocumented. 

petsc should have access to fortran compiler to add support to external packages such as mumps or scalapack. To compile with MPI we should add the --with-fc option (on my system I had USE=-fortran which masks that flag). Is then 

RDEPEND="
    ...
    mpi? ( virtual/mpi[fortran?] )
    ...
"

correct?