-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Disabling Hunter is broken #500
Comments
Finding Boost works in master. But I have problems with jsoncpp: libjson-rpc-cpp will find jsoncpp but include path is not compatible with libstratum. Anyway, you can try it in Gentoo, maybe you have a newer version os jsoncpp and it will work... |
@chfast thanks, I tried dev-cpp/libjson-rpc-cpp-1.0.0 and dev-cpp/libjson-rpc-cpp-1.1.0 without success. Both now give the following error:
|
Yes, libjson-rpc-cpp::server is missing in libjson-rpc-cppConfig.cmake file. Easy fix. But you can disable API module: |
@chfast building with
$ make
Scanning dependencies of target BuildInfo.h
[ 0%] Built target BuildInfo.h
Scanning dependencies of target devcore
[ 3%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonData.cpp.o
[ 7%] Building CXX object libdevcore/CMakeFiles/devcore.dir/FixedHash.cpp.o
[ 11%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Log.cpp.o
[ 14%] Building CXX object libdevcore/CMakeFiles/devcore.dir/RLP.cpp.o
[ 18%] Building CXX object libdevcore/CMakeFiles/devcore.dir/SHA3.cpp.o
[ 22%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Worker.cpp.o
[ 25%] Linking CXX static library libdevcore.a
[ 25%] Built target devcore
Scanning dependencies of target ethash
[ 29%] Building C object libethash/CMakeFiles/ethash.dir/internal.c.o
[ 33%] Building C object libethash/CMakeFiles/ethash.dir/sha3.c.o
[ 37%] Linking C static library libethash.a
[ 37%] Built target ethash
Scanning dependencies of target hwmon
[ 40%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapnvml.cpp.o
/tmp/ethminer/libhwmon/wrapnvml.cpp: In function ‘wrap_nvml_handle* wrap_nvml_create()’:
/tmp/ethminer/libhwmon/wrapnvml.cpp:33:7: warning: unused variable ‘i’ [-Wunused-variable]
int i=0;
^
[ 44%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapadl.cpp.o
[ 48%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapamdsysfs.cpp.o
[ 51%] Linking CXX static library libhwmon.a
[ 51%] Built target hwmon
Scanning dependencies of target ethcore
[ 55%] Building CXX object libethcore/CMakeFiles/ethcore.dir/BlockHeader.cpp.o
[ 59%] Building CXX object libethcore/CMakeFiles/ethcore.dir/EthashAux.cpp.o
[ 62%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Miner.cpp.o
[ 66%] Linking CXX static library libethcore.a
[ 66%] Built target ethcore
[ 70%] Generating OpenCL Kernel Byte Array
[ 74%] Generating OpenCL Kernel Byte Array
Scanning dependencies of target ethash-cl
[ 77%] Building CXX object libethash-cl/CMakeFiles/ethash-cl.dir/CLMiner.cpp.o
In file included from /tmp/ethminer/libethash-cl/CLMiner.h:22:0,
from /tmp/ethminer/libethash-cl/CLMiner.cpp:6:
/tmp/ethminer/libethash-cl/CL/cl2.hpp:5854:63: warning: ignoring attributes on template argument ‘cl_int {aka int}’ [-Wignored-attributes]
typename std::enable_if<!std::is_pointer<T>::value, cl_int>::type
^
/tmp/ethminer/libethash-cl/CL/cl2.hpp:6154:22: warning: ignoring attributes on template argument ‘cl_int {aka int}’ [-Wignored-attributes]
vector<cl_int>* binaryStatus = NULL,
^
[ 81%] Linking CXX static library libethash-cl.a
[ 81%] Built target ethash-cl
Scanning dependencies of target ethstratum
[ 85%] Building CXX object libstratum/CMakeFiles/ethstratum.dir/EthStratumClient.cpp.o
In file included from /tmp/ethminer/libstratum/EthStratumClient.cpp:2:0:
/tmp/ethminer/libstratum/EthStratumClient.h:5:23: fatal error: json/json.h: No such file or directory
#include <json/json.h>
^
compilation terminated.
make[2]: *** [libstratum/CMakeFiles/ethstratum.dir/build.make:63: libstratum/CMakeFiles/ethstratum.dir/EthStratumClient.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:409: libstratum/CMakeFiles/ethstratum.dir/all] Error 2
make: *** [Makefile:152: all] Error 2 |
Yes, I have the same problem. I can fix it but need to find some time to do it. |
hows it coming? anyway to get this working without hunter? trying to build on nixos with same problem |
@chfast do you have a commit or a small changelog what you did? Last time I checked, it did not build without hunter at all. |
I don't plan to work on this. You can take it over. |
I've been trying to compiler
After diving a bit into it, the main cause is that on Arch (and probably many other distros) compilation of jsoncpp now uses Meson and Ninja. Jsoncpp only registers itself to the CMake registry with The flag that enables jsoncpp in cmake is there: https://github.com/open-source-parsers/jsoncpp/blob/2baad4923e6d9a7e09982cfa4b1c5fd0b67ebd87/CMakeLists.txt#L12 OPTION(JSONCPP_WITH_CMAKE_PACKAGE "Generate and install cmake package files" ON) but it is not available in meson.build |
Disabling hunter is broken in any of the current version (0.13, 0.12, ...)
The following sed magic is required to compile ethminer:
https://github.com/reagentoo/gentoo-overlay/blob/8b95566dc7ce7a81cbaa8183e664b3f036b8b31b/net-p2p/ethminer/ethminer-9999.ebuild#L51-L80
I already mentioned this before (#219), but I urge you to provide a way to completely disable hunter, without using Hunter. Hunter is the current blocker which keeps inclusion in the distributions like Gentoo: reagentoo/gentoo-overlay#6
The text was updated successfully, but these errors were encountered: