decred / gominer

Go (golang) based GPU miner for Decred.
GNU General Public License v3.0
159 stars 77 forks source link

Ubuntu build failed tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x43d): undefined reference to `cudaMemcpyToSymbol' #183

Closed VanJames closed 10 months ago

VanJames commented 5 years ago

Ubuntu Build Faild

go build --tags opencl is OK

go build --tags cuda occurred problems below

obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In functiondecred_cpu_setBlock_52': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x220): undefined reference to cudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x43d): undefined reference tocudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe0f): undefined reference to cudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe41): undefined reference tocudaGetErrorString' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe84): undefined reference to cudaGetErrorString' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe96): undefined reference tocudaGetErrorString' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function __device_stub__Z21decred_gpu_hash_noncejjPjj(unsigned int, unsigned int, unsigned int*, unsigned int)': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xf4e): undefined reference tocudaPopCallConfiguration' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xfb6): undefined reference to cudaLaunchKernel' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In functiondecred_hash_nonce': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x1025): undefined reference to __cudaPushCallConfiguration' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In functioncudaUnregisterBinaryUtil()': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x8): undefined reference to __cudaUnregisterFatBinary' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In functionsti__cudaRegisterAll()': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x9): undefined reference to __cudaRegisterFatBinary' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x3d): undefined reference tocudaRegisterFunction' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x67): undefined reference to __cudaRegisterVar' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x8f): undefined reference tocudaRegisterVar' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0xb7): undefined reference to __cudaRegisterVar' collect2: error: ld returned 1 exit status

icodezjb commented 5 years ago

i got the same issue on ubuntu18.04, @VanJames are you solved it ?

VanJames commented 5 years ago

i got the same issue on ubuntu18.04, @VanJames are you solved it ?

I build opencl,not use cuda