[mpich-discuss] Build failed with Undefined symbols

Raffenetti, Kenneth J. raffenet at mcs.anl.gov
Tue Jul 20 10:27:47 CDT 2021

We did add a minimum version check during configure, but it may have fallen out of date. We can take a look.


On 7/20/21, 8:18 AM, "Junchao Zhang via discuss" <discuss at mpich.org> wrote:

    Adding --with-hwloc=embedded fixed the problem. Yes, I have preinstalled hwloc (it is common since I also found hwloc on another Linux cluster that had the same kind of hw errors).  I guess it was because mpich is not compatible with the system's preinstalled hwloc.Perhaps a better approach is for mpich to check the hwloc at configure time (e.g., many petsc third party libraries are checked in this way), then report any compatibility issue and give clear messages to users asking them to either upgrade their hwloc or use the embedded one.
    --Junchao Zhang
    On Mon, Jul 19, 2021 at 6:16 PM Tony Curtis <anthony.curtis at stonybrook.edu> wrote:
    > On Jul 19, 2021, at 3:59 PM, Junchao Zhang via discuss <discuss at mpich.org> wrote:
    > Hello,
    > I configured mpich/main (or 4.0a2) with 
    >    ./configure  CC=gcc CXX=g++ --enable-fortran=no
    > on Mac with Apple clang version 12.0.5 (clang-1205.0.22.11). The build failed with
    >   ...
    >   CCLD     hydra_pmi_proxy
    > Undefined symbols for architecture x86_64:
    >   "_hwloc_topology_set_io_types_filter", referenced from:
    >       _HYDT_topo_hwloc_init in libhydra.a(topo_hwloc.o)
    Do you have hwloc installed (e.g. via brew)?  Or if so, is it new enough?

More information about the discuss mailing list