Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790011 - dev-qt/qt-creator-4.12.3-r1 fails to compile with gcc-11
Summary: dev-qt/qt-creator-4.12.3-r1 fails to compile with gcc-11
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Davide Pesavento
Keywords: PATCH
Depends on:
Blocks: gcc-11
  Show dependency tree
Reported: 2021-05-13 18:40 UTC by Agostino Sarubbo
Modified: 2021-09-18 09:18 UTC (History)
6 users (show)

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

build.log (build.log,824.04 KB, text/plain)
2021-05-13 18:40 UTC, Agostino Sarubbo
patch for gcc-11 (qt-creater-fix-gcc11.patch,209 bytes, patch)
2021-05-29 19:46 UTC, Jack
Details | Diff
patch qmlevent.h as well (qt-creator-4.12.3-r1-gcc11.patch,413 bytes, patch)
2021-07-02 17:56 UTC, Herb Miller Jr.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-05-13 18:40:15 UTC

Issue: dev-qt/qt-creator-4.12.3-r1 fails to compile with gcc-11.
Discovered on: amd64 (internal ref: tinderbox)

This machine uses GCC-11:
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-13 18:40:19 UTC
Created attachment 708138 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-13 18:40:21 UTC
Possible context of error(s):

../../libs/utils/smallstring.h:898:32: error: ‘numeric_limits’ is not a member of ‘std’
Comment 3 Jack 2021-05-29 19:46:39 UTC
Created attachment 712296 [details, diff]
patch for gcc-11

Patch allows successful compile.  Just adds

#include <limits>

to appropriate file.  Similar patch to several other packages with same failure.
Comment 4 Herb Miller Jr. 2021-07-02 17:56:32 UTC
Created attachment 721095 [details, diff]
patch qmlevent.h as well

I'm running gcc-11.1.0-r1 and had to patch qmlevent.h as well.
Comment 5 Davide Pesavento gentoo-dev 2021-07-11 05:42:33 UTC
does 4.15.1 work?
Comment 6 vowstar 2021-07-12 06:08:15 UTC
(In reply to Davide Pesavento from comment #5)
> does 4.15.1 work?

not work
Comment 7 David Seifert gentoo-dev 2021-08-04 21:47:29 UTC
Can you try again on GCC 11.2?