Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894038 - sci-libs/dmlc-core-0_p20170719-r1 fails tests (LIBARCHIVE-SYSTEM): gtest-port.h:270:2: error: #error C++ versions less than C++14 are not supported
Summary: sci-libs/dmlc-core-0_p20170719-r1 fails tests (LIBARCHIVE-SYSTEM): gtest-port...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 893432
  Show dependency tree
 
Reported: 2023-02-12 12:35 UTC by Agostino Sarubbo
Modified: 2023-03-17 12:07 UTC (History)
0 users

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


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

Issue: sci-libs/dmlc-core-0_p20170719-r1 fails tests (LIBARCHIVE-SYSTEM).
Discovered on: amd64 (internal ref: libarchive_tinderbox)

NOTE:
(LIBARCHIVE-SYSTEM) in the summary means that the bug was found on a machine that runs app-alternatives/tar and app-alternatives/cpio with [-gnu,+libarchive] but this bug MAY or MAY NOT BE related to the tar/cpio implementation.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-12 12:35:38 UTC
Created attachment 850440 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2023-03-17 12:07:15 UTC
The bug has been closed via the following commit(s):

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

commit 2dad60a86a3a0c7bbc038902f91d2076e7c88d9a
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2023-02-13 03:25:59 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2023-03-17 12:07:06 +0000

    sci-libs/dmlc-core: add 0.5
    
    - add cpu_flags_x86_sse2 to IUSE
    
    It's true it only adds an -m flag to CXXFLAGS but so do most uses of
    CPU_FLAGS_X86.  Also, remove automagic from CMakeLists.txt and pass
    -DSUPPORT_MSSE2 explicitly
    
    - remove patch
    
    Appears to be no longer needed.
    
    - fix dependencies
    
    Make gtest a proper bdep.  The presence of texlive-fontutils appears
    irrelevant as the generated docs compare the same.  curl is only
    needed for s3.
    
    - fix testing
    
    Portage doesn't set LD_LIBRARY_PATH resulting in a leading colon when
    used in LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}". It builds
    fine with just -L\"${BUILD_DIR}\" and testing runs fine with just
    LD_LIBRARY_PATH="${BUILD_DIR}".
    
    It doesn't appear to need tc-export CXX to find the correct
    compiler.
    
    GTEST_LIB needs to be changed to the correct libdir. Otherwise it
    passes -L/lib/ triggering it to build in x86 mode and fail at linking
    stage. Alter GTEST_INC also for good measure.
    
    Pass -DGOOGLE_TEST for ctest testing, while also keeping non-ctest
    tests.
    
    Pass USE_CXX14_IF_AVAILABLE to cmake and change -std=c++11 to
    -std=c++14 in the Makefile to support the latest gtest.
    
    - use emake to build docs and tests in src_compile
    
    `emake test` is more appropriate in src_compile.  And `emake doxygen`
    works fine to generate docs.
    
    - add little-endian tests
    
    Pass DMLC_UNIT_TEST_LITTLE_ENDIAN for a few more tests.
    
    Closes: https://bugs.gentoo.org/894038
    Closes: https://github.com/gentoo/gentoo/pull/29572
    Signed-off-by: Peter Levine <plevine457@gmail.com>
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sci-libs/dmlc-core/Manifest             |   1 +
 sci-libs/dmlc-core/dmlc-core-0.5.ebuild | 105 ++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)