Project: datamanagement
Issue DM-5847: libxml build issue with mpich on OS X
On OS X with Xcode installed {{mpich}} fails to build because it can not locate the libxml include files: {code} CC topology-xml-libxml.lo topology-xml-libxml.c:17:10: fatal error: 'libxml/parser.h' file not found #include ^ 1 error generated. {code} with {{pkg-config}} 0.29.1 installed. The problem is that {{configure}} determines that {{libxml-2.0}} is available and is installed into {{/usr}} with a CFLAGS of {{-I/usr/include/libxml2}}. {{configure}} does not itself test whether those parameters are reasonable. With Xcode there are no files installed into {{/usr/include}} and {{clang}} knows to look in specific SDK locations. When {{mpich}} builds it assumes that {{libxml2}} can be found but fails to find it. Strangely, {{pkg-config}} v0.28 does not seem to be able to find {{libxml-2.0}} so there is no issue. One solution is to install the Command Line Tools but it might be more portable to attempt to disable {{libxml2}}.
Story points: 2