Bug 1585515

Summary: boost compute with gcc 8.1 doesn't work
Product: [Fedora] Fedora Reporter: Dave Airlie <airlied>
Component: boostAssignee: Jonathan Wakely <jwakely>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dakingun, denis.arnaud_fedora, jwakely
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: boost-1.66.0-7.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-09 20:41:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Airlie 2018-06-03 23:44:12 UTC
Description of problem:

In file included from /usr/include/boost/compute/detail/meta_kernel.hpp:37,
                 from /usr/include/boost/compute/algorithm/reduce.hpp:18,
                 from /usr/include/boost/compute/algorithm/accumulate.hpp:19,
                 from /usr/include/boost/compute/algorithm.hpp:18,
                 from /usr/include/boost/compute.hpp:14,
                 from /home/airlied/devel/compute/trisycl/include/CL/sycl/detail/global_config.hpp:53,
                 from /home/airlied/devel/compute/trisycl/include/CL/sycl.hpp:31,
                 from /home/airlied/devel/compute/trisycl/tests/2014-04-21-HPC-GPU_Meetup/slide_26.cpp:5:
/usr/include/boost/compute/memory/svm_ptr.hpp: In member function ‘boost::compute::context& boost::compute::svm_ptr<T>::get_context() const’:
/usr/include/boost/compute/memory/svm_ptr.hpp:131:16: error: binding reference of type ‘boost::compute::context&’ to ‘const boost::compute::context’ discards qualifiers
         return m_context;
                ^~~~~~~~~


Fix is to backport:
https://github.com/boostorg/compute/commit/fdbdb94db64e888fce90fe519be23c2a4396a82e

Comment 1 Fedora Update System 2018-06-05 15:32:22 UTC
boost-1.66.0-7.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4ed35b8c4f

Comment 2 Fedora Update System 2018-06-06 15:01:55 UTC
boost-1.66.0-7.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-4ed35b8c4f

Comment 3 Fedora Update System 2018-06-09 20:41:16 UTC
boost-1.66.0-7.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.