MacOSX builds with the new `from-scratch.sh` environment are not reliable
We're facing problems building on OSX recently. The problem only pops up when calling Sphinx. Examples:
It happens like this:
$ ./bin/sphinx-build -W doc sphinx
Running Sphinx v1.4.6
making output directory...
Adding intersphinx source for `python': https://docs.python.org/3.4/
Adding intersphinx source for `numpy': https://docs.scipy.org/doc/numpy-1.11.0/
Adding intersphinx source for `setuptools': https://setuptools.readthedocs.io/en/latest/
Found documentation for bob.extension on http://www.idiap.ch/software/bob/docs/latest/bob/bob.extension/master/; adding intersphinx source
Found documentation for bob.blitz on http://www.idiap.ch/software/bob/docs/latest/bob/bob.blitz/master/; adding intersphinx source
loading pickled environment... not yet created
loading intersphinx inventory from https://setuptools.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://docs.scipy.org/doc/numpy-1.11.0/objects.inv...
loading intersphinx inventory from http://www.idiap.ch/software/bob/docs/latest/bob/bob.blitz/master/objects.inv...
loading intersphinx inventory from http://www.idiap.ch/software/bob/docs/latest/bob/bob.extension/master/objects.inv...
loading intersphinx inventory from https://docs.python.org/3.4/objects.inv...
[autosummary] generating autosummary for: c_cpp_api.rst, guide.rst, index.rst, py_api.rst
python(52014,0x7fff77df8310) malloc: *** error for object 0x10d9e37c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
./_ci/functions.sh: line 68: 52014 Abort trap: 6 ${@}
(20:01:49) Error: Command Failed "./bin/sphinx-build -W doc sphinx"