spack: py-matplotlib build fails on Fedora
On my Fedora 27 system, spack install py-matplotlib from a clean Spack clone fails. Spack installs all the Matplotlib dependencies, but then py-matplotlib itself fails during its build phase.
It looks like Matplotlib is failing to find FreeType, even though this package was installed.
Expected Result
py-matplotlib is installed.
Actual Result
Build log:
==> Executing phase: 'build'
==> '/home/francois/spack/opt/spack/linux-fedora27-x86_64/gcc-7.3.1/python-2.7.14-belgizkwgkpujlt5kj2ukdfemba65kpf/bin/python2.7' '-s' 'setup.py' '--no-user-cfg' 'build'
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [2.2.2]
python: yes [2.7.14 (default, Apr 20 2018, 18:36:46) [GCC
7.3.1 20180303 (Red Hat 7.3.1-5)]]
platform: yes [linux2]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.13.3]
install_requires: yes [handled by setuptools]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype2 (ft2build.h)
could not be found. You may need to install the
development package.]
png: yes [version 1.6.34]
qhull: yes [pkg-config information for 'libqhull' could not
be found. Using local copy.]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]
OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: no [PySide2 not found; PyQt5 not found]
qt4agg: no [PySide not found; PyQt4 not found]
gtk3agg: no [Requires pygobject to be installed.]
gtk3cairo: no [Requires cairocffi or pycairo to be installed.]
gtkagg: no [Requires pygtk]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: no [cairocffi or pycairo not found]
windowing: no [Microsoft Windows only]
OPTIONAL LATEX DEPENDENCIES
dvipng: yes [version 1.15]
ghostscript: yes [version 9.22]
latex: yes [version 3.14159265]
pdftops: yes [version 0.57.0]
OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]
============================================================================
* The following required packages can not be built:
* freetype
* Try installing freetype with `dnf install
* freetype-devel` and pkg-config with `dnf install
* pkg-config`
Steps to reproduce the issue
$ git clone https://github.com/llnl/spack.git
$ spack/bin/spack install py-matplotlib
This is using today’s develop, i.e. c8e3c94c6
Information on your system
$ spack archreportslinux-fedora27-x86_64packages.yamlsets the default compiler togcc, BLAS/LAPACK toopenblas, OpenSSL to system- The system’s package manager provides
freetype-devel.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 26 (21 by maintainers)
Hi @s-sajid-ali, I’d say that https://github.com/spack/spack/pull/8136 is no longer WIP but it is pending a review before merging.
@s-sajid-ali thanks for the error message. This may be a separate problem. I’ll have a chance to look at it by Friday (6/15)
My
packages.yamlhas the following (snipping out comments and sections that should be (?) irrelevant):The
PKG_CONFIG_PATHas listed the matplotlib staging directory’sspack-build.envfile has value:Reorganizing this string to remove the shared prefix and make the contents more apparent: