Opened 7 years ago
Last modified 7 years ago
#11978 new Bugs
Bootstrap generates errors
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | To Be Determined | Component: | Building Boost |
Version: | Boost 1.60.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Running bootstrap results in an error: "'cl' not recognized as an internal or external command, operable program or batch file".
Upon searching the bug reports, I found: "bootstrap.bat mingw", which should have solved the problem. It did, but I got the same error for 'gcc', instead of 'cl' and couldn't find a way to fix that one.
Is there anything I can do / should change to get this to work?
I'm executing the file as administrator in the "Developer Command Prompt for VS2015".
Change History (8)
follow-up: 2 comment:1 by , 7 years ago
follow-up: 3 comment:2 by , 7 years ago
comment:3 by , 7 years ago
Replying to anonymous:
How do I run cl directly?
Open the developer command prompt and type cl. This is just to check whether your vs2015 installation is functional.
comment:4 by , 7 years ago
That runs correctly.
Running gcc does not work, though. It's not recognized as a command.
comment:5 by , 7 years ago
Okay, so what are the full contents of bootstrap.log? Are you using 1.60 or a different version of Boost.
comment:6 by , 7 years ago
The full contents of bootstrap.log are below. I'm using 1.60.0.
Is there any test I can do to see if it has installed correctly? I didn't see any errors in the log, but I don't know what the log is supposed to say...
Are there maybe other compilers I could install to get me to where I need to be? I have no clue what is installed on my PC, since it's a new laptop with the company image on it.
### ### Using 'vc14' toolset. ###
C:\Boost\boost_1_60_0\tools\build\src\engine>if exist bootstrap rd /S /Q bootstrap
C:\Boost\boost_1_60_0\tools\build\src\engine>md bootstrap
C:\Boost\boost_1_60_0\tools\build\src\engine>cl /nologo /RTC1 /Zi /MTd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG -wd4996 kernel32.lib advapi32.lib user32.lib /Febootstrap\jam0 command.c compile.c constants.c debug.c execcmd.c execnt.c filent.c frames.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathnt.c pathsys.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c class.c cwd.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c command.c compile.c constants.c debug.c execcmd.c execnt.c filent.c frames.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c Generating Code... Compiling... option.c output.c parse.c pathnt.c pathsys.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c class.c cwd.c w32_getreg.c Generating Code... Compiling... native.c set.c path.c regex.c property-set.c sequence.c order.c Generating Code...
C:\Boost\boost_1_60_0\tools\build\src\engine>.\bootstrap\jam0 -f build.jam --toolset=vc14 "--toolset-root=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\..\..\VC\ " clean ...found 1 target... ...updating 1 target... ...updated 1 target...
C:\Boost\boost_1_60_0\tools\build\src\engine>.\bootstrap\jam0 -f build.jam --toolset=vc14 "--toolset-root=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\..\..\VC\ " ...found 159 targets... ...updating 2 targets... [COMPILE] bin.ntx86\b2.exe command.c compile.c constants.c debug.c execcmd.c frames.c function.c glob.c hash.c hcache.c headers.c hdrmacro.c jam.c jambase.c jamgram.c lists.c make.c make1.c mem.c object.c Compiling... option.c output.c parse.c pathsys.c regexp.c rules.c scan.c search.c subst.c w32_getreg.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c class.c cwd.c native.c md5.c Compiling... set.c path.c regex.c property-set.c sequence.c order.c execnt.c filent.c pathnt.c Generating code Finished generating code [COPY] bin.ntx86\bjam.exe ...updated 2 targets...
C:\Boost\boost_1_60_0\tools\build\src\engine>exit /b 0
comment:7 by , 7 years ago
So, I'm confused. bootstrap looks like it worked, so where are you getting an error?
comment:8 by , 7 years ago
I was wondering that too :)
I just realized this is the bootstrap log from the prebuilt binaries, with which I had less problems installing. It, of course, overwrote the bootstrap log of my original install.
Question still remains how I can get cl and gcc to work on my computer, but I guess that's not your problem. :)
Thanks for your help. I guess installing the prebuilt binaries didn't actually solve my problem, but did sidestep it for this particular install.
If you try running cl directly does it work?