Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944408 - dev-qt/qtlocation-5.15.16 fails to compile: localpointer.h:561:26: error: auto parameter not permitted in this context
Summary: dev-qt/qtlocation-5.15.16 fails to compile: localpointer.h:561:26: error: aut...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 944509 (view as bug list)
Depends on:
Blocks: icu-75
  Show dependency tree
 
Reported: 2024-11-22 08:29 UTC by Agostino Sarubbo
Modified: 2024-11-22 21:10 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,224.02 KB, text/plain)
2024-11-22 08:29 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-11-22 08:29:49 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-qt/qtlocation-5.15.16 fails to compile.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-11-22 08:29:51 UTC
Created attachment 911484 [details]
build.log

build log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-22 11:39:11 UTC
In file included from /usr/include/unicode/ubidi.h:26,
                 from /var/tmp/portage/dev-qt/qtlocation-5.15.16/work/qtlocation-everywhere-src-5.15.16/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:4:
/usr/include/unicode/localpointer.h:561:26: error: ‘auto’ parameter not permitted in this context
  561 | template <typename Type, auto closeFunction>
      |                          ^~~~
/usr/include/unicode/localpointer.h:573:76: error: template argument 2 is invalid
  573 | it LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
      |                                                                  ^

/usr/include/unicode/localpointer.h:583:78: error: template argument 2 is invalid
  583 | ointer &operator=(std::unique_ptr<Type, decltype(closeFunction)> &&p) {
      |                                                                ^

/usr/include/unicode/localpointer.h:599:59: error: template argument 2 is invalid
  599 |     operator std::unique_ptr<Type, decltype(closeFunction)> () && {
      |                                                           ^
/usr/include/unicode/ubidi.h:579:1: note: invalid template non-type parameter
  579 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUBiDiPointer, UBiDi, ubidi_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:1674: .obj/platform/default/bidi.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-qt/qtlocation-5.15.16::gentoo failed (compile phase):
 *   emake failed
 * 

C++14 vs C++17.
Comment 3 Larry the Git Cow gentoo-dev 2024-11-22 19:08:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47968ab348d8360284aa5351502d61a39f1cd4d8

commit 47968ab348d8360284aa5351502d61a39f1cd4d8
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-06-10 19:48:29 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-11-22 19:08:16 +0000

    dev-qt/qtlocation: Re-apply >=dev-libs/icu-75 buildfix
    
    Bumping to MAPBOXGL_COMMIT=35d566724c48180c9a372c2ed50a253871a51574
    that was already part of 5.15.14-r1.
    
    Closes: https://bugs.gentoo.org/944408
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qtlocation/qtlocation-5.15.16-r1.ebuild | 59 ++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-22 21:10:30 UTC
*** Bug 944509 has been marked as a duplicate of this bug. ***