Package Details: xmrig-cuda 6.21.1-2

Git Clone URL: https://aur.archlinux.org/xmrig-cuda.git (read-only, click to copy)
Package Base: xmrig-cuda
Description: NVIDIA CUDA plugin for XMRig miner.
Upstream URL: https://github.com/xmrig/xmrig-cuda
Keywords: cryptocurrency gpu miner monero
Licenses: GPL
Submitter: hv15
Maintainer: hv15
Last Packager: hv15
Votes: 6
Popularity: 0.000010
First Submitted: 2019-11-14 12:06 (UTC)
Last Updated: 2024-05-05 14:17 (UTC)

Pinned Comments

hv15 commented on 2022-10-14 16:33 (UTC)

Hi all, I no longer use this package and have no interest in maintaining it. Before disowning it I'd ideally like to make someone a co-maintainer. Please reach out if you're interested. Thanks!

Latest Comments

1 2 3 4 Next › Last »

sidicer commented on 2024-05-05 14:51 (UTC) (edited on 2024-05-05 22:47 (UTC) by sidicer)

@hv15 I was building on a GTX780 for testing purposes which uses 11.4 Cuda version, but I installed the latest 12.* Cuda package on the system.
Will remove everything, install 11.* Cuda and update if that worked

But just a heads up as I do not think that was the issue as after building on RTX3080 with latest CUDA i got the same undefined symbol: blake256_hash error.
Hoping for a random missing library or a package 🤞


UPDATE:

Replacing -fno-lto flag with -ffat-lto-objects links libraries but uses LTO which is required for the blake256_hash to build. Currently on RTX3080 machine I was able to build xmrig-cuda and use it with this.
Apologies @hv15 for not investigating more at first

GTX780 not successful

diff --git a/PKGBUILD b/PKGBUILD
index 9afa5d1..33f5ac4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,7 +24,7 @@ prepare () {
 build() {
   cd "${pkgname}-${pkgver}"

-  cmake -DCMAKE_CXX_FLAGS="-fno-lto" -DCMAKE_C_COMPILER=/opt/cuda/bin/gcc -DCMAKE_CXX_COMPILER=/opt/cuda/bin/g++ -S . -B build
+  cmake -DCMAKE_CXX_FLAGS="-ffat-lto-objects" -DCMAKE_C_COMPILER=/opt/cuda/bin/gcc -DCMAKE_CXX_COMPILER=/opt/cuda/bin/g++ -S . -B build
   cmake --build build
 }

hv15 commented on 2024-05-05 14:20 (UTC)

@sidicer, thanks for the no-LTO tip, I can confirm it build for me as well. I've pushed a new PKGBUILD. On my system I am able to get it working:

 * CUDA GPU     #0 01:00.0 NVIDIA RTX A3000 Laptop GPU 1485/5501 MHz smx:32 arch:86 mem:5807/5937 MB

I'm not sure about the missing blake256_hash symbol, I can only guess that some lib dependency isn't being met, what is the output of CMake when building xmrig-cuda?

sidicer commented on 2024-05-03 15:31 (UTC) (edited on 2024-05-05 21:51 (UTC) by sidicer)

Could not push changes to the repo, so i'll post here: To fix the symbol 'fatbinData' is already defined error - add -DCMAKE_CXX_FLAGS="-fno-lto" to the cmake line in PKGBUILD

EDIT: Replacing -fno-lto flag with -ffat-lto-objects links libraries but uses LTO which is required for the blake256_hash to build.

ramyar.rmn commented on 2024-04-05 19:26 (UTC)

Same issue like @silkky

silkky commented on 2024-03-16 17:17 (UTC) (edited on 2024-03-16 17:18 (UTC) by silkky)

Getting the same issue as @SycoLTH, building with CUDA 12.3 in chroot. Anyone find a fix?

{standard input}: Assembler messages:
{standard input}:213135: Error: symbol `fatbinData' is already defined
{standard input}:589064: Error: symbol `fatbinData' is already defined
{standard input}:673670: Error: symbol `fatbinData' is already defined
{standard input}:758439: Error: symbol `fatbinData' is already defined
{standard input}:843031: Error: symbol `fatbinData' is already defined
{standard input}:927660: Error: symbol `fatbinData' is already defined
{standard input}:927844: Error: symbol `fatbinData' is already defined
{standard input}:1012301: Error: symbol `fatbinData' is already defined
{standard input}:1071861: Error: symbol `fatbinData' is already defined
{standard input}:1136826: Error: symbol `fatbinData' is already defined
make[3]: *** [/tmp/ccTx9vXq.mk:2: /tmp/cc4ePyvf.ltrans0.ltrans.o] Error 1
make[3]: *** Waiting for unfinished jobs....
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.

hv15 commented on 2024-02-23 16:21 (UTC)

@SycoLTH Sorry, I can't reproduce the error message... what version of CUDA do you have? Have you tried building in a chroot?

SycoLTH commented on 2024-02-22 15:10 (UTC)

any fix for this error?

[100%] Linking CXX shared library libxmrig-cuda.so
/usr/src/debug/xmrig-cuda/xmrig-cuda-6.17.0/src/CudaCryptonightR_gen.cpp:58:8: warning: type ‘struct CacheEntry’ violates the C++ One Definition Rule [-Wodr]
/usr/src/debug/xmrig-cuda/xmrig-cuda-6.17.0/src/KawPow/raven/CudaKawPow_gen.cpp:13:8: note: a different type is defined in another translation unit
/usr/src/debug/xmrig-cuda/xmrig-cuda-6.17.0/src/CudaCryptonightR_gen.cpp:68:14: note: the first difference of corresponding definitions is field ‘height’
/usr/src/debug/xmrig-cuda/xmrig-cuda-6.17.0/src/KawPow/raven/CudaKawPow_gen.cpp:23:14: note: a field with different name is defined in another translation unit
{standard input}: Assembler messages:
{standard input}:196834: Error: symbol `fatbinData' is already defined
{standard input}:566882: Error: symbol `fatbinData' is already defined
{standard input}:651485: Error: symbol `fatbinData' is already defined
{standard input}:736253: Error: symbol `fatbinData' is already defined
{standard input}:820846: Error: symbol `fatbinData' is already defined
{standard input}:905474: Error: symbol `fatbinData' is already defined
{standard input}:905658: Error: symbol `fatbinData' is already defined
{standard input}:990114: Error: symbol `fatbinData' is already defined
{standard input}:1049674: Error: symbol `fatbinData' is already defined
{standard input}:1114637: Error: symbol `fatbinData' is already defined
make[3]: *** [/tmp/ccfKTTQp.mk:2: /tmp/ccgHFwZw.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/xmrig-cuda.dir/build.make:150: libxmrig-cuda.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/xmrig-cuda.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

hv15 commented on 2023-08-30 08:15 (UTC)

@Moebius14, I'm able to build fine in a chroot, what version of gcc are you using?

Moebius14 commented on 2023-08-25 22:14 (UTC)

Build failed until I disabled link time optimization by adding -fno-lto to the compiler flags.