Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893466 - dev-libs/rapidjson-1.1.0-r3 fails to compile (HARDENED-SYSTEM): gtest-port.h:270:2: error: #error C++ versions less than C++14 are not supported
Summary: dev-libs/rapidjson-1.1.0-r3 fails to compile (HARDENED-SYSTEM): gtest-port.h:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 893432
  Show dependency tree
 
Reported: 2023-02-07 08:40 UTC by Agostino Sarubbo
Modified: 2023-02-22 16:16 UTC (History)
0 users

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


Attachments
build.log (build.log,240.06 KB, text/plain)
2023-02-07 08:40 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-07 08:40:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/rapidjson-1.1.0-r3 fails to compile (HARDENED-SYSTEM).
Discovered on: amd64 (internal ref: hardened_tinderbox)

NOTE:
(HARDENED-SYSTEM) in the summary means that the bug was found on a machine that runs an hardened profile with -D_FORTIFY_SOURCE=3 and -D_GLIBCXX_ASSERTIONS (https://www.gentoo.org/support/news-items/2023-01-01-hardening-fortify-assertions.html) but this bug MAY or MAY NOT BE related to the changes related to hardened.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-07 08:40:05 UTC
Created attachment 850054 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-07 08:40:05 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: test/perftest/CMakeFiles/perftest.dir/misctest.cpp.o 
FAILED: test/perftest/CMakeFiles/perftest.dir/perftest.cpp.o 
FAILED: test/perftest/CMakeFiles/perftest.dir/platformtest.cpp.o 
FAILED: test/perftest/CMakeFiles/perftest.dir/rapidjsontest.cpp.o 
FAILED: test/perftest/CMakeFiles/perftest.dir/schematest.cpp.o 
FAILED: test/unittest/CMakeFiles/namespacetest.dir/namespacetest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/allocatorstest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/bigintegertest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/documenttest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/dtoatest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/encodedstreamtest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/encodingstest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/filestreamtest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/fwdtest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/istreamwrappertest.cpp.o 
FAILED: test/unittest/CMakeFiles/unittest.dir/itoatest.cpp.o 
/usr/include/gtest/internal/gtest-port.h:270:2: error: #error C++ versions less than C++14 are not supported.
Comment 3 Larry the Git Cow gentoo-dev 2023-02-22 16:16:50 UTC
The bug has been closed via the following commit(s):

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

commit 4e41fc8570ce676461d46ffae31a62d97a5f59da
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2023-02-08 03:12:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-22 16:14:07 +0000

    dev-libs/rapidjson: don't force C++11
    
    dev-cpp/gtest-1.13.0 now requires building with C++14 or later. Remove
    -std=c++11 and, if not overridden in CXXFLAGS, use the compiler
    default.  For 9999, explicitly pass RAPIDJSON_BUILD_CXX17=ON, which
    supports that cmake option.
    
    Closes: https://bugs.gentoo.org/893466
    Closes: https://github.com/gentoo/gentoo/pull/29479
    Signed-off-by: Peter Levine <plevine457@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/rapidjson/rapidjson-1.1.0-r3.ebuild | 3 ++-
 dev-libs/rapidjson/rapidjson-9999.ebuild     | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)