Boost logo

Boost :

Subject: Re: [boost] [release] policy not to add C++14 libraries
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2015-06-21 08:42:33


2015-06-21 13:15 GMT+02:00 Peter Dimov <lists_at_[hidden]>:

It's better to use Boost.Config's 'requires' to disable the tests on
> non-C++14 compilers (actually, on compilers missing the required features -
> I see msvc-14.0 as passing test_coroutine, but it's not a C++14 compiler.)
>

only a subset of C++14 (which msvc-14.0 supports) is required

>
> http://www.boost.org/doc/libs/1_58_0/libs/config/doc/html/boost_config/build_config.html
>

do you have an idea why' compile test_coroutine.cpp : ...' works

but

run test_coroutine.cpp :
    [ requires cxx11_constexpr
               cxx11_decltype
               cxx11_deleted_functions
               cxx11_explicit_conversion_operators
               cxx11_hdr_tuple cxx11_lambdas
               cxx11_noexcept
               cxx11_nullptr
               cxx11_template_aliases
               cxx11_rvalue_references
               cxx11_variadic_macros
               cxx11_variadic_templates
               cxx14_initialized_lambda_captures ] ;

fails with:

testing.capture-output
../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine.run
/bin/sh: 10: Syntax error: "(" unexpected

LD_LIBRARY_PATH="/usr/bin:/usr/lib:/usr/lib32:/usr/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

    status=0
    if test $status -ne 0 ; then
        echo Skipping test execution due to testing.execute=off
        exit 0
    fi

"../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine"
@object(check-target-builds-worker)@2046.check
<conditional>@object(check-target-builds-worker)@2047.check
<conditional>@object(check-target-builds-worker)@2048.check
<conditional>@object(check-target-builds-worker)@2049.check
<conditional>@object(check-target-builds-worker)@2050.check
<conditional>@object(check-target-builds-worker)@2051.check
<conditional>@object(check-target-builds-worker)@2052.check
<conditional>@object(check-target-builds-worker)@2053.check
<conditional>@object(check-target-builds-worker)@2054.check
<conditional>@object(check-target-builds-worker)@2055.check
<conditional>@object(check-target-builds-worker)@2056.check
<conditional>@object(check-target-builds-worker)@2057.check
<conditional>@object(check-target-builds-worker)@2058.check >
"../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine.output"
2>&1 < /dev/null
    status=$?
    echo >>
"../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine.output"
    echo EXIT STATUS: $status >>
"../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine.output"
    if test $status -eq 0 ; then
        cp
"../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine.output"
"../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine.run"
    fi
    verbose=0
    if test $status -ne 0 ; then
        verbose=1
    fi
    if test $verbose -eq 1 ; then
        echo ====== BEGIN OUTPUT ======
        cat
"../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine.output"
        echo ====== END OUTPUT ======
    fi
    exit $status

...failed testing.capture-output
../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine.run...
...removing outdated
../../../bin.v2/libs/coroutine2/test/test_coroutine.test/gcc-5.1.1/debug/link-static/threading-multi/test_coroutine.test
...failed updating 1 target...
...skipped 1 target...
...updated 1 target...


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk