[MacPorts] #56517: gdal @2.3.0: A compiler with support for C++11 language features is required
MacPorts
noreply at macports.org
Sun May 20 16:23:57 UTC 2018
#56517: gdal @2.3.0: A compiler with support for C++11 language features is
required
-------------------------------------------------+-------------------------
Reporter: ryandesign | Owner: Veence
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: tiger leopard snowleopard lion | Port: gdal
mountainlion |
-------------------------------------------------+-------------------------
gdal fails to build with libstdc++:
[https://build.macports.org/builders/ports-10.6_i386_legacy-
builder/builds/42839/steps/install-port/logs/stdio 10.6]:
{{{
configure: WARNING: unrecognized options: --without-cpp11
}}}
{{{
checking if use C++14 compiler options... disabled by user
checking whether /usr/bin/g++-4.2 supports C++11 features by default... no
checking whether /usr/bin/g++-4.2 supports C++11 features with
-std=c++11... no
checking whether /usr/bin/g++-4.2 supports C++11 features with
-std=c++0x... no
checking whether /usr/bin/g++-4.2 supports C++11 features with
+std=c++11... no
checking whether /usr/bin/g++-4.2 supports C++11 features with -h
std=c++11... no
configure: error: *** A compiler with support for C++11 language features
is required.
}}}
[https://build.macports.org/builders/ports-10.8_x86_64_legacy-
builder/builds/61092/steps/install-port/logs/stdio 10.8]:
{{{
configure: WARNING: unrecognized options: --without-cpp11
}}}
{{{
fatal error: 'type_traits' file not found
#include <type_traits> // for std::is_base_of
^
}}}
The usual solution is to use the cxx11 1.1 portgroup, but gdal offers
compiler variants via the mpi portgroup, which is a conflicting concept; I
don't know how the mpi portgroup intends for this situation to be handled.
The mpi portgroup includes the compilers portgroup, and the languages
portgroup seems to work with it and offers a `compiler.cxx_standard`
option, so maybe you're meant to include the languages portgroup and use
that.
--
Ticket URL: <https://trac.macports.org/ticket/56517>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list