Opened 8 years ago

Last modified 8 years ago

#10817 new Bugs

missing argument global-setup

Reported by: calumlind@… Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.57.0 Severity: Regression
Keywords: Cc:

Description

I was attempting to build boost on Win 8.1 with just the MS VC++ Compiler for Python (microsoft.com/en-us/download/details.aspx?id=44266) so no Visual Studio installed.

I encountered the error below when running b2. Modifying project-config.jam to have the line using msvc : : : <setup> ; allow the build to continue to completion.

c:\boost_1_57_0>b2 --debug-configuration
notice: found boost-build.jam at C:/boost_1_57_0/boost-build.jam
notice: loading Boost.Build from C:/boost_1_57_0/tools/build/src
notice: Searching 'C:\Windows' 'C:\Users\IEUser' 'C:\Users\IEUser' 'C:\boost_1_57_0\tools/build/src' 'C:\boost_1_57_0' '
C:/boost_1_57_0/tools/build/src/kernel' 'C:/boost_1_57_0/tools/build/src/util' 'C:/boost_1_57_0/tools/build/src/build' '
C:/boost_1_57_0/tools/build/src/tools' 'C:/boost_1_57_0/tools/build/src/contrib' 'C:/boost_1_57_0/tools/build/src/.' for
 site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Windows' 'C:\Users\IEUser' 'C:\Users\IEUser' 'C:\boost_1_5
7_0\tools/build/src' 'C:\boost_1_57_0' 'C:/boost_1_57_0/tools/build/src/kernel' 'C:/boost_1_57_0/tools/build/src/util' '
C:/boost_1_57_0/tools/build/src/build' 'C:/boost_1_57_0/tools/build/src/tools' 'C:/boost_1_57_0/tools/build/src/contrib'
 'C:/boost_1_57_0/tools/build/src/.'.
notice: Searching 'C:\Users\IEUser' 'C:\Users\IEUser' 'C:\boost_1_57_0\tools/build/src' 'C:\boost_1_57_0' 'C:/boost_1_57
_0/tools/build/src/kernel' 'C:/boost_1_57_0/tools/build/src/util' 'C:/boost_1_57_0/tools/build/src/build' 'C:/boost_1_57
_0/tools/build/src/tools' 'C:/boost_1_57_0/tools/build/src/contrib' 'C:/boost_1_57_0/tools/build/src/.' for user-config
configuration file 'user-config.jam'.
notice: Configuration file 'user-config.jam' not found in 'C:\Users\IEUser' 'C:\Users\IEUser' 'C:\boost_1_57_0\tools/bui
ld/src' 'C:\boost_1_57_0' 'C:/boost_1_57_0/tools/build/src/kernel' 'C:/boost_1_57_0/tools/build/src/util' 'C:/boost_1_57
_0/tools/build/src/build' 'C:/boost_1_57_0/tools/build/src/tools' 'C:/boost_1_57_0/tools/build/src/contrib' 'C:/boost_1_
57_0/tools/build/src/.'.
notice: Searching '.' for project-config configuration file 'project-config.jam'.
notice: Loading project-config configuration file 'project-config.jam' from '.'.
notice: will use 'cl.exe' for msvc, condition <toolset>msvc
C:/boost_1_57_0/tools/build/src/tools\msvc.jam:1075: in configure-really
*** argument error
* rule generate-setup-cmd ( version : command : parent : options * : cpu : global-setup : default-global-setup-options :
 default-setup )
* called with: ( default : C:\Users\IEUser\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\bin : C:
\Users\IEUser\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC :  : i386 :  : x86 : vcvars32.bat )
* missing argument global-setup
C:/boost_1_57_0/tools/build/src/tools\msvc.jam:809:see definition of rule 'generate-setup-cmd' being called
C:/boost_1_57_0/tools/build/src/tools\msvc.jam:201: in configure
C:/boost_1_57_0/tools/build/src/tools\msvc.jam:153: in msvc.init
C:/boost_1_57_0/tools/build/src/build\toolset.jam:43: in toolset.using
C:/boost_1_57_0/tools/build/src/build\project.jam:1007: in using
project-config.jam:3: in modules.load
C:/boost_1_57_0/tools/build/src\build-system.jam:249: in load-config
C:/boost_1_57_0/tools/build/src\build-system.jam:412: in load-configuration-files
C:/boost_1_57_0/tools/build/src\build-system.jam:524: in load
C:\boost_1_57_0\tools\build\src/kernel\modules.jam:289: in import
C:\boost_1_57_0\tools\build\src/kernel/bootstrap.jam:139: in boost-build
C:\boost_1_57_0\boost-build.jam:17: in module scope

Change History (4)

comment:1 by calumlind@…, 8 years ago

Just to follow up, using msvc : : : <setup> ; does cause the following output at every operation so it is a hacky workaround.

'""' is not recognized as an internal or external command, operable program or batch file.

Setting it to a valid batch script such as vcvars32.bat does not work and the build errors straight away (I don't have a trace for that)

comment:2 by anonymous, 8 years ago

I'm also being affected by this however I can't workaround it in the way that the previous poster can. This is a serious regression.

comment:3 by anonymous, 8 years ago

Severity: ProblemRegression

comment:4 by cire2174-mail@…, 8 years ago

I had the same issue on windows seven with the same SDK (VC for Python). I managed to have a successfull build with the following parameter in project-config.jam :

using msvc : 9.0 : : <setup>"C:\\Python27\\Visual C++ for Python\\vcvarsall.bat" ;

giving the following options :

.\b2 -a variant=release link=shared address-model=64 toolset=msvc-9.0

Here is the result :

   Creating library bin.v2\libs\wave\build\msvc-9.0\release\address-model-64\threading-multi\boost_wave-vc90-mt-1_57.lib
 and object bin.v2\libs\wave\build\msvc-9.0\release\address-model-64\threading-multi\boost_wave-vc90-mt-1_57.exp
msvc.manifest.dll bin.v2\libs\wave\build\msvc-9.0\release\address-model-64\threading-multi\boost_wave-vc90-mt-1_57.dll
common.copy stage\lib\boost_wave-vc90-mt-1_57.dll
bin.v2\libs\wave\build\msvc-9.0\release\address-model-64\threading-multi\boost_wave-vc90-mt-1_57.dll
        1 fichier(s) copié(s).
common.copy stage\lib\boost_wave-vc90-mt-1_57.lib
bin.v2\libs\wave\build\msvc-9.0\release\address-model-64\threading-multi\boost_wave-vc90-mt-1_57.lib
        1 fichier(s) copié(s).
...updated 620 targets...


The Boost C++ Libraries were successfully built!

The following directory should be added to compiler include paths:

    F:/SandBox/boost_1_57_0

The following directory should be added to linker library paths:

    F:\SandBox\boost_1_57_0\stage\lib
Note: See TracTickets for help on using tickets.