Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 821367 - sci-libs/dealii-9.3.1-r1 configure phase failed: MPI support not detected
Summary: sci-libs/dealii-9.3.1-r1 configure phase failed: MPI support not detected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Matthias Maier
URL: https://forums.gentoo.org/viewtopic-p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-02 19:46 UTC by jang0
Modified: 2021-11-04 05:34 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,6.32 KB, text/plain)
2021-11-02 19:46 UTC, jang0
Details
build.log (build.log,22.39 KB, text/plain)
2021-11-02 19:47 UTC, jang0
Details
CMakeError.log (CMakeError.log,27.60 KB, text/plain)
2021-11-02 19:48 UTC, jang0
Details
CMakeOutput.log (CMakeOutput.log,122.29 KB, text/plain)
2021-11-02 19:49 UTC, jang0
Details
environment variables (environment,92.76 KB, text/plain)
2021-11-02 19:49 UTC, jang0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jang0 2021-11-02 19:46:19 UTC
Created attachment 748098 [details]
emerge --info

I installed dealii-9.3.1 successful, the new revision fail in the configure phase.  For details refer to the forum: 
https://forums.gentoo.org/viewtopic-p-8673453.html#8673453
Comment 1 jang0 2021-11-02 19:47:40 UTC
Created attachment 748101 [details]
build.log
Comment 2 jang0 2021-11-02 19:48:18 UTC
Created attachment 748104 [details]
CMakeError.log
Comment 3 jang0 2021-11-02 19:49:07 UTC
Created attachment 748107 [details]
CMakeOutput.log
Comment 4 jang0 2021-11-02 19:49:42 UTC
Created attachment 748110 [details]
environment variables
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-02 19:54:27 UTC
Can you rebuild libmpi.so for me, just in case please?
>/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: >/usr/lib64/libmpi.so: undefined reference to `MPIR_being_debugged'

Also, you've got GCC 11 selected, but the build here used GCC 10. Please note that downgrading GCC is dangerous and requires you to rebuild everything linked against libstdc++:
>sys-devel/gcc:            10.3.0-r2::gentoo, 11.2.0::gentoo

See https://wiki.gentoo.org/wiki/Upgrading_GCC#ABI_changes_before_gcc-5.1.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-02 19:55:06 UTC
Also, please try *without* distcc.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-02 19:56:35 UTC
This is possibly related to https://github.com/dealii/dealii/issues/11478.
Comment 8 Matthias Maier gentoo-dev 2021-11-03 00:43:18 UTC
This issue is likely not due to the mentioned upstream bug - we do configure mpi support for deal.II "correctly". The issue is really the following:

-- Include /var/tmp/portage/sci-libs/dealii-9.3.1-r1/work/dealii-9.3.1/cmake/configure/configure_1_mpi.cmake
-- Could NOT find MPI_C (missing: MPI_C_WORKS) 
-- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS) 
-- Found MPI_Fortran: /usr/lib64/libmpi_usempif08.so (found version "3.1") 

It is a bit strange that CMake cannot find at least C support (aka MPI_C_WORKS). Anyway, we need both: C and C++ support.


What MPI library are you using? openmpi, or mpich?


Would you mind recompiling your MPI library first and ensuring that USE="cxx" is enabled for the MPI library?



Looking at the ebuild quickly: 

  mpi? ( virtual/mpi )

This should at least read virtual/mpi[cxx]. Reopening to track the dependency issue.
Comment 9 Larry the Git Cow gentoo-dev 2021-11-03 19:13:39 UTC
The bug has been referenced in the following commit(s):

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

commit eb880a90ca397087a353609d18c861e780b29218
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2021-11-03 19:12:23 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2021-11-03 19:13:35 +0000

    sci-libs/dealii: update dependencies
    
    Bug: https://bugs.gentoo.org/821367
    Package-Manager: Portage-3.0.24, Repoman-3.0.3
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 sci-libs/dealii/dealii-9.3.1-r1.ebuild | 4 ++--
 sci-libs/dealii/dealii-9999.ebuild     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 10 jang0 2021-11-04 04:41:58 UTC
I recompiled openmpi-4.0.5-r3 with USE="cxx" and GCC 10, next rebuild first level dependecies that caused problems like petsc; now dealii works fine. 
Maybe is "cxx" missing flag,thank you guys.
Comment 11 Matthias Maier gentoo-dev 2021-11-04 05:34:37 UTC
Thanks for the testing.

It looks like that the fixed dependency resolved the underlying issue - so let's close the bug report for now.