Re: [Boost-bugs] [Boost C++ Libraries] #5864: unable to compile boost::mpi under Windows using msvc-2008-compiller

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5864: unable to compile boost::mpi under Windows using msvc-2008-compiller
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-03 14:39:27


#5864: unable to compile boost::mpi under Windows using msvc-2008-compiller
-------------------------------------+---------------------
  Reporter: Slav Grig <armagvvg@…> | Owner: dgregor
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: mpi
   Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------+---------------------

Comment (by Taras Kozlov):

 After digging into mpi.jam I found what is the root of the problem.

 {{{
 # Determine if it is safe to execute the given shell command by trying
 # to execute it and determining whether the exit code is zero or
 # not. Returns true for an exit code of zero, false otherwise.
 local rule safe-shell-command ( cmdline )
 {
   local result = [ SHELL "$(cmdline) > /dev/null 2>/dev/null; if [ "$?"
 -eq "0" ]; then echo SSCOK; fi" ] ;
   return [ MATCH ".*(SSCOK).*" : $(result) ] ;
 }

 }}}

 It silently always return false on windows, because this is not correct
 cmd.exe command. I have attached patch that made windows specific
 workaround.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5864#comment:1>
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:13 UTC