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.
Monday, May 14, 2018
Subscribe to:
Post Comments (Atom)
Popular
- SBI transaction on 30-Nov-0019 for INTERNET BANKING, what is this for?
- Convert Longitude 0-360 to -180 to 180 or 180W-180E in fortran and matlab, transform lat lon coordinates
- Quickly plot a shapefile in Matlab
- Online status of permesso di soggiorno on the website of Polizia di Stato
- New Rules to add spouse name in the Indian passport
No comments:
Post a Comment