[mpich-discuss] Build failed with Undefined symbols

Junchao Zhang junchao.zhang at gmail.com
Tue Jul 20 08:09:17 CDT 2021


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?
>
> Tony
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20210720/a0eecce4/attachment.html>


More information about the discuss mailing list