[MacPorts] #65785: boost: install fails with +openmpi: bootstrap compilation fails for `b2`

MacPorts noreply at macports.org
Fri Nov 25 13:40:32 UTC 2022


#65785: boost: install fails with +openmpi: bootstrap compilation fails for `b2`
----------------------+-----------------------
  Reporter:  Epoxid2  |      Owner:  michaelld
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.7.2
Resolution:           |   Keywords:  monterey
      Port:  boost    |
----------------------+-----------------------

Comment (by ds283):

 Wondering whether there was any outcome from this.

 I'm not certain whether I should log this under a second ticket, but I am
 having a similar issue when trying to build at least `boost176` or
 `boost180` with `+openmpi`. `boost171` and `boost173` build and install
 correctly.

 The problem is again with building `b2`, but the cause of the error is
 different (or at least appears different to me):
 {{{#!bash
 :info:configure Could not find a suitable toolset.
 :info:configure You can specify the toolset as the argument, i.e.:
 :info:configure     ./build.sh [options] gcc
 :info:configure Toolsets supported by this script are:
 :info:configure     acc, clang, como, gcc, intel-darwin, intel-linux, kcc,
 kylix, mipspro,
 :info:configure     pathscale, pgi, qcc, sun, sunpro, tru64cxx, vacpp
 }}}
 Moving into the build directly and trying to run `./bootstrap.sh` myself
 with a `--with-toolset` argument does better, but then `build.sh`
 complains that the C compiler does not appear to undertstand C++11
 {{{#!bash
 % ./bootstrap.sh --prefix=/opt/local --with-icu=/opt/local --with-
 python=/opt/local/bin/python3.10 --with-python-
 root=/opt/local/bin/python3.10 --with-toolset=gcc
 Building B2 engine..

 A C++11 capable compiler is required for building the B2 engine.
 Toolset 'gcc' does not appear to support C++11.

 > g++ -x c++ -std=c++11  check_cxx11.cpp
 clang: error: no such file or directory: 'check_cxx11.cpp'
 > g++ -x c++ -std=c++11 -D_GNU_SOURCE  check_cxx11.cpp
 clang: error: no such file or directory: 'check_cxx11.cpp'
 > g++ -x c++ -std=c++11 -pthread  check_cxx11.cpp
 clang: error: no such file or directory: 'check_cxx11.cpp'
 }}}

 To be clear, this only happens with the `+openmpi` variant. Trying to
 build without `+openmpi` works fine.

-- 
Ticket URL: <https://trac.macports.org/ticket/65785#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list