Giter Club home page Giter Club logo

xmrig-deps's Issues

del

nvm, wrong issue

VS 2017 x86 does not build. 24 Unresolved external symbols

jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_loop_end [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_dataset_init [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_epilogue [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_end [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_loop_store [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_dataset_init_avx2_prologue [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcx
proj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_read_dataset_sshash_init [C:\Users\Crim\Desktop\xmrig-master\Build\xmr
ig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_sshash_end [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_sshash_init [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_dataset_init_avx2_epilogue [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcx
proj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_dataset_init_avx2_ssh_load [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcx
proj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_loop_load_xop [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_sshash_prefetch [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_sshash_load [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_dataset_init_avx2_loop_end [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcx
proj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_read_dataset [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_loop_load [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_loop_begin [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_start [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_imul_rcp_store [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj
]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_prologue_first_load [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vc
xproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_dataset_init_avx2_ssh_prefetch [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig
.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_prologue [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]
jit_compiler_x86.obj : error LNK2001: unresolved external symbol _randomx_program_read_dataset_sshash_fin [C:\Users\Crim\Desktop\xmrig-master\Build\xmri
g.vcxproj]
C:\Users\Crim\Desktop\xmrig-master\Build\Release\xmrig.exe : fatal error
LNK1120: 24 unresolved externals [C:\Users\Crim\Desktop\xmrig-master\Build\xmrig.vcxproj]

So where are those symbols defined?

VS2019 compilation error

VS2019 compilation error. Xmrig.dir \Release\ networkstate.obj "is created using an older compiler than the one used to create other objects. Please regenerate the old objects and libraries

Compile issues under DragonflyBSD

Cmake options, both:

cmake .. -DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON -DCMAKE_C_COMPILER=clang
AND

cmake .. -DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON
Results:

[ 75%] Building CXX object CMakeFiles/xmrig.dir/src/crypto/cn/CnCtx.cpp.o
[...]/xmrig/src/crypto/common/VirtualMemory_unix.cpp:154:109: error: use of undeclared identifier 'MAP_POPULATE'
        mem = mmap(0, align(size), PROT_READ | PROT_WRITE | SECURE_PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS | MAP_POPULATE | hugePagesFlag(hugePageSize()), -1, 0);
                                                                                                            ^
/root/gits/xmrig/src/crypto/common/VirtualMemory_unix.cpp:174:85: error: use of undeclared identifier 'MAP_HUGETLB'
    void *mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_POPULATE | hugePagesFlag(hugePageSize()), 0, 0);
                                                                                    ^
/root/gits/xmrig/src/crypto/common/VirtualMemory_unix.cpp:174:99: error: use of undeclared identifier 'MAP_POPULATE'
    void *mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_POPULATE | hugePagesFlag(hugePageSize()), 0, 0);
                                                                                                  ^
[ 75%] Building CXX object CMakeFiles/xmrig.dir/src/crypto/cn/CnHash.cpp.o
[ 76%] Building CXX object CMakeFiles/xmrig.dir/src/crypto/common/HugePagesInfo.cpp.o
3 errors generated.
--- CMakeFiles/xmrig.dir/src/crypto/common/VirtualMemory_unix.cpp.o ---
*** [CMakeFiles/xmrig.dir/src/crypto/common/VirtualMemory_unix.cpp.o] Error code 1

Update dep builds for usage with VS 2017 ver. 15.4.4

VS 2017 has been updated to version 15.4.4 (incl. community version).

Now it's unable to compile - the provided libmicrohttpd binary build is "outdated".

Was really easy to solve, but i think it would be nice to have for others :)

VS 15.7.0

Build the dependencies with the VS 15.7.0.

libuv errors

[ 16%] Linking CXX executable xmrig.exe
msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bi
n/ld.exe: xmrig-deps/gcc/x64/lib/libuv.a(libuv_la-process.o): in functio
n `uv__kill':
xmrig\libuv-v1.48.0/src/win/process.c:1270:(.text+0x73c): undefined reference to `__imp
_SymGetOptions'
msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bi
n/ld.exe: xmrig\libuv-v1.48.0/src/win/process.c:1271:(.text+0x743): undefined reference
 to `__imp_SymSetOptions'
msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bi
n/ld.exe: xmrig\libuv-v1.48.0/src/win/process.c:1283:(.text+0x77e): undefined reference
 to `MiniDumpWriteDump'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/xmrig.dir/build.make:4082: xmrig.exe] Error 1
make[1]: *** [CMakeFiles/Makefile2:182: CMakeFiles/xmrig.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

tried to build libuv.a by myself and got the same error. build would pass if use previous committed libuv.a file

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.