Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913205 - dev-qt/qtlocation-5.15.10 fails to compile (Clang 17): integer value -1 is outside the valid range of values [0, 3] for the enumeration type [-Wenum-constexpr-conversion]
Summary: dev-qt/qtlocation-5.15.10 fails to compile (Clang 17): integer value -1 is ou...
Status: RESOLVED DUPLICATE of bug 895516
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-29 08:52 UTC by Stuart Meya
Modified: 2023-12-26 09:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,354.56 KB, text/x-log)
2023-08-29 08:52 UTC, Stuart Meya
Details
emerge --info (emerge-info.log,19.54 KB, text/x-log)
2023-08-29 08:53 UTC, Stuart Meya
Details
emerge -pqv '=dev-qt/qtlocation-5.15.10::gentoo' (emerge-pqv.log,70 bytes, text/x-log)
2023-08-29 08:53 UTC, Stuart Meya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Meya 2023-08-29 08:52:41 UTC
Created attachment 868974 [details]
build.log

Hi,

I noticed the following errors while compiling dev-qt/qtlocation-5.15.10 on a LLVM/Clang 17 system:

/var/tmp/portage/dev-qt/qtlocation-5.15.10/work/qtlocation-everywhere-src-5.15.10/src/3rdparty/mapbox-gl-native/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]
   73 |     typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;
      |

/var/tmp/portage/dev-qt/qtlocation-5.15.10/work/qtlocation-everywhere-src-5.15.10/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note: 
      expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
   24 | #   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)
var/tmp/portage/dev-qt/qtlocation-5.15.10/work/qtlocation-everywhere-src-5.15.10/src/3rdparty/mapbox-gl-native/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]
/var/tmp/portage/dev-qt/qtlocation-5.15.10/work/qtlocation-everywhere-src-5.15.10/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note: 
      expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
   24 | #   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)

Greetings,
Stuart
Comment 1 Stuart Meya 2023-08-29 08:53:03 UTC
Created attachment 868975 [details]
emerge --info
Comment 2 Stuart Meya 2023-08-29 08:53:51 UTC
Created attachment 868976 [details]
emerge -pqv '=dev-qt/qtlocation-5.15.10::gentoo'
Comment 3 Arniii 2023-09-20 07:19:32 UTC
seems duplicate of https://bugs.gentoo.org/895516

also, I got the same error at 5.15.10 with glibc + clang profile + clang 16 + LTO + native + debug symbols.
Comment 4 Andreas Sturmlechner gentoo-dev 2023-12-26 09:23:22 UTC

*** This bug has been marked as a duplicate of bug 895516 ***