How to patch metis-4.0 error: conflicting types for __log2
METIS is a set of serial programs for partitioning graphs, partitioning finite element meshes, and producing fill reducing orderings for sparse matrices. The algorithms implemented in METIS are based on the multilevel recursive-bisection, multilevel k-way, and multi-constraint partitioning schemes. I give a patch for metis-4.0 software, compilation fails with gcc 4.4.x
This error is due to the duplication of __log2 in
/usr/include/bits/mathcalls.h:145
Here is the patch to get compilation successful
If you found this post or this website helpful and would like to support our work, please consider making a donation. Thank you!
Help Us