Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Incompatible with Boost 1.7x #2393

Open
Atemu opened this issue Dec 24, 2021 · 1 comment
Open

Incompatible with Boost 1.7x #2393

Atemu opened this issue Dec 24, 2021 · 1 comment

Comments

@Atemu
Copy link

Atemu commented Dec 24, 2021

Describe the bug
A clear and concise description of what the bug is.

[ 73%] Built target ethash-cl
[ 76%] Building CXX object libethcore/CMakeFiles/ethcore.dir/EthashAux.cpp.o
[ 80%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Farm.cpp.o
[ 83%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Miner.cpp.o
In file included from /nix/store/d73chcglazgj5h9wsgksy1z1r383rixa-opencl-headers-2021.06.30/include/CL/cl.h:20,
                 from /nix/store/d73chcglazgj5h9wsgksy1z1r383rixa-opencl-headers-2021.06.30/include/CL/opencl.h:24,
                 from /build/source/libethcore/../libethash-cl/CL/cl2.hpp:504,
                 from /build/source/libethcore/../libethash-cl/CLMiner.h:27,
                 from /build/source/libethcore/Farm.cpp:22:
/nix/store/d73chcglazgj5h9wsgksy1z1r383rixa-opencl-headers-2021.06.30/include/CL/cl_version.h:22:104: note: '#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)'
   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
      |                                                                                                        ^
/build/source/libethcore/Farm.cpp: In member function 'void dev::eth::Farm::restart_async()':
/build/source/libethcore/Farm.cpp:385:17: error: 'class boost::asio::io_context::strand' has no member named 'get_io_service'
  385 |     m_io_strand.get_io_service().post(m_io_strand.wrap(boost::bind(&Farm::restart, this)));
      |                 ^~~~~~~~~~~~~~
make[2]: *** [libethcore/CMakeFiles/ethcore.dir/build.make:90: libethcore/CMakeFiles/ethcore.dir/Farm.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:306: libethcore/CMakeFiles/ethcore.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Builds fine with Boost 1.6x.

@y001j
Copy link

y001j commented Dec 25, 2021

fixed in #2396

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

No branches or pull requests

2 participants