If you are trying to install MPICH libraries, you may encounter the following error
make[4]: Entering directory `/home/vsingh/public/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc/src'
make[5]: Entering directory `/home/vsingh/public/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc/src'
CC topology.lo
CC traversal.lo
In file included from traversal.c:12:0:
/home/vsingh/public/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc/include/private/misc.h:41:2: error: #error "unknown size for unsigned int."
#error "unknown size for unsigned int."
^
make[5]: *** [traversal.lo] Error 1
make[5]: Leaving directory `/home/vsingh/public/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/vsingh/public/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/vsingh/public/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/vsingh/public/LIBRARIES/mpich-3.0.4/src/pm/hydra'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vsingh/public/LIBRARIES/mpich-3.0.4'
make: *** [all] Error 2
Solution:
1. Edit the config.h file available at the following location
vi src/pm/hydra/tools/topo/hwloc/hwloc/include/private/autogen/config.h
2. Modify #define HWLOC_SIZEOF_UNSIGNED_INT 0 to #define HWLOC_SIZEOF_UNSIGNED_INT 4
3. Save the file and make clean
Hope this solves the problem.
Showing posts with label MPICH. Show all posts
Showing posts with label MPICH. Show all posts
Monday, May 14, 2018
Subscribe to:
Posts (Atom)