Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673698 - dev-libs/rapidjson-1.1.0-r1[examples] fails with >=gcc-8
Summary: dev-libs/rapidjson-1.1.0-r1[examples] fails with >=gcc-8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2018-12-25 00:02 UTC by jannis
Modified: 2019-02-23 17:36 UTC (History)
2 users (show)

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


Attachments
emerge --info (einfo,23.43 KB, text/plain)
2018-12-25 00:02 UTC, jannis
Details
build.log (build.log,284.24 KB, text/x-log)
2018-12-25 00:03 UTC, jannis
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)