conan-center-index: [boost] boost/1.71: bootstrap fails on ubuntu

Package and Environment Details

  • Package Name/Version: boost/1.71
  • Operating System+version: Linux Ubuntu 16.04/19.04
  • Compiler+version: GCC 5.4.0/CLang 8
  • Conan version: conan 1.18.0
  • Python version: Python 3.6.x/3.7.x

Steps to reproduce

Starting with 1.71 the build now fail on all our ubuntu-based systems. The same systems can build 1.70 just fine. CentOS 7 is fine as well.

The command: conan create /tmp/conanfile.py local/testing -o boost:bzip2=False -o boost:namespace=boost_ns -o boost:namespace_alias=True -o boost:magic_autolink=True --build outdated

On a side note - as seen in the log two of the patches are no longer necessary and should be removed.

Logs

Click to expand log
boost/1.71.0@local/testing: Calling build()
boost/1.71.0@local/testing: ./bootstrap.sh -with-toolset=cc
Bootstrapping the build engine with toolset cc... 

Failed to bootstrap the build engine
Consult 'bootstrap.log' for more details
boost/1.71.0@local/testing: 
WARN: patches/bcp_namespace_issues.patch: already patched  b'Jamroot'
WARN: patches/boost_core_qnx_cxx_provide___cxa_get_globals.patch: already patched  b'boost/core/uncaught_exceptions.hpp'
boost/1.71.0@local/testing: WARN: Error 256 while executing ./bootstrap.sh -with-toolset=cc
boost/1.71.0@local/testing: WARN: 
Unknown toolset: cc

You can specify the toolset as the argument, i.e.:
    ./build.sh gcc

Toolsets supported by this script are:
    acc, clang, como, gcc, intel-darwin, intel-linux, kcc, kylix, mipspro,
    pathscale, pgi, qcc, sun, sunpro, tru64cxx, vacpp

For any toolset you can override the path to the compiler with the CXX
environment variable. You can also use additional flags for the compiler
with the CXXFLAGS environment variable.

A special toolset; cxx, is available which is used as a fallback when a more
specific toolset is not found and the cxx command is detected. The 'cxx'
toolset will use the CXX, CXXFLAGS, and LIBS environment variables, if present.

Similarly, the cross-cxx toolset is available for cross-compiling by using the
BUILD_CXX, BUILD_CXXFLAGS, and BUILD_LDFLAGS environment variables to compile
binaries that will be executed on the build system. This allows CXX etc. to be
set for cross-compilers to be propagated to subprocesses.



boost/1.71.0@local/testing: ERROR: Package 'c89b33558f87fb078774818601cdb426f75abbe0' build failed
boost/1.71.0@local/testing: WARN: Build folder /home/parstream-ci.gen/.conan/data/boost/1.71.0/local/testing/build/c89b33558f87fb078774818601cdb426f75abbe0
ERROR: boost/1.71.0@local/testing: Error in build() method, line 401
	self._bootstrap()
while calling '_bootstrap', line 812
	self.run(cmd)
	ConanException: Error 256 while executing ./bootstrap.sh -with-toolset=cc

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 18 (5 by maintainers)

Commits related to this issue

Most upvoted comments

the code that was failing has been completely removed in #1016, so these errors aren’t going to happen any more - we’re not doing bootstrap during the boost build. there is another bug (#1122) and pending PR #1124 that fixes b2 invocation on certain systems. I’ll keep it open for a while, but once #1124 merged, pls retest and let me know (or just test changes locally).

I was able to get it to work with 1.70.0 by removing the toolset parameter from https://github.com/conan-io/conan-center-index/blob/8a07dd95d9479f8998f77fdcd5d68a334b763778/recipes/boost/all/conanfile.py#L351

But this will obviously break #192 again…

@firewave so, do I understand it correctly, you have g++ in PATH, but no gcc? either way, we have to fix:

  • use cxx toolset instead of cc for 1.71 and later
  • check for clang++/g++ instead of clang/gcc (as boost uses C++ compiler)