title: Unable to build Boost libraries with GCC
body: <p>I am using Windows 7 64-bit, and want to compile the non-precompiled libraries (specifically, I need Filesystem) from the command line (I do not use MSVC). I have MinGW, but read on the Boost website that MSYS shell is not supported, so I'm trying to compile the libraries from the Windows command prompt.</p>
  
  <p>First of all, running bootstrap.bat results in the following error:</p>
  
  <pre><code>Building Boost.Jam build engine 
  'cl' is not recognized as an internal or external command, 
  operable program or batch file. 
  
  Failed to build Boost.Jam build engine. 
  Please consult bjam.log for furter diagnostics. 
  
  You can try to obtain a prebuilt binary from 
  
     http://sf.net/project/showfiles.php?group_id=7586&amp;package_id=72941
  
  Also, you can file an issue at http://svn.boost.org
  Please attach bjam.log in that case. 
  </code></pre>
  
  <p>Plus, there is not bjam.log file anywhere in the boost_root directory.</p>
  
  <p>Disregarding this error, and trying to run the downloaded bjam.exe file, I get another error:</p>
  
  <pre><code>c:/boost_1_45_0/tools/build/v2/build\configure.jam:145: in builds-raw
  *** argument error
  * rule UPDATE_NOW ( targets * : log ? : ignore-minus-n ? )
  * called with: ( &lt;pbin.v2\libs\regex\build\gcc-mingw-4.5.2\debug\address-model64\architecture-x86&gt;has_icu.exe :  : ignore-minus-n : ignore-minus-q )
  * extra argument ignore-minus-q
  (builtin):see definition of rule 'UPDATE_NOW' being called
  c:/boost_1_45_0/tools/build/v2/build\configure.jam:179: in configu
  re.builds
  c:/boost_1_45_0/tools/build/v2/build\configure.jam:216: in object(
  check-target-builds-worker)@409.check
  </code></pre>
  
  <p>etc. with quite a lot of complaints. Setting the 'architecture' and 'address-model' options doesn't help.</p>
  
  <p>Any suggestions?</p>
  
  <p>@Andre </p>
  
  <p>Following Andre's suggestion, I created minGW-bjam that was running for an hour and a half and built most of the libraries, but not the one I need at this moment: Filesystem. 
  Trying to compile only Filesystem, specifying version 2 with <code>define="BOOST_FILESYSTEM_VERSION=2"</code> and <code>--disable-filesystem3</code> does not help. I get the following error: </p>
  
  <pre><code>gcc.compile.c++ bin.v2\libs\filesystem\build\gcc-mingw-4.5.2\debug\v3\src\operations.o
  In file included from ./boost/filesystem/v3/operations.hpp:24:0,
               from libs\filesystem\v3\src\operations.cpp:48:
  ./boost/filesystem/v3/config.hpp:16:5: error: #error Compiling Filesystem version 3 
  file with BOOST_FILESYSTEM_VERSION defined != 3
  libs\filesystem\v3\src\operations.cpp:647:26: warning: 
  '&lt;unnamed&gt;::create_symbolic_link_api' defined but not used
  
  "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g -DBOOST_ALL_NO_LIB=1 -
  DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_FILESYSTEM_VERSION=2 -DBOOST_SYSTEM_DYN_LINK=1  -
  I"." -c -o "bin.v2\libs\filesystem\build\gcc-mingw-4.5.2\debug\v3\src\operations.o"  
  "libs\filesystem\v3\src\operations.cpp"
  </code></pre>
  
  <p>etc. with a lot of <code>...failed</code> statements. </p>
  
  <p>Any hints here? </p>