Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 790011

Summary: dev-qt/qt-creator-4.12.3-r1 fails to compile with gcc-11
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Davide Pesavento <pesa>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: leonchik1976, ostroffjh, qt, vowstar, wilburluo, xavier.miller
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: build.log
patch for gcc-11
patch qmlevent.h as well

Description Agostino Sarubbo gentoo-dev 2021-05-13 18:40:15 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

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

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-13 18:40:19 UTC
Created attachment 708138 [details]
build.log

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 (RETIRED) 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?