Provide a way to set --with-toolset argument for Boost's bootstrap command
Problem
Building superbuild in a PowerPC architecture (uname -m
produces ppc64le
) fails at Boost:
[ 39%] No update step for 'boost'
[ 39%] No patch step for 'boost'
[ 39%] Performing configure step for 'boost'
Building Boost.Build engine with toolset ... tools/build/src/engine/###
### No toolset specified. Please use --toolset option.
###
### Known toolsets are: acc, borland, cc, como, clang, darwin, gcc, gcc-nocygwin, intel-darwin, intel-linux, intel-win32, kcc, kylix, metrowerks, mingw, mipspro, msvc, qcc, pathscale, pgi, sun, sunpro, tru64cxx, vacpp, xlcpp, vc7, vc8, vc9, vc10, vc11, vc12, vc14
###/b2
cp: cannot stat ‘./tools/build/src/engine/###\n### No toolset specified. Please use --toolset option.\n###\n### Known toolsets are: acc, borland, cc, como, clang, darwin, gcc, gcc-nocygwin, intel-darwin, intel-linux, intel-win32, kcc, kylix, metrowerks, mingw, mipspro, msvc, qcc, pathscale, pgi, sun, sunpro, tru64cxx, vacpp, xlcpp, vc7, vc8, vc9, vc10, vc11, vc12, vc14\n###/b2’: File name too long
cp: cannot stat ‘./tools/build/src/engine/###\n### No toolset specified. Please use --toolset option.\n###\n### Known toolsets are: acc, borland, cc, como, clang, darwin, gcc, gcc-nocygwin, intel-darwin, intel-linux, intel-win32, kcc, kylix, metrowerks, mingw, mipspro, msvc, qcc, pathscale, pgi, sun, sunpro, tru64cxx, vacpp, xlcpp, vc7, vc8, vc9, vc10, vc11, vc12, vc14\n###/bjam’: File name too long
Detecting Python version... 2.7
Detecting Python root... <scrubbed>/python/python-2.7.16
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam...
Bootstrapping is done. To build, run:
./b2
To adjust configuration, edit 'project-config.jam'.
Further information:
- Command line help:
./b2 --help
- Getting started guide:
http://www.boost.org/more/getting_started/unix-variants.html
- Boost.Build documentation:
http://www.boost.org/build/doc/html/index.html
[ 39%] Performing build step for 'boost'
CMake Error at <scrubbed>/Build/superbuild/sb-boost-build.cmake:47 (message):
Failed with exit code No such file or directory
make[2]: *** [superbuild/CMakeFiles/boost.dir/build.make:116: superbuild/boost/stamp/boost-build] Error 1
make[1]: *** [CMakeFiles/Makefile2:932: superbuild/CMakeFiles/boost.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
[ 4%] Built target zlib
Workaround
- Run Superbuild. It fails in boost.
- cd .../superbuild/boost/src
- ./bootstrap --with-toolset=gcc # I could not figure out a way to tell boost, within Superbuild, that I wanted to use toolset gcc.
- you should now have a b2 file.
- Run Superbuild. Boost is created correctly.
Proposed solution
Either automatically detect the architecture and set the toolset in the boost build, or provide a CMake option to specify the toolset.