Opened 3 weeks ago

Closed 11 days ago

#71109 closed defect (duplicate)

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]

Reported by: mgelain Owned by: nilason (Nicklas Larsson)
Priority: Normal Milestone:
Component: ports Version:
Keywords: sequoia Cc: Veence (Vincent)
Port: qgis3-ltr

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (8)

comment:1 Changed 3 weeks ago by reneeotten (Renee Otten)

Cc: Veence added
Description: modified (diff)
Keywords: sequoia added
Owner: set to nilason
Status: newassigned
Summary: build failed on sequoiaqgis3-ltr: build failed on sequoia

please attach the full main.log file to this ticket

comment:2 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: qgis3-ltr: build failed on sequoiaqgis3-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]

It's a well-known problem with old versions of boost. It can either be patched of the boost version can be updated.

Version 0, edited 3 weeks ago by ryandesign (Ryan Carsten Schmidt) (next)

comment:3 Changed 3 weeks ago by markemer (Mark Anderson)

Yeah, might want to upgrade boost, at least to 1.76 if you can, they're not usually forward compatible like that, but 1.65 moved to 1.76 without too much issue on qt5-qtlocation. We might want to give adding the Boost port group a try.

comment:4 Changed 3 weeks ago by nilason (Nicklas Larsson)

By the look of this, this is a duplicate of #70477. qgis3 does not have boost as a dependency.

comment:5 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

It could be. The portion of the log given in the ticket description is insufficient to tell which port produced the error, and the complete main.log file that would tell us was not provided.

comment:6 Changed 3 weeks ago by markemer (Mark Anderson)

Yeah, does seem like it might be a duplicate, I'll give building this a try without any changes and see if it works.

comment:7 Changed 2 weeks ago by mgelain

upgrading boost to 1.76 worked for me

sorry, my /opt/local/var/macports/logs is now empty

comment:8 Changed 11 days ago by markemer (Mark Anderson)

Resolution: duplicate
Status: assignedclosed

Duplicate of #70477

Note: See TracTickets for help on using tickets.