Newbie help in compiling boost
Platform: Windows XP Compiler: VC7 (Visual Studio .NET) Shell: Cmd.exe BJAM: Prebuilt version 3.1.10-1-ntx86 from sourceforge Boost Version: 1.31.0 On the prompt: * set PYTHON_ROOT=C:\Python23 * set PYTHON_VERSION=2.3 * C:\Program Files\...\VC7\bin\VCVARS32.BAT (execute this) * bjam "-sTOOLS=vc7" install I get a whole lot of lines of the form ...skipped XXX for lack of YYY... and finally get ...failed updating 2 targets ...skipped 3077 targets Any pointers on what I am doing wrong. On the prompt I am able to run "cl, link, nmake" without any problems (i.e. path is set correctly by vcvars32.bat). - Murali
Murali Krishnan Ganapathy wrote:
Platform: Windows XP Compiler: VC7 (Visual Studio .NET) Shell: Cmd.exe BJAM: Prebuilt version 3.1.10-1-ntx86 from sourceforge Boost Version: 1.31.0
On the prompt: * set PYTHON_ROOT=C:\Python23 * set PYTHON_VERSION=2.3 * C:\Program Files\...\VC7\bin\VCVARS32.BAT (execute this) * bjam "-sTOOLS=vc7" install
Nice! Thanks for listing the basic info most people don't mention :-)
I get a whole lot of lines of the form ...skipped XXX for lack of YYY... and finally get
...failed updating 2 targets ...skipped 3077 targets
Any pointers on what I am doing wrong.
What you did looks reasonable. What the failures you are seeing? What does it skip building? Are they compile errors? --grafik
After more investigation * Confirmed that bjam is in the PATH * I have captured the first few lines of the output (below) ------------ OUTPUT HEADER ------- ...patience... ...found 9076 targets... ...updating 3307 targets... MkDir1 C:\Boost mkdir "C:\Boost" ...failed MkDir1 C:\Boost... .----------------------------- END OF HEADER ------------- It looks like it fails on directory creation. I am running this as the administrator, so it cannot be a permission problem. Just to make sure I created the C:\Boost by hand and re-ran the bjam invocation. This time the top few lines read ------------------ OUTPUT HEADER ------ ...patience... ...found 9076 targets... ...updating 3306 targets... MkDir1 C:\Boost\lib mkdir "C:\Boost\lib" ...failed MkDir1 C:\Boost\lib... -------------- END HEADER -------- confirming what I suspected. Since this is the first time I am using bjam, I dont know how to fix this. Any help is appreciated. - Murali Rene Rivera wrote:
Murali Krishnan Ganapathy wrote:
Platform: Windows XP Compiler: VC7 (Visual Studio .NET) Shell: Cmd.exe BJAM: Prebuilt version 3.1.10-1-ntx86 from sourceforge Boost Version: 1.31.0
On the prompt: * set PYTHON_ROOT=C:\Python23 * set PYTHON_VERSION=2.3 * C:\Program Files\...\VC7\bin\VCVARS32.BAT (execute this) * bjam "-sTOOLS=vc7" install
Nice! Thanks for listing the basic info most people don't mention :-)
I get a whole lot of lines of the form ...skipped XXX for lack of YYY... and finally get
...failed updating 2 targets ...skipped 3077 targets
Any pointers on what I am doing wrong.
What you did looks reasonable. What the failures you are seeing? What does it skip building? Are they compile errors?
--grafik
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I have traced the problem with mkdir, though whether the build completes or not, only time will tell (it is currently building the python and the C libraries). The problem with mkdir still baffles me. It is to do with the %TEMP% or %TMP% variable. On my machine both %TEMP% and %TMP% expand to "C:\Documents and Settings\Maha & Murali\..." I confirm this when I see the "environment variables" listing (My Computer -> Properites -> Advanced -> Environment Variables). However when I do a "SET" on the command prompt %TEMP% expands to "C:\DOCUME~1\..." the underlying DOS file name. I guess boost.jam creates the directory in TEMP and then moves it over (why?). When boost.jam tries to make a directory it tries to access %TEMP%. Machine complains that there is no "C;\DOCUME~1\...." (it is not checking the 8.3 version I guess) and the mkdir1 fails. The work around is to have a simple %TEMP% and %TMP%. I reset %TEMP% and %TMP% to "C:\Temp" (no spaces and less than 8 chars), now boost is building as I write this. I guess this should be considered as a minor bug in bjam? - Murali Murali Krishnan Ganapathy wrote:
After more investigation * Confirmed that bjam is in the PATH * I have captured the first few lines of the output (below) ------------ OUTPUT HEADER ------- ...patience... ...found 9076 targets... ...updating 3307 targets... MkDir1 C:\Boost
mkdir "C:\Boost"
...failed MkDir1 C:\Boost... .----------------------------- END OF HEADER -------------
It looks like it fails on directory creation. I am running this as the administrator, so it cannot be a permission problem. Just to make sure I created the C:\Boost by hand and re-ran the bjam invocation. This time the top few lines read
------------------ OUTPUT HEADER ------ ...patience... ...found 9076 targets... ...updating 3306 targets... MkDir1 C:\Boost\lib
mkdir "C:\Boost\lib"
...failed MkDir1 C:\Boost\lib... -------------- END HEADER --------
confirming what I suspected. Since this is the first time I am using bjam, I dont know how to fix this.
Any help is appreciated.
- Murali
Rene Rivera wrote:
Murali Krishnan Ganapathy wrote:
Platform: Windows XP Compiler: VC7 (Visual Studio .NET) Shell: Cmd.exe BJAM: Prebuilt version 3.1.10-1-ntx86 from sourceforge Boost Version: 1.31.0
On the prompt: * set PYTHON_ROOT=C:\Python23 * set PYTHON_VERSION=2.3 * C:\Program Files\...\VC7\bin\VCVARS32.BAT (execute this) * bjam "-sTOOLS=vc7" install
Nice! Thanks for listing the basic info most people don't mention :-)
I get a whole lot of lines of the form ...skipped XXX for lack of YYY... and finally get
...failed updating 2 targets ...skipped 3077 targets
Any pointers on what I am doing wrong.
What you did looks reasonable. What the failures you are seeing? What does it skip building? Are they compile errors?
--grafik
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Murali Krishnan Ganapathy
I have traced the problem with mkdir, though whether the build completes or not, only time will tell (it is currently building the python and the C libraries).
The problem with mkdir still baffles me. It is to do with the %TEMP% or %TMP% variable. On my machine both %TEMP% and %TMP% expand to "C:\Documents and Settings\Maha & Murali\..." I confirm this when I see the "environment variables" listing (My Computer -> Properites -> Advanced -> Environment Variables). However when I do a "SET" on the command prompt %TEMP% expands to "C:\DOCUME~1\..." the underlying DOS file name.
I guess boost.jam creates the directory in TEMP and then moves it over (why?).
It doesn't.
When boost.jam tries to make a directory it tries to access %TEMP%. Machine complains that there is no "C;\DOCUME~1\...." (it is not checking the 8.3 version I guess) and the mkdir1 fails.
The exact command being executed by bjam is: mkdir "C:\Boost" However, bjam is writing this command into a temporary .CMD file in %TEMP% before executing it. Probably that's what's failing.
The work around is to have a simple %TEMP% and %TMP%. I reset %TEMP% and %TMP% to "C:\Temp" (no spaces and less than 8 chars), now boost is building as I write this.
I guess this should be considered as a minor bug in bjam?
Maybe so. Any Win/DOS experts out there who can suggest a correct fix? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (3)
-
David Abrahams
-
Murali Krishnan Ganapathy
-
Rene Rivera