Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 818460 - sci-physics/root: MPI flag (possibly in combination with its fortran flag) doesn't trigger the fortran flag on MPI, despite hard dependency
Summary: sci-physics/root: MPI flag (possibly in combination with its fortran flag) do...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Guilherme Amadio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-16 11:08 UTC by Duncan
Modified: 2021-10-20 11:31 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2021-10-16 11:08:31 UTC
Tried to compile an all-bells-and-whistles 30G build of CERN ROOT today for fun & profit. The final ROOT package failed pre-merge checks with the following message (apologies for poor formatting if better exists):

...
-- Found MPI_C: /usr/lib64/libmpi.so (found version "3.1") 
-- Found MPI_CXX: /usr/lib64/libmpi.so (found version "3.1") 
-- Could NOT find MPI_Fortran (missing: MPI_Fortran_LIB_NAMES MPI_Fortran_F77_HEADER_DIR MPI_Fortran_MODULE_DIR MPI_Fortran_WORKS) 
-- Could NOT find MPI (missing: MPI_Fortran_FOUND) (found version "3.1")
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:1689 (message):
  MPI not found.  Ensure that the installation of MPI is in the
  CMAKE_PREFIX_PATH.  Example: CMAKE_PREFIX_PATH=<MPI_install_path> (e.g.
  "/usr/local/mpich")
Call Stack (most recent call first):
  CMakeLists.txt:219 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/sci-physics/root-6.24.06/work/root-6.24.06_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/sci-physics/root-6.24.06/work/root-6.24.06_build/CMakeFiles/CMakeError.log".
 * ERROR: sci-physics/root-6.24.06::gentoo failed (configure phase):
 *   cmake failed 
...

After recompiling the MPI package with the fortran use flag, portage happily chugs away on ROOT's LLVM interpreter objects. It seems like it's pretty evident what needs to change--either the ROOT mpi flag or the combination of the mpi and fortran flags together needs to require the fortran flag of mpi. As such, I've not included an emerge --info and so on, but am happy to do so should that be necessary whenever my 3-day new user link restriction expires and I can share a pastebin.
Comment 1 Guilherme Amadio gentoo-dev 2021-10-18 09:24:28 UTC
The MPI and Fortran support do not actually have much to do with each other, as Fortran is only used for the minicern library (some legacy code), and MPI is only used by Minuit2 and some other new functionality (TMPIFile, what USE=mpi is for). However, CMake likely wants the Fortran compiler for MPI regardless when the Fortran compiler is needed for minicern. I will update the dependency in the ebuilds in any case, but I will see with upstream if we can fix this unwanted dependency on MPI with Fortran in the next release as well.
Comment 2 Larry the Git Cow gentoo-dev 2021-10-18 11:36:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=975cfa4b5f04433810310627bd0ce4b9994fd1a7

commit 975cfa4b5f04433810310627bd0ce4b9994fd1a7
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2021-10-18 10:48:24 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2021-10-18 11:35:17 +0000

    sci-physics/root: fix dependency on mpi, bug #818460
    
    Closes: https://bugs.gentoo.org/818460
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 sci-physics/root/root-6.22.08-r2.ebuild | 2 +-
 sci-physics/root/root-6.24.06.ebuild    | 2 +-
 sci-physics/root/root-6.24.9999.ebuild  | 2 +-
 sci-physics/root/root-9999.ebuild       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)