Summary: | app-crypt/pinentry-0.9.0-r3 with USE="qt4" fails to build with GCC 5.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ryan Hill (RETIRED) <rhill> |
Component: | [OLD] GCC Porting | Assignee: | Crypto team [DISABLED] <crypto+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alonbl, jrmalaq, kredba, octoploid |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 536984 | ||
Attachments: |
build.log
pinentry-0.9.0-r3.ebuild patch to add -std=gnu++11 pinentry-0.9.0-r3.ebuild patch to add -std=gnu++11 with only get major part |
Description
Ryan Hill (RETIRED)
2015-04-23 23:52:11 UTC
Created attachment 401896 [details]
build.log
gcc is right to reject this. This is an upstream bug. Type 'QChar' has a user-provided, non-trivial default constructor. -std=c++11 is needed in this case. Created attachment 402276 [details, diff]
pinentry-0.9.0-r3.ebuild patch to add -std=gnu++11
Patching the pinentry-0.9.0-r3.ebuild to add -std=gnu++11 allows it to compile
with gcc version 5.1.0
(In reply to Mark Wright from comment #3) > Created attachment 402276 [details, diff] [details, diff] > pinentry-0.9.0-r3.ebuild patch to add -std=gnu++11 > > Patching the pinentry-0.9.0-r3.ebuild to add -std=gnu++11 allows it to > compile > with gcc version 5.1.0 can't the gcc detection can be bypassed and only get the major part? it will be empty if not gcc. Created attachment 402286 [details, diff] pinentry-0.9.0-r3.ebuild patch to add -std=gnu++11 with only get major part (In reply to Alon Bar-Lev from comment #4) > (In reply to Mark Wright from comment #3) > > Created attachment 402276 [details, diff] [details, diff] [details, diff] > > pinentry-0.9.0-r3.ebuild patch to add -std=gnu++11 > > > > Patching the pinentry-0.9.0-r3.ebuild to add -std=gnu++11 allows it to > > compile > > with gcc version 5.1.0 > > can't the gcc detection can be bypassed and only get the major part? it will > be empty if not gcc. Yes that also builds fine with gcc version 5.1.0. fixed in pinentry-0.9.0-r3 thanks! Can you please try pinentry-0.9.1 without: [[ "$(gcc-major-version)" -ge 5 ]] && append-cxxflags -std=gnu++11 Thanks! |