I was trying to build Boost via Spack on a system where I previously had created a file ~/user-config.jam. This file overrides Spack's configuration options for Boost, leading to a build failure. (The build failure is somewhat hard to detect since it doesn't mention this file, the symptoms are just that the build options that Boost reports are slightly different than what they should be.)
Spack should detect the presence of that file, and should either abort with an error, or should temporarily disable it.