Opened 9 years ago

Last modified 9 years ago

#8762 new Bugs

Boost.Build engine build fails with MinGW toolset

Reported by: josuegomes@… Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc: dwalker07@…

Description

MinGW toolset and MSYS shell:

$ cd boost_1_54_0
$ ./bootstrap.sh --with-toolset=mingw
Building Boost.Build engine with toolset mingw...
Failed to build Boost.Build build engine
Consult 'bootstrap.log' for more details

bootstrap.log attached

Attachments (1)

bootstrap.zip (606 bytes ) - added by Josue Andrade Gomes <josuegomes@…> 9 years ago.
bootstrap.log

Download all attachments as: .zip

Change History (6)

by Josue Andrade Gomes <josuegomes@…>, 9 years ago

Attachment: bootstrap.zip added

bootstrap.log

comment:1 by Josue Andrade Gomes <josuegomes@…>, 9 years ago

Could not attach plain bootstrap.log so compressed it.

comment:2 by Daryle Walker, 9 years ago

Cc: dwalker07@… added

comment:3 by anonymous, 9 years ago

I managed to build it following these steps:

  1. Installed MinGW stable (mingw-get-inst-20120426.exe) to C:\MinGW
  2. Added zlib (get libz-1.2.7-1-mingw32-dev.tar.lzma and libz-1.2.7-1-mingw32-dll-1.tar.lzma from http://sourceforge.net/projects/mingw/files/MinGW/Extension/zlib/zlib-1.2.7-1/)
  3. Extract boost_1_54_0.zip to C:\MinGW (after it's finished it should be in C:\MinGW\boost_1_54_0)
  4. Open a command prompt (cmd, not MSYS), add the MinGW bin directory to the PATH, build and install Boost.Build

SET PATH=C:\MinGW\bin;%PATH% cd C:\MinGW\boost_1_54_0\tools\build\v2 bootstrap.bat b2 install --prefix=C:/MinGW/b2

  1. Build Boost

..\b2\bin\b2 -j %NUMBER_OF_PROCESSORS% -a toolset=gcc --disable-icu --without-context --without-coroutine --build-type=complete stage

  1. Wait for something between 40 minutes to 2 hours and you should have everything ready in C:\MinGW\boost_1_54_0\stage\lib

comment:4 by anonymous, 9 years ago

I have rewritten, tested and published these instructions in my blog.

comment:5 by Eric Niebler, 9 years ago

(In [86460]) mingw patch for bootstrap from Stephan T. Lavavej, refs #8762

Note: See TracTickets for help on using tickets.