Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895190 - app-arch/snappy-1.1.9-r1 fails to compile (GCC-13-SYSTEM): gtest-port.h:270:2: error: #error C++ versions less than C++14 are not supported
Summary: app-arch/snappy-1.1.9-r1 fails to compile (GCC-13-SYSTEM): gtest-port.h:270:2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Azamat H. Hackimov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 893432 895476
  Show dependency tree
 
Reported: 2023-02-18 07:02 UTC by Agostino Sarubbo
Modified: 2023-02-22 16:16 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,56.45 KB, text/plain)
2023-02-18 07:02 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-18 07:02:11 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-arch/snappy-1.1.9-r1 fails to compile (GCC-13-SYSTEM).
Discovered on: amd64 (internal ref: gcc13_tinderbox)

NOTE:
(GCC-13-SYSTEM) in the summary means that the bug was found on a machine that runs gcc-13 but this bug MAY or MAY NOT BE related to the new compiler
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-18 07:02:13 UTC
Created attachment 852364 [details]
build.log

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


FAILED: CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.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:52 UTC
The bug has been closed via the following commit(s):

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

commit 52349d44ce357a6f0417a914425ef7973840baa1
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2023-02-18 22:36:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-22 16:13:43 +0000

    app-arch/snappy: build using C++14 dialect
    
    The latest gtest requires C++14 or later. Pass -DCMAKE_CXX_STANDARD=14
    explicitly to avoid having -std=c++11 added to CXXFLAGS.
    
    Closes: https://bugs.gentoo.org/895190
    Closes: https://github.com/gentoo/gentoo/pull/29653
    Signed-off-by: Peter Levine <plevine457@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-arch/snappy/snappy-1.1.9-r1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)