Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5680: bootstrap Boost.Build fails with MinGW 20110530: missing sys/wait.h, sys/resource.h, ar.h
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-18 14:20:35
#5680: bootstrap Boost.Build fails with MinGW 20110530: missing sys/wait.h,
sys/resource.h, ar.h
-------------------------------------+-------------------------------------
Reporter: Alex Millian Hankins | Owner:
<lx_boost@â¦> | Status: new
Type: Bugs | Component: Building Boost
Milestone: To Be Determined | Severity: Problem
Version: Boost 1.46.1 | Keywords: mingw bjam bootstrap
Resolution: | build
-------------------------------------+-------------------------------------
Comment (by Marcin Wojdyr <wojdyr@â¦>):
It still doesn't work in 1.55.
When bootstrap.sh is run without toolset specified, it first guesses
toolset as mingw, but then
{{{
case $guessed_toolset in
[...]
mingw )
TOOLSET=gcc
;;
}}}
so `$guessed_toolset` is set to mingw but `TOOLSET` is set to gcc instead,
and bootstrap fails while compiling BJAM_SOURCES.
Specifying `--with-toolset=mingw` avoids this substitution, but in jam
file gcc must be used.
Here is a patch that makes it work.
{{{
#!patch
--- bootstrap.sh.orig 2014-02-18 13:36:55 +0000
+++ bootstrap.sh 2014-02-18 13:40:58 +0000
@@ -187,7 +187,7 @@
if test "x$TOOLSET" = x; then
guessed_toolset=`$my_dir/tools/build/v2/engine/build.sh --guess-
toolset`
case $guessed_toolset in
- acc | darwin | gcc | como | mipspro | pathscale | pgi | qcc | vacpp )
+ acc | darwin | gcc | como | mipspro | pathscale | pgi | qcc | vacpp |
mingw )
TOOLSET=$guessed_toolset
;;
@@ -195,10 +195,6 @@
TOOLSET=intel
;;
- mingw )
- TOOLSET=gcc
- ;;
-
sun* )
TOOLSET=sun
;;
@@ -320,6 +316,10 @@
mv "project-config.jam" "project-config.jam.$counter"
fi
+if test "$TOOLSET" = mingw; then
+ TOOLSET=gcc
+fi
+
# Generate user-config.jam
echo "Generating Boost.Build configuration in project-config.jam..."
cat > project-config.jam <<EOF
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5680#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC