[MacPorts] #71109: qgis3-ltr: error: integer value -1 is outside the valid range of values [0, 3] for the enumeration type 'int_float_mixture_enum' [-Wenum-constexpr-conversion] (was: qgis3-ltr: build failed on sequoia)
MacPorts
noreply at macports.org
Wed Oct 16 23:00:49 UTC 2024
#71109: qgis3-ltr: error: integer value -1 is outside the valid range of values [0,
3] for the enumeration type 'int_float_mixture_enum' [-Wenum-constexpr-
conversion]
------------------------+----------------------
Reporter: mgelain | Owner: nilason
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sequoia
Port: qgis3-ltr |
------------------------+----------------------
Old description:
> Executing
>
> sudo port install qgis3-ltr +grass
>
> I get the followinf error (extraction from log):
> {{{
> :info:build /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe
> -stdlib=libc++ -I/opt/local/include -DNDEBUG -DQT_IMAGE_DECODERS
> -DQT_BUILD_MAPBOXGL_LIB -DRAPIDJSON_HAS_STDSTRING=1 -DMBGL_USE_GLES2
> -D__QT__ -O3 -ftemplate-depth=1024 -fvisibility-inlines-hidden
> -fvisibility=hidden -DMBGL_VERSION_REV=\"qt-v1.5.0\" -Os -fPIC -std=c++1y
> -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
> -mmacosx-version-min=14.0 -w -fvisibility=hidden -fvisibility-inlines-
> hidden -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS
> -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
> -DGL_SILENCE_DEPRECATION -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB
> -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I.
> -Ideps/boost/1.65.1 -Ideps/boost/1.65.1/include -Ideps/earcut/0.12.4
> -Ideps/earcut/0.12.4/include -Ideps/geojson/0.4.2
> -Ideps/geojson/0.4.2/include -Ideps/geojsonvt/6.5.1
> -Ideps/geojsonvt/6.5.1/include -Ideps/geometry/0.9.3
> -Ideps/geometry/0.9.3/include -Ideps/kdbush/0.1.1-1
> -Ideps/kdbush/0.1.1-1/include -Ideps/optional/f27e7908
> -Ideps/optional/f27e7908/include -Ideps/polylabel/1.0.3
> -Ideps/polylabel/1.0.3/include -Ideps/protozero/1.5.2
> -Ideps/protozero/1.5.2/include -Ideps/rapidjson/1.1.0
> -Ideps/rapidjson/1.1.0/include -Ideps/shelf-pack/2.1.1 -Ideps/shelf-
> pack/2.1.1/include -Ideps/supercluster/0.2.2
> -Ideps/supercluster/0.2.2/include -Ideps/tao_tuple/28626e99
> -Ideps/tao_tuple/28626e99/include -Ideps/unique_resource/cba309e
> -Ideps/unique_resource/cba309e/include -Ideps/variant/1.1.4
> -Ideps/variant/1.1.4/include -Ideps/vector-tile/1.0.2 -Ideps/vector-
> tile/1.0.2/include -Ideps/wagyu/0.4.3 -Ideps/wagyu/0.4.3/include
> -Iinclude -Iplatform/default -Iplatform/qt -Iplatform/qt/include -Isrc
> -Ivendor/nunicode/include
> -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers/5.15.15
> -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers/5.15.15/QtNetwork
> -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers/5.15.15
> -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers/5.15.15/QtGui
> -I/opt/local/libexec/qt5/lib/QtSql.framework/Headers/5.15.15
> -I/opt/local/libexec/qt5/lib/QtSql.framework/Headers/5.15.15/QtSql
> -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers/5.15.15
> -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers/5.15.15/QtCore
> -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers
> -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers
> -I/opt/local/libexec/qt5/lib/QtSql.framework/Headers
> -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -I.moc
> -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers
> -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers
> -I/opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib
> -o .obj/src/mbgl/storage/resource.o src/mbgl/storage/resource.cpp
> :info:build In file included from
> src/mbgl/annotation/annotation_manager.cpp:1:
> :info:build In file included from
> src/mbgl/annotation/annotation_manager.hpp:4:
> :info:build In file included from
> src/mbgl/annotation/symbol_annotation_impl.hpp:24:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/geometry.hpp:17:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/geometry/geometry.hpp:43:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/geometry/core/radian_access.hpp:26:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/cast.hpp:33:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/converter.hpp:13:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/conversion_traits.hpp:13:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/detail/conversion_traits.hpp:18:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/detail/int_float_mixture.hpp:19:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/mpl/integral_c.hpp:32:
> :info:build
> deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp:73:31:
> error: integer value -1 is outside the valid range of values [0, 3] for
> the enumeration type 'udt_builtin_mixture_enum' [-Wenum-constexpr-
> conversion]
> :info:build 73 | typedef AUX_WRAPPER_INST(
> BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;
> :info:build | ^
> :info:build
> deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note:
> expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
> :info:build 24 | # define BOOST_MPL_AUX_STATIC_CAST(T, expr)
> static_cast<T>(expr)
> :info:build | ^
> :info:build In file included from
> src/mbgl/annotation/annotation_manager.cpp:1:
> :info:build In file included from
> src/mbgl/annotation/annotation_manager.hpp:4:
> :info:build In file included from
> src/mbgl/annotation/symbol_annotation_impl.hpp:24:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/geometry.hpp:17:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/geometry/geometry.hpp:43:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/geometry/core/radian_access.hpp:26:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/cast.hpp:33:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/converter.hpp:13:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/conversion_traits.hpp:13:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/detail/conversion_traits.hpp:18:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/numeric/conversion/detail/int_float_mixture.hpp:19:
> :info:build In file included from
> deps/boost/1.65.1/include/boost/mpl/integral_c.hpp:32:
> :info:build
> deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp:73:31:
> error: integer value -1 is outside the valid range of values [0, 3] for
> the enumeration type 'int_float_mixture_enum' [-Wenum-constexpr-
> conversion]
> :info:build
> deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note:
> expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
> :info:build 24 | # define BOOST_MPL_AUX_STATIC_CAST(T, expr)
> static_cast<T>(expr)
> :info:build | ^q
> }}}
New description:
Executing
{{{
sudo port install qgis3-ltr +grass
}}}
I get the following error (extraction from log):
{{{
:info:build /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe
-stdlib=libc++ -I/opt/local/include -DNDEBUG -DQT_IMAGE_DECODERS
-DQT_BUILD_MAPBOXGL_LIB -DRAPIDJSON_HAS_STDSTRING=1 -DMBGL_USE_GLES2
-D__QT__ -O3 -ftemplate-depth=1024 -fvisibility-inlines-hidden
-fvisibility=hidden -DMBGL_VERSION_REV=\"qt-v1.5.0\" -Os -fPIC -std=c++1y
-arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
-mmacosx-version-min=14.0 -w -fvisibility=hidden -fvisibility-inlines-
hidden -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS
-DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
-DGL_SILENCE_DEPRECATION -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB
-DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I.
-Ideps/boost/1.65.1 -Ideps/boost/1.65.1/include -Ideps/earcut/0.12.4
-Ideps/earcut/0.12.4/include -Ideps/geojson/0.4.2
-Ideps/geojson/0.4.2/include -Ideps/geojsonvt/6.5.1
-Ideps/geojsonvt/6.5.1/include -Ideps/geometry/0.9.3
-Ideps/geometry/0.9.3/include -Ideps/kdbush/0.1.1-1
-Ideps/kdbush/0.1.1-1/include -Ideps/optional/f27e7908
-Ideps/optional/f27e7908/include -Ideps/polylabel/1.0.3
-Ideps/polylabel/1.0.3/include -Ideps/protozero/1.5.2
-Ideps/protozero/1.5.2/include -Ideps/rapidjson/1.1.0
-Ideps/rapidjson/1.1.0/include -Ideps/shelf-pack/2.1.1 -Ideps/shelf-
pack/2.1.1/include -Ideps/supercluster/0.2.2
-Ideps/supercluster/0.2.2/include -Ideps/tao_tuple/28626e99
-Ideps/tao_tuple/28626e99/include -Ideps/unique_resource/cba309e
-Ideps/unique_resource/cba309e/include -Ideps/variant/1.1.4
-Ideps/variant/1.1.4/include -Ideps/vector-tile/1.0.2 -Ideps/vector-
tile/1.0.2/include -Ideps/wagyu/0.4.3 -Ideps/wagyu/0.4.3/include -Iinclude
-Iplatform/default -Iplatform/qt -Iplatform/qt/include -Isrc
-Ivendor/nunicode/include
-I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers/5.15.15
-I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers/5.15.15/QtNetwork
-I/opt/local/libexec/qt5/lib/QtGui.framework/Headers/5.15.15
-I/opt/local/libexec/qt5/lib/QtGui.framework/Headers/5.15.15/QtGui
-I/opt/local/libexec/qt5/lib/QtSql.framework/Headers/5.15.15
-I/opt/local/libexec/qt5/lib/QtSql.framework/Headers/5.15.15/QtSql
-I/opt/local/libexec/qt5/lib/QtCore.framework/Headers/5.15.15
-I/opt/local/libexec/qt5/lib/QtCore.framework/Headers/5.15.15/QtCore
-I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers
-I/opt/local/libexec/qt5/lib/QtGui.framework/Headers
-I/opt/local/libexec/qt5/lib/QtSql.framework/Headers
-I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -I.moc
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers
-I/opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib
-o .obj/src/mbgl/storage/resource.o src/mbgl/storage/resource.cpp
:info:build In file included from
src/mbgl/annotation/annotation_manager.cpp:1:
:info:build In file included from
src/mbgl/annotation/annotation_manager.hpp:4:
:info:build In file included from
src/mbgl/annotation/symbol_annotation_impl.hpp:24:
:info:build In file included from
deps/boost/1.65.1/include/boost/geometry.hpp:17:
:info:build In file included from
deps/boost/1.65.1/include/boost/geometry/geometry.hpp:43:
:info:build In file included from
deps/boost/1.65.1/include/boost/geometry/core/radian_access.hpp:26:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/cast.hpp:33:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/converter.hpp:13:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/conversion_traits.hpp:13:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/detail/conversion_traits.hpp:18:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/detail/int_float_mixture.hpp:19:
:info:build In file included from
deps/boost/1.65.1/include/boost/mpl/integral_c.hpp:32:
:info:build
deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp:73:31:
error: integer value -1 is outside the valid range of values [0, 3] for
the enumeration type 'udt_builtin_mixture_enum' [-Wenum-constexpr-
conversion]
:info:build 73 | typedef AUX_WRAPPER_INST(
BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;
:info:build | ^
:info:build
deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note:
expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
:info:build 24 | # define BOOST_MPL_AUX_STATIC_CAST(T, expr)
static_cast<T>(expr)
:info:build | ^
:info:build In file included from
src/mbgl/annotation/annotation_manager.cpp:1:
:info:build In file included from
src/mbgl/annotation/annotation_manager.hpp:4:
:info:build In file included from
src/mbgl/annotation/symbol_annotation_impl.hpp:24:
:info:build In file included from
deps/boost/1.65.1/include/boost/geometry.hpp:17:
:info:build In file included from
deps/boost/1.65.1/include/boost/geometry/geometry.hpp:43:
:info:build In file included from
deps/boost/1.65.1/include/boost/geometry/core/radian_access.hpp:26:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/cast.hpp:33:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/converter.hpp:13:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/conversion_traits.hpp:13:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/detail/conversion_traits.hpp:18:
:info:build In file included from
deps/boost/1.65.1/include/boost/numeric/conversion/detail/int_float_mixture.hpp:19:
:info:build In file included from
deps/boost/1.65.1/include/boost/mpl/integral_c.hpp:32:
:info:build
deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp:73:31:
error: integer value -1 is outside the valid range of values [0, 3] for
the enumeration type 'int_float_mixture_enum' [-Wenum-constexpr-
conversion]
:info:build
deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note:
expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
:info:build 24 | # define BOOST_MPL_AUX_STATIC_CAST(T, expr)
static_cast<T>(expr)
:info:build | ^q
}}}
--
Comment (by ryandesign):
It's a [query:summary=~integer+value+-1 well-known problem] with old
versions of boost. It can either be patched of the boost version can be
updated.
--
Ticket URL: <https://trac.macports.org/ticket/71109#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list