Commit Graph

2 Commits

Author SHA1 Message Date
Paul Kent d17a8539b8 State when CMake find_package is used for libxml2
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7018 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-07-06 19:53:11 +00:00
Paul Kent d32ad6af79 CMake and library fixes motivated by Cray breakage on Cori at NERSC:
Restore LIBXML2_HOME handling by reintroducing updated  version of
previous QMCPACK FindLibxml2 cmake2 script. LIBXML2_HOME location is
prioritized over the default search paths and can therefore avoid the
use of a "bad" libxml on them. Currently required on Cori at
NERSC with Cray CLE 6.0 due to absence of shared libraries. Updated
FindLibxml2QMC script calls standard cmake package if unsuccessful, so
should not change behaviour on other systems.

Libxml2 and any support libraries must be installed locally to
successfully complete the default-on-cray static build.

Detect if on Cray via CRAYPE_VERSION environment variable, since newer
OS no longer sets CRAYOS_VERSION. Tested on edison, cori, titan, eos.

Remove some eos specific wiring, out of date.

Cori currently requires:

export LIBXML2_HOME=/usr/common/software/libxml2/2.9.3/hsw/
cmake -DQMC_EXTRA_LIBS="/usr/common/software/liblzma/20160630/hsw/lib/liblzma.a" ..

This incantation is clearly fragile. Without this update
/usr/lib64/libxml2.so is picked-up and the build will fail on
link. Symptom of not linking liblzma is lots of lzma_ related
functions not being defined. This is a libxml2 build-related issue and
described in many places on the web.  

These patches should be of interest to anyone receiving a new Cray.



git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7017 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-07-06 18:09:02 +00:00