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)
Popular
- New Rules to add spouse name in the Indian passport
- Chanakya TV serial, online on youtube, Vol 1-8, All episodes 1-47
- Byomkesh Bakshi Episodes
- Spouse visa, wife visa or family visa, Bring your spouse together with you while coming to Italy
- SBI transaction on 30-Nov-0019 for INTERNET BANKING, what is this for?