[MacPorts] #69103: boost178 @1.78.0_8: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type

MacPorts noreply at macports.org
Sat Jan 13 19:40:07 UTC 2024


#69103: boost178 @1.78.0_8: error: integer value -1 is outside the valid range of
values [0, 3] for this enumeration type
------------------------+-----------------------
 Reporter:  ryandesign  |      Owner:  michaelld
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.8.1
 Keywords:              |       Port:  boost178
------------------------+-----------------------
 boost178 does not build anymore on 10.7–10.13 buildbot systems (see
 https://ports.macports.org/port/boost178/details):

 {{{
 In file included from libs/log/src/severity_level.cpp:18:
 In file included from ./boost/log/sources/severity_feature.hpp:31:
 In file included from ./boost/log/utility/strictest_lock.hpp:19:
 In file included from ./boost/mpl/integral_c.hpp:32:
 ./boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is
 outside the valid range of values [0, 3] for this enumeration type
 [-Wenum-constexpr-conversion]
     typedef AUX_WRAPPER_INST(
 BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;
                               ^
 ./boost/mpl/aux_/static_cast.hpp:24:47: note: expanded from macro
 'BOOST_MPL_AUX_STATIC_CAST'
 #   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)
                                               ^
 1 error generated.
 }}}

 I verified this on my own OS X 10.11 system. These builds are currently
 happening with clang 16. I assume the default fallback compiler for
 MacPorts was upgraded to 16 at some point and this caused the problem.

 This was previously reported for boost176 in #68373 but was closed as
 invalid by the reporter, and I do not see a build failure of boost176 on
 my OS X 10.11 system.

 boost178 still builds fine on 10.6 where the default fallback compiler
 seems to be clang 11.

-- 
Ticket URL: <https://trac.macports.org/ticket/69103>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list