Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo docker build . #268

Open
mpak2 opened this issue Apr 30, 2020 · 1 comment
Open

sudo docker build . #268

mpak2 opened this issue Apr 30, 2020 · 1 comment

Comments

@mpak2
Copy link

mpak2 commented Apr 30, 2020

build response errors

[ 3%] Building CXX object tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_21.dir/slide_21.cpp.o
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 /trisycl/include/triSYCL/detail/global_config.hpp:51,
from /trisycl/include/triSYCL/sycl.hpp:42,
from /trisycl/include/CL/sycl.hpp:10,
from /trisycl/tests/2014-04-21-HPC-GPU_Meetup/slide_14.cpp:6:
/usr/include/boost/compute/memory/svm_ptr.hpp: In member function 'boost::compute::context& boost::compute::svm_ptr::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;
^~~~~~~~~
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 /trisycl/include/triSYCL/detail/global_config.hpp:51,
from /trisycl/include/triSYCL/sycl.hpp:42,
from /trisycl/include/CL/sycl.hpp:10,
from /trisycl/tests/2014-04-21-HPC-GPU_Meetup/slide_17-18.cpp:4:
/usr/include/boost/compute/memory/svm_ptr.hpp: In member function 'boost::compute::context& boost::compute::svm_ptr::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;
^~~~~~~~~
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 /trisycl/include/triSYCL/detail/global_config.hpp:51,
from /trisycl/include/triSYCL/sycl.hpp:42,
from /trisycl/include/CL/sycl.hpp:10,
from /trisycl/tests/2014-04-21-HPC-GPU_Meetup/slide_7.cpp:4:
/usr/include/boost/compute/memory/svm_ptr.hpp: In member function 'boost::compute::context& boost::compute::svm_ptr::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;
^~~~~~~~~
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 /trisycl/include/triSYCL/detail/global_config.hpp:51,
from /trisycl/include/triSYCL/sycl.hpp:42,
from /trisycl/include/CL/sycl.hpp:10,
from /trisycl/tests/2014-04-21-HPC-GPU_Meetup/slide_21.cpp:4:
/usr/include/boost/compute/memory/svm_ptr.hpp: In member function 'boost::compute::context& boost::compute::svm_ptr::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;
^~~~~~~~~
tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_14.dir/build.make:62: recipe for target 'tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_14.dir/slide_14.cpp.o' failed
make[2]: *** [tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_14.dir/slide_14.cpp.o] Error 1
CMakeFiles/Makefile2:1130: recipe for target 'tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_14.dir/all' failed
make[1]: *** [tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_14.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_7.dir/build.make:62: recipe for target 'tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_7.dir/slide_7.cpp.o' failed
make[2]: *** [tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_7.dir/slide_7.cpp.o] Error 1
CMakeFiles/Makefile2:1167: recipe for target 'tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_7.dir/all' failed
make[1]: *** [tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_7.dir/all] Error 2
make[2]: *** [tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_21.dir/slide_21.cpp.o] Error 1
tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_21.dir/build.make:62: recipe for target 'tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_21.dir/slide_21.cpp.o' failed
make[1]: *** [tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_21.dir/all] Error 2
CMakeFiles/Makefile2:1204: recipe for target 'tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_21.dir/all' failed
tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_17-18.dir/build.make:62: recipe for target 'tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_17-18.dir/slide_17-18.cpp.o' failed
make[2]: *** [tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_17-18.dir/slide_17-18.cpp.o] Error 1
CMakeFiles/Makefile2:1093: recipe for target 'tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_17-18.dir/all' failed
make[1]: *** [tests/2014-04-21-HPC-GPU_Meetup/CMakeFiles/2014-04-21-HPC-GPU_Meetup_slide_17-18.dir/all] Error 2

@keryell
Copy link
Member

keryell commented May 2, 2020

Yes, this is a known problem of some old boost::compute with recent compilers boostorg/compute#778

My plan is to move the CI of triSYCL on Ubuntu 20.04 to avoid some bugs like this one 15107aa

It will allow me to land also some PR which are waiting for some more modern environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants