spack: boost does not build with clang 9.0
I’m not able to build boost with clang 9.0. This is on Mac OS X High Sierra.
$ spack install boost
==> bzip2 is already installed in .../Work/git/spack/opt/spack/darwin-highsierra-x86_64/clang-9.0.0-apple/bzip2-1.0.6-vfmdedxrupkurelhiarhiuiccvkluoks
==> zlib is already installed in .../Work/git/spack/opt/spack/darwin-highsierra-x86_64/clang-9.0.0-apple/zlib-1.2.11-t74siw3tvuz3vfb3rje5mkbiwneuzfb5
==> Installing boost
==> Using cached archive: .../.spack/cached_archives/boost/boost-1.60.0.tar.bz2
==> Staging archive: .../gw6/Work/git/spack/var/spack/stage/boost-1.60.0-ppxlrzjpwqjmvb2whu7sddxjt3auiyg5/boost_1_60_0.tar.bz2
==> Created stage in .../Work/git/spack/var/spack/stage/boost-1.60.0-ppxlrzjpwqjmvb2whu7sddxjt3auiyg5
==> Applied patch python_jam.patch
==> Building boost [Package]
==> Executing phase: 'install'
==> Error: TypeError: a bytes-like object is required, not 'str'
TypeError: TypeError: a bytes-like object is required, not 'str'
.../Work/git/spack/var/spack/repos/builtin/packages/boost/package.py:385, in install:
73 # The shared libraries are not installed correctly
74 # on Darwin; correct this
75 if (sys.platform == 'darwin') and ('+shared' in spec):
>> 76 fix_darwin_install_name(prefix.lib)
See build log for details:
.../Work/git/spack/var/spack/stage/boost-1.60.0-ppxlrzjpwqjmvb2whu7sddxjt3auiyg5/boost_1_60_0/spack-build.out
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 28 (13 by maintainers)
This fix worked for me also.
I was able to reproduce this with Python 3.6.3. Here is the
-doutput: