Problem building bjam executable

I'm trying to build the bjam executable by running build.bat from the boost/tools/build/jam_src directory. Here's what I get: C:\BOOST\TOOLS\BUILD\JAM_SRC>build.bat vc7 ### ### "Unknown toolset: vc7" ### ### You can specify the toolset as the argument, i.e.: ### .\build.bat msvc ### ### Toolsets supported by this script are: borland, como, gcc, gcc-nocygwin, intel-win32, metrowerks, mingw, msvc, vc7 ### I also tried running vcvars32 prior to build.bat and got this: C:\BOOST\TOOLS\BUILD\JAM_SRC>"e:\program files\microsoft visual studio .net\vc7\bin\vcvars32" C:\BOOST\TOOLS\BUILD\JAM_SRC>"E:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\"vsvars32.bat Setting environment for using Microsoft Visual Studio .NET tools. (If you also have Visual C++ 6.0 installed and wish to use its tools from the command line, run vcvars32.bat for Visual C++ 6.0.) C:\BOOST\TOOLS\BUILD\JAM_SRC>build.bat vc7 Setting environment for using Microsoft Visual Studio .NET tools. (If you also have Visual C++ 6.0 installed and wish to use its tools from the command line, run vcvars32.bat for Visual C++ 6.0.) The system is Windows NT 4.0 SP6. I'm using a fresh cvs checkout of the entire boost source tree. I'd appreciate any help I can get with this. Thx, Bart

Bart Garst wrote:
I'm trying to build the bjam executable by running build.bat from the boost/tools/build/jam_src directory. Here's what I get:
C:\BOOST\TOOLS\BUILD\JAM_SRC>build.bat vc7 ### ### "Unknown toolset: vc7" [snip] I also tried running vcvars32 prior to build.bat and got this: [snip] The system is Windows NT 4.0 SP6. I'm using a fresh cvs checkout of the entire boost source tree.
I'd appreciate any help I can get with this.
After looking intently at the script I can't see any obvious reason for it to fail. Only suggestion I can come up with is to try and see if things work better if you force CMD extensions on: "CMD.EXE /X" HTH. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

On Sun, 06 Jun 2004 13:23:23 -0500, Rene Rivera wrote:
Bart Garst wrote:
I'm trying to build the bjam executable by running build.bat from the boost/tools/build/jam_src directory. Here's what I get:
C:\BOOST\TOOLS\BUILD\JAM_SRC>build.bat vc7 ### ### "Unknown toolset: vc7" [snip] I also tried running vcvars32 prior to build.bat and got this: [snip] The system is Windows NT 4.0 SP6. I'm using a fresh cvs checkout of the entire boost source tree.
I'd appreciate any help I can get with this.
After looking intently at the script I can't see any obvious reason for it to fail. Only suggestion I can come up with is to try and see if things work better if you force CMD extensions on: "CMD.EXE /X"
HTH.
Thanks for looking into this Rene. I tried as you suggested and found that CMD extensions are already enabled by default for backwards compatibility. I did try without forcing extensions: (started cmd with "cmd.exe /y") C:\boost\tools\build\jam_src>build.bat vc7 ### ### Using '' toolset. ### It then goes about trying to build bjam. It doesn't get very far since it's using no toolset. Has anyone else been able to successfully build bjam on a similar system/setup? Thx, Bart

I tried to find what's wrong (no I'm not using NT, I'm using XP) and didn't see anything obvious. I added after: echo ### Using '%BOOST_JAM_TOOLSET%' toolset. the following lines echo ### BOOST_JAM_TOOLSET_ROOT='%BOOST_JAM_TOOLSET_ROOT%' echo ### BOOST_JAM_CC='%BOOST_JAM_CC%' echo ### BOOST_JAM_OPT_JAM='%BOOST_JAM_OPT_JAM%' echo ### BOOST_JAM_OPT_MKJAMBASE='%BOOST_JAM_OPT_MKJAMBASE%' echo ### BOOST_JAM_OPT_YYACC='%BOOST_JAM_OPT_YYACC%' echo ### _known_='_%_known_%_' perhaps the additional output you get will help find the problem. ....this is what I get..... C:\Projects\boost\tools\build\jam_src>build Setting environment for using Microsoft Visual Studio .NET 2003 tools. (If you have another version of Visual Studio or Visual C++ installed and wish to use its tools from the command line, run vcvars32.bat for that version.) ### ### Using 'vc7' toolset. ### BOOST_JAM_TOOLSET_ROOT='C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\\..\..\VC7\' ### BOOST_JAM_CC='cl /nologo /GZ /Zi /MLd -DNT -DYYDEBUG kernel32.lib advapi32.lib' ### BOOST_JAM_OPT_JAM='/Febootstrap.vc7\jam0' ### BOOST_JAM_OPT_MKJAMBASE='/Febootstrap.vc7\mkjambase0' ### BOOST_JAM_OPT_YYACC='/Febootstrap.vc7\yyacc0' ### _known_='_1_' ### At Sunday 2004-06-06 13:03, you wrote:
On Sun, 06 Jun 2004 13:23:23 -0500, Rene Rivera wrote:
Bart Garst wrote:
I'm trying to build the bjam executable by running build.bat from the boost/tools/build/jam_src directory. Here's what I get:
C:\BOOST\TOOLS\BUILD\JAM_SRC>build.bat vc7 ### ### "Unknown toolset: vc7" [snip] I also tried running vcvars32 prior to build.bat and got this: [snip] The system is Windows NT 4.0 SP6. I'm using a fresh cvs checkout of the entire boost source tree.
I'd appreciate any help I can get with this.
After looking intently at the script I can't see any obvious reason for it to fail. Only suggestion I can come up with is to try and see if things work better if you force CMD extensions on: "CMD.EXE /X"
HTH.
Thanks for looking into this Rene.
I tried as you suggested and found that CMD extensions are already enabled by default for backwards compatibility. I did try without forcing extensions: (started cmd with "cmd.exe /y") C:\boost\tools\build\jam_src>build.bat vc7 ### ### Using '' toolset. ###
It then goes about trying to build bjam. It doesn't get very far since it's using no toolset.
Has anyone else been able to successfully build bjam on a similar system/setup?
Thx, Bart
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: "There oughta be a law"

On Mon, 07 Jun 2004 08:27:48 -0700, Victor A. Wagner Jr. wrote:
I tried to find what's wrong (no I'm not using NT, I'm using XP) and didn't see anything obvious. I added after: echo ### Using '%BOOST_JAM_TOOLSET%' toolset. the following lines echo ### BOOST_JAM_TOOLSET_ROOT='%BOOST_JAM_TOOLSET_ROOT%' echo ### BOOST_JAM_CC='%BOOST_JAM_CC%' echo ### BOOST_JAM_OPT_JAM='%BOOST_JAM_OPT_JAM%' echo ### BOOST_JAM_OPT_MKJAMBASE='%BOOST_JAM_OPT_MKJAMBASE%' echo ### BOOST_JAM_OPT_YYACC='%BOOST_JAM_OPT_YYACC%' echo ### _known_='_%_known_%_'
perhaps the additional output you get will help find the problem. ....this is what I get..... C:\Projects\boost\tools\build\jam_src>build Setting environment for using Microsoft Visual Studio .NET 2003 tools. (If you have another version of Visual Studio or Visual C++ installed and wish to use its tools from the command line, run vcvars32.bat for that version.) ### ### Using 'vc7' toolset. ### BOOST_JAM_TOOLSET_ROOT='C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\\..\..\VC7\' ### BOOST_JAM_CC='cl /nologo /GZ /Zi /MLd -DNT -DYYDEBUG kernel32.lib advapi32.lib' ### BOOST_JAM_OPT_JAM='/Febootstrap.vc7\jam0' ### BOOST_JAM_OPT_MKJAMBASE='/Febootstrap.vc7\mkjambase0' ### BOOST_JAM_OPT_YYACC='/Febootstrap.vc7\yyacc0' ### _known_='_1_' ###
Victor, I added the lines and the output is: C:\boost\tools\build\jam_src>build.bat vc7 ### ### Using '' toolset. ### BOOST_JAM_TOOLSET_ROOT='' ### BOOST_JAM_CC='' ### BOOST_JAM_OPT_JAM='' ### BOOST_JAM_OPT_MKJAMBASE='' ### BOOST_JAM_OPT_YYACC='' ### _known_='__' ### At this point I decided to hardcode these vaules. Using the output from your modified build.bat, and making the appropriate changes, I was able to build bjam. I realize this doesn't fix the problem, but it got the job done. Thanks, Bart
participants (3)
-
Bart Garst
-
Rene Rivera
-
Victor A. Wagner Jr.