[MacPorts] #69582: qt56-qtbase: error: integer value -1 is outside the valid range of values for this enumeration type

MacPorts noreply at macports.org
Sun Mar 24 13:39:29 UTC 2024


#69582: qt56-qtbase: error: integer value -1 is outside the valid range of values
for this enumeration type
------------------------+---------------------------------
 Reporter:  ryandesign  |      Owner:  MarcusCalhoun-Lopez
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.9.1
 Keywords:  lion        |       Port:  qt56-qtbase
------------------------+---------------------------------
 On Mac OS X 10.7 MacPorts chooses to build qt56-qtbase with MacPorts
 clang-16 which fails because of these errors in
 src/corelib/global/qtypetraits.h:

 {{{
 error: integer value -1 is outside the valid range of values [0, 511] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 3] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 65535]
 for this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 15] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 15] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 15] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 1023] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 31] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 511] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 127] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 15] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 15] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 15] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 255] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 7] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 15] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 3] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 15] for
 this enumeration type [-Wenum-constexpr-conversion]
 error: integer value -1 is outside the valid range of values [0, 3] for
 this enumeration type [-Wenum-constexpr-conversion]
 }}}

 I imagine this used to work, and then at some point the default MacPorts
 clang compiler was changed to a newer version that now considers this to
 be an error.

 I already had MacPorts clang-3.7 installed so I tried building it with
 that instead and it worked.

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


More information about the macports-tickets mailing list