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

Bug 673698

Summary: dev-libs/rapidjson-1.1.0-r1[examples] fails with >=gcc-8
Product: Gentoo Linux Reporter: jannis <kripton>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: RESOLVED FIXED    
Severity: normal CC: kripton, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=654766
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 260867    
Attachments: emerge --info
build.log

Description jannis 2018-12-25 00:02:12 UTC
Created attachment 558456 [details]
emerge --info

dev-libs/rapidjson-1.1.0-r1[examples] fails to compile with Gcc 8, gcc 7 is fine:

> /var/tmp/portage/dev-libs/rapidjson-1.1.0-r1/work/rapidjson-1.1.0/include/rapidjson/document.h:1939:24: error: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class rapidjson::GenericValue<rapidjson::UTF8<> >' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
>              std::memcpy(e, values, count * sizeof(GenericValue));
Comment 1 jannis 2018-12-25 00:03:06 UTC
Created attachment 558458 [details]
build.log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2018-12-25 11:16:43 UTC
Primary cause of failure is use of -Werror in builds:
"""
Compiler flags:
C               
C++             -march=native -O2 -pipe -fomit-frame-pointer -march=native -Wall -Wextra -Werror -std=c++11
"""
Comment 3 Larry the Git Cow gentoo-dev 2018-12-27 21:57:49 UTC
The bug has been closed via the following commit(s):

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

commit a6485336b09976be119a81315a717e3bced97378
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2018-12-27 21:57:15 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2018-12-27 21:57:41 +0000

    dev-libs/rapidjson: Fix USE=examples with >=gcc-8
    
    Closes: https://bugs.gentoo.org/673698
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 dev-libs/rapidjson/rapidjson-1.1.0-r1.ebuild |  7 +++++++
 dev-libs/rapidjson/rapidjson-9999.ebuild     | 13 ++++++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)