Opened 11 years ago
Last modified 5 years ago
#5917 new Bugs
cc toolset broken
| Reported by: | anonymous | Owned by: | Vladimir Prus | 
|---|---|---|---|
| Milestone: | To Be Determined | Component: | build | 
| Version: | Boost 1.66.0 | Severity: | Problem | 
| Keywords: | Cc: | 
Description
I want to build Boost using the cc toolset. It bootstraps fine, but the build system fails to find the toolset when I run b2.
$ export CC=gcc
$ ./bootstrap.sh --with-toolset=cc
-n Building Boost.Build engine with toolset cc... 
tools/build/v2/engine/bin.macosxx86_64/b2
-n Detecting Python version... 
2.7
-n Detecting Python root... 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7
-n Unicode/ICU support for Boost.Regex?... 
not found.
Backing up existing Boost.Build configuration in project-config.jam.6
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/boost-build2/doc/html/index.html
$ ./b2
cc.jam: No such file or directory
tools/build/v2/build/toolset.jam:38: in toolset.using
rule cc.init unknown in module toolset.
tools/build/v2/build/project.jam:888: in using
project-config.jam:12: in modules.load
tools/build/v2/build-system.jam:257: in load-config
tools/build/v2/build-system.jam:423: in load-configuration-files
tools/build/v2/build-system.jam:555: in load
tools/build/v2/kernel/modules.jam:283: in import
tools/build/v2/kernel/bootstrap.jam:142: in boost-build
boost-build.jam:17: in module scope
      Change History (12)
comment:1 by , 11 years ago
| Component: | Building Boost → build | 
|---|---|
| Owner: | set to | 
comment:2 by , 10 years ago
comment:5 by , 8 years ago
| Version: | Boost 1.47.0 → Boost 1.55.0 | 
|---|
comment:6 by , 8 years ago
The cc toolset is the one that uses $CC to determine the command to call to compile, useful to bootstrap with a specific gcc. I've hit this problem as well with 1.55.0.
comment:7 by , 7 years ago
I meet this issue in Boost 1.58.0
When I executed ./bootstrap.sh --with-toolset=gcc compilation succedeed
comment:11 by , 5 years ago
| Version: | Boost 1.55.0 → Boost 1.66.0 | 
|---|
still not working in 1.66.0. the boost buildsystem is the worst i've ever used. please do add a proper way of using your own compiler and flags
  Note:
 See   TracTickets
 for help on using tickets.
    

This error is still present in version 1.51.0.