Code Monkey home page Code Monkey logo

Comments (7)

MarQuisKnox avatar MarQuisKnox commented on September 18, 2024

Fixed the first issue: missing include: CpuImpl.h
Fixed the second issue: missing include: #include <string>

Next issue, which I will review later unless you have an idea:

...
[ 46%] Built target xmrigCCServer
Scanning dependencies of target xmrigDaemon
[ 47%] Building CXX object CMakeFiles/xmrigDaemon.dir/src/cc/XMRigd.cpp.o
./.download/xmrigCC/src/cc/XMRigd.cpp:74:37: error: use of undeclared identifier 'EINTR'
    } while (WEXITSTATUS(status) == EINTR);
                                    ^
1 error generated.
make[2]: *** [CMakeFiles/xmrigDaemon.dir/src/cc/XMRigd.cpp.o] Error 1
make[1]: *** [CMakeFiles/xmrigDaemon.dir/all] Error 2
make: *** [all] Error 2

from xmrigcc.

Bendr0id avatar Bendr0id commented on September 18, 2024

Awesome, was about to write you.

For the last error please try to include errno.h

from xmrigcc.

MarQuisKnox avatar MarQuisKnox commented on September 18, 2024

Thanks for your response. I figured that one out already.
Next issue is w/ RapidJSON:

-- Configuring done
-- Generating done
-- Build files have been written to: ./.download/xmrigCC
bash-3.2$ make
[  8%] Built target cpuid
[ 12%] Built target xmrig_cc_common
[ 15%] Built target xmrig_cpuid
[ 29%] Built target xmrig_common_cc
[ 38%] Built target xmrig_os_dependencies
[ 46%] Built target xmrigCCServer
[ 49%] Built target xmrigDaemon
[ 63%] Built target xmrig_common
[ 64%] Building CXX object CMakeFiles/xmrigMiner.dir/src/api/ApiState.cpp.o
In file included from ./.download/xmrigCC/src/api/ApiState.cpp:41: 
./.download/xmrigCC/src/3rdparty/rapidjson/document.h:1259:22: error: call to constructor of
      'rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >'
      is ambiguous
        GenericValue v(value);
                     ^ ~~~~~
./.download/xmrigCC/src/3rdparty/rapidjson/document.h:1330:16: note: in instantiation of function
      template specialization 'rapidjson::GenericValue<rapidjson::UTF8<char>,
      rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::AddMember<unsigned long>' requested here
        return AddMember(n, value, allocator);
               ^
./.download/xmrigCC/src/api/ApiState.cpp:227:9: note: in instantiation of function template
      specialization 'rapidjson::GenericValue<rapidjson::UTF8<char>,
      rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::AddMember<unsigned long>' requested here
    cpu.AddMember("sockets", Cpu::sockets(), allocator);
        ^
./.download/xmrigCC/src/3rdparty/rapidjson/document.h:634:14: note: candidate constructor
    explicit GenericValue(int i) RAPIDJSON_NOEXCEPT : data_() {
             ^
./.download/xmrigCC/src/3rdparty/rapidjson/document.h:640:14: note: candidate constructor
    explicit GenericValue(unsigned u) RAPIDJSON_NOEXCEPT : data_() {
             ^
./.download/xmrigCC/src/3rdparty/rapidjson/document.h:646:14: note: candidate constructor
    explicit GenericValue(int64_t i64) RAPIDJSON_NOEXCEPT : data_() {
             ^
./.download/xmrigCC/src/3rdparty/rapidjson/document.h:661:14: note: candidate constructor
    explicit GenericValue(uint64_t u64) RAPIDJSON_NOEXCEPT : data_() {
             ^
./.download/xmrigCC/src/3rdparty/rapidjson/document.h:673:14: note: candidate constructor
    explicit GenericValue(double d) RAPIDJSON_NOEXCEPT : data_() { data_.n.d = d; data_.f.flags = kNumbe...
             ^
1 error generated.
make[2]: *** [CMakeFiles/xmrigMiner.dir/src/api/ApiState.cpp.o] Error 1
make[1]: *** [CMakeFiles/xmrigMiner.dir/all] Error 2

from xmrigcc.

Bendr0id avatar Bendr0id commented on September 18, 2024

from xmrigcc.

MarQuisKnox avatar MarQuisKnox commented on September 18, 2024

OK. So close, but yet so far. I'm building from master BTW:

...
[ 97%] Building CXX object CMakeFiles/xmrigMiner.dir/src/cc/CCClient.cpp.o
[ 98%] Linking CXX executable xmrigMiner
Undefined symbols for architecture x86_64:
  "ApiState::tick(Hashrate const*)", referenced from:
      Api::tick(Hashrate const*) in Api.cpp.o
  "ApiState::tick(NetworkState const&)", referenced from:
      Api::tick(NetworkState const&) in Api.cpp.o
  "ApiState::ApiState()", referenced from:
      Api::start() in Api.cpp.o
  "ApiState::~ApiState()", referenced from:
      Api::release() in Api.cpp.o
  "ApiState::get(char const*, int*) const", referenced from:
      Api::get(char const*, int*) in Api.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [xmrigMiner] Error 1
make[1]: *** [CMakeFiles/xmrigMiner.dir/all] Error 2
make: *** [all] Error 2

from xmrigcc.

Bendr0id avatar Bendr0id commented on September 18, 2024

from xmrigcc.

MarQuisKnox avatar MarQuisKnox commented on September 18, 2024

OK, works.
Thanks!

from xmrigcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.