Yes its a compiler bug
_______________
Catherine Morton
C++ front end development
IBM Toronto Lab
Email: catherin@ca.ibm.com
Phone: (905) 413-4328 -- IBM Tieline: 313-4328
John Maddock ---07/22/2015 12:51:35 PM---On 22/07/2015 15:20, Catherine Morton wrote: >
From: John Maddock <jz.maddock@googlemail.com>
To: Running Boost regression tests <boost-testing@lists.boost.org>
Date: 07/22/2015 12:51 PM
Subject: Re: [Boost-testing] Issues with tester 2: IBM XL C++ Compiler For Linux, V13.1.1
Sent by: "Boost-Testing" <boost-testing-bounces@lists.boost.org>
On 22/07/2015 15:20, Catherine Morton wrote:
>
> Found the answer
>
> #if defined( __clang__ ) && defined( __has_extension )
> # if __has_extension( __c_atomic__ )
> # define BOOST_SP_HAS_CLANG_C11_ATOMICS
> # endif
> #endif
>
>
> I have a pull request active for a new toolset xlcpp, once that is
> accepted then we can work on getting this setup correctly for our
> compiler.
>
That's an issue with code, not the toolset used to build so no need to
wait (though there appear to be issues there as well).
The problem seems to be that the compiler is answering true to
__has_extension( __c_atomic__ ) when in fact it's not supported - which
would actually be a compiler bug?
The temporary workaround for us, but be a BOOST_WORKAROUND(something??)
around that PP-block.
John.
> _______________
> Catherine Morton
> C++ front end development
> IBM Toronto Lab
> Email: catherin@ca.ibm.com
> Phone: (905) 413-4328 -- IBM Tieline: 313-4328
>
> Inactive hide details for Catherine Morton---07/22/2015 09:21:25
> AM---We are working looking for the best option to resolve
> thiCatherine Morton---07/22/2015 09:21:25 AM---We are working looking
> for the best option to resolve this issue. No pull request has been
> submitt
>
> From: Catherine Morton/Toronto/IBM@IBMCA
> To: Running Boost regression tests <boost-testing@lists.boost.org>
> Cc: "Boost-Testing" <boost-testing-bounces@lists.boost.org>
> Date: 07/22/2015 09:21 AM
> Subject: Re: [Boost-testing] Issues with tester 2: IBM XL C++ Compiler
> For Linux, V13.1.1
> Sent by: "Boost-Testing" <boost-testing-bounces@lists.boost.org>
>
> ------------------------------------------------------------------------
>
>
>
> We are working looking for the best option to resolve this issue. No
> pull request has been submitted yet.
> What do other compilers do if they do not support this type? Does
> boost have a macro to avoid its use?
>
> _______________
> Catherine Morton
> C++ front end development
> IBM Toronto Lab
> Email: catherin@ca.ibm.com
> Phone: (905) 413-4328 -- IBM Tieline: 313-4328
>
> Inactive hide details for Hubert Tong---07/06/2015 12:45:29 AM---This
> compiler needs a patch to compile this file. I believe a Hubert
> Tong---07/06/2015 12:45:29 AM---This compiler needs a patch to compile
> this file. I believe a pull request for the patch was submitt
>
> From: Hubert Tong/Toronto/IBM@IBMCA
> To: Running Boost regression tests <boost-testing@lists.boost.org>
> Cc: "Boost-Testing" <boost-testing-bounces@lists.boost.org>
> Date: 07/06/2015 12:45 AM
> Subject: Re: [Boost-testing] Issues with tester 2: IBM XL C++ Compiler
> For Linux, V13.1.1
> Sent by: "Boost-Testing" <boost-testing-bounces@lists.boost.org>
> ------------------------------------------------------------------------
>
>
>
> This compiler needs a patch to compile this file. I believe a pull
> request for the patch was submitted, but I do not know where that is
> at the moment.
>
> Thanks,
>
>
> Hubert Tong
>
> =====
> Hubert S. K. Tong
> C++ Front-End and Runtime Development for XL C/C++
> IBM Canada Ltd., C2/YGH/8200/MKM, 8200 Warden Avenue, Markham, Ontario
> L6G 1C7, Canada
> --
> E-mail: hstong@ca.ibm.com
> ===
>
>
>
> Inactive hide details for Gennadiy Rozental ---05-07-2015 04:53:36
> PM---Hi, This tester is unable to build shared_ptr.hpp:Gennadiy
> Rozental ---05-07-2015 04:53:36 PM---Hi, This tester is unable to
> build shared_ptr.hpp:
>
> From: Gennadiy Rozental <rogeeff@gmail.com>
> To: boost-testing@lists.boost.org,
> Date: 05-07-2015 04:53 PM
> Subject: [Boost-testing] Issues with tester 2: IBM XL C++ Compiler For
> Linux, V13.1.1
> Sent by: "Boost-Testing" <boost-testing-bounces@lists.boost.org>
> ------------------------------------------------------------------------
>
>
>
> Hi,
>
> This tester is unable to build shared_ptr.hpp:
>
> warning: 1540-5200 The option "-qcpluscmt" is not supported.
> warning: 1540-5240 The debug option for assertion has no effect.
> In file included from ../libs/test/test/utils-ts/algorithm-test.cpp:17:
> In file included from ../boost/test/unit_test.hpp:18:
> In file included from ../boost/test/test_tools.hpp:38:
> In file included from ../boost/test/tools/old/impl.hpp:20:
> In file included from ../boost/test/tools/assertion_result.hpp:21:
> In file included from ../boost/shared_ptr.hpp:17:
> In file included from ../boost/smart_ptr/shared_ptr.hpp:28:
> In file included from ../boost/smart_ptr/detail/shared_count.hpp:29:
> In file included from ../boost/smart_ptr/detail/sp_counted_base.hpp:45:
> ../boost/smart_ptr/detail/sp_counted_base_clang.hpp:68:5:
> error: 1540-2988 The type "Atomic" is not supported.
> atomic_int_least32_t use_count_; // #shared
>
> This affects all Boost.Test unit tests and I am sure lot more.
> Is this compiler setup issue? Can this be addressed?
>
> _______________________________________________
> Boost-Testing mailing list
> Boost-Testing@lists.boost.org_
> __http://lists.boost.org/mailman/listinfo.cgi/boost-testing_
>
> _______________________________________________
> Boost-Testing mailing list
> Boost-Testing@lists.boost.org_
> __http://lists.boost.org/mailman/listinfo.cgi/boost-testing________________________________________________
> Boost-Testing mailing list
> Boost-Testing@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
>
>
> _______________________________________________
> Boost-Testing mailing list
> Boost-Testing@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
_______________________________________________
Boost-Testing mailing list
Boost-Testing@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-testing