Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911775 - sys-block/thin-provisioning-tools-0.9.0-r2 fails test - /.../gtest-port.h: error: #error C++ versions less than C++14 are not supp
Summary: sys-block/thin-provisioning-tools-0.9.0-r2 fails test - /.../gtest-port.h: er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks: 893432
  Show dependency tree
 
Reported: 2023-08-05 15:40 UTC by Toralf Förster
Modified: 2023-09-18 09:50 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.67 KB, text/plain)
2023-08-05 15:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,67.12 KB, text/plain)
2023-08-05 15:40 UTC, Toralf Förster
Details
environment (environment,90.24 KB, text/plain)
2023-08-05 15:40 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,13.33 KB, application/x-xz)
2023-08-05 15:40 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,5.10 KB, application/x-xz)
2023-08-05 15:40 UTC, Toralf Förster
Details
sys-block:thin-provisioning-tools-0.9.0-r2:20230805-153016.log (sys-block:thin-provisioning-tools-0.9.0-r2:20230805-153016.log,98.12 KB, text/plain)
2023-08-05 15:40 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,28.74 KB, application/x-xz)
2023-08-05 15:40 UTC, Toralf Förster
Details
tests.tar.xz (tests.tar.xz,5.17 KB, application/x-xz)
2023-08-05 15:40 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-08-05 15:40:18 UTC
x86_64-pc-linux-gnu-g++ -c -I. -Igoogletest/googlemock/include -Igoogletest/googletest/include  -Igoogletest/googlemock/include -Igoogletest/googletest/include -O2 -pipe -march=native -fno-diagnostics-color -fPIC -fno-strict-aliasing -std=c++11 -DSTRERROR_R_CHAR_P -Wno-unused-local-typedefs -o unit-tests/array_block_t.gmo unit-tests/array_block_t.cc
In file included from /usr/include/gmock/internal/gmock-port.h:57,
                 from /usr/include/gmock/internal/gmock-internal-utils.h:49,
                 from /usr/include/gmock/gmock-actions.h:145,
                 from /usr/include/gmock/gmock.h:56,
                 from unit-tests/array_t.cc:19:
/usr/include/gtest/internal/gtest-port.h:270:2: error: #error C++ versions less than C++14 are not supported.
  270 | #error C++ versions less than C++14 are not supported.
      |  ^~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened_test-20230804-160122

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
/usr/lib/llvm/16
16.0.6
Python 3.11.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.71.1
  [2]   rust-1.71.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JRE 17.0.7_p7 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-17  system-vm

php cli (if any):
go version go1.20.6 linux/amd64

  HEAD of ::gentoo
commit 17e77e788df6f5e7677b9dc1060c71b72af0561e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Aug 5 14:16:40 2023 +0000

    2023-08-05 14:16:39 UTC

emerge -qpvO sys-block/thin-provisioning-tools
[ebuild  N    ] sys-block/thin-provisioning-tools-0.9.0-r2  USE="test -static"
Comment 1 Toralf Förster gentoo-dev 2023-08-05 15:40:20 UTC
Created attachment 867149 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-08-05 15:40:21 UTC
Created attachment 867150 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-08-05 15:40:22 UTC
Created attachment 867151 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-08-05 15:40:23 UTC
Created attachment 867152 [details]
etc.portage.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-08-05 15:40:24 UTC
Created attachment 867153 [details]
logs.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-08-05 15:40:25 UTC
Created attachment 867154 [details]
sys-block:thin-provisioning-tools-0.9.0-r2:20230805-153016.log
Comment 7 Toralf Förster gentoo-dev 2023-08-05 15:40:26 UTC
Created attachment 867155 [details]
temp.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-08-05 15:40:27 UTC
Created attachment 867156 [details]
tests.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2023-09-18 09:50:22 UTC
The bug has been closed via the following commit(s):

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

commit d4d007aac8769809cdf3396100ce5030f980bfa2
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2023-09-05 07:34:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-18 09:48:22 +0000

    sys-block/thin-provisioning-tools: fix bug 911775
    
    Many name clashes between boost::optional and std::optional are
    resolved with explicit namespace qualification.  Because of a problem
    with a ADL and a global "operator<<" function name not being included
    in gtest's environment, they had to be defined in "namespace boost {".
    Utterly hackish but only affects two testcase code files. Finally,
    there was an issue of a "one-past the end" access causing a segfault
    that was fixed by allocating an extra element to a zeroed std::vector.
    
    Closes: https://bugs.gentoo.org/911775
    Signed-off-by: Peter Levine <plevine457@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/32597
    Signed-off-by: Sam James <sam@gentoo.org>

 ...thin-provisioning-tools-0.9.0-boost-gtest.patch | 622 +++++++++++++++++++++
 .../thin-provisioning-tools-0.9.0-r4.ebuild        |  70 +++
 2 files changed, 692 insertions(+)