Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733774 - dev-libs/appstream-0.12.11 should require gcc > 9
Summary: dev-libs/appstream-0.12.11 should require gcc > 9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-24 13:49 UTC by Dion Moult
Modified: 2020-07-26 20:02 UTC (History)
0 users

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


Attachments
Error log (build.log,12.05 KB, text/x-log)
2020-07-24 13:50 UTC, Dion Moult
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dion Moult 2020-07-24 13:49:44 UTC
I just tried to compile dev-libs/appstream-0.12.11 with gcc 8.3.0 and it fails to compile with the following message:

FAILED: qt/becf854@@AppStreamQt@sha/contentrating.cpp.o 
x86_64-pc-linux-gnu-g++ -Iqt/becf854@@AppStreamQt@sha -Iqt/ -I../AppStream-0.12.11/qt -Isrc/ -I../AppStream-0.12.11/src -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi-3.3_rc0/include -I/usr/include/libmount -I/usr/include/blkid -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu++14 -Wno-unused-parameter -Wno-error=deprecated-copy -march=native -O2 -fPIC -pthread -DQT_CORE_LIB -MD -MQ 'qt/becf854@@AppStreamQt@sha/contentrating.cpp.o' -MF 'qt/becf854@@AppStreamQt@sha/contentrating.cpp.o.d' -o 'qt/becf854@@AppStreamQt@sha/contentrating.cpp.o' -c ../AppStream-0.12.11/qt/contentrating.cpp
cc1plus: error: -Werror=deprecated-copy: no option -Wdeprecated-copy

I have also attached a build log.

Switching to latest gcc 9.2 fixes it, i.e. it emerges successfully.

Note that gcc 8.3 works on appstream-0.12.7.

I did not test any in-between gcc version to determine exactly where it breaks.

Reproducible: Always
Comment 1 Dion Moult 2020-07-24 13:50:12 UTC
Created attachment 650582 [details]
Error log
Comment 2 Larry the Git Cow gentoo-dev 2020-07-26 20:02:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c62c63c81a738a960c6d3c5cf66d075296b038c

commit 8c62c63c81a738a960c6d3c5cf66d075296b038c
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-07-26 20:01:23 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-07-26 20:02:38 +0000

    dev-libs/appstream: Fix build with older GCC
    
    Reported-by: Dion Moult <dion@thinkmoult.com>
    Closes: https://bugs.gentoo.org/733774
    Package-Manager: Portage-3.0.0, Repoman-2.3.23
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-libs/appstream/appstream-0.12.11-r1.ebuild     | 80 ++++++++++++++++++++
 .../appstream-0.12.11-disable-Werror-flags.patch   | 12 +++
 .../files/appstream-0.12.11-no-highlight.js.patch  | 86 ++++++++++++++++++++++
 ...12.11-qt-add-missing-provided-kindid-enum.patch | 24 ++++++
 4 files changed, 202 insertions(+)