Here is another issue I encountered recently:
gfanlib cannot be built against pre 6.0.0 gmp versions (and any version of MPIR up to now). and post 4.9 versions of GCC.
The issue is about ::max_align_t
The fix/workaround is quite easy: include
before "gmp.h" in gfanlib_z.h.