Post
Topic
Board Mining (Altcoins)
Re: [ANN] ccminer 2.0 - opensource - GPL (tpruvot)
by
boldogbanyasz
on 10/07/2017, 19:20:49 UTC
Hi,

I'm trying to compile on Ubuntu 17.04 - and it doesn't work. Here is what I'm doing:

Code:
$ git clone https://github.com/tpruvot/ccminer.git
$ cd ccminer
$ ./autogen.sh
$ ./configure CFLAGS="-Wall -O3"
$ make
...
nvcc -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\" -I/usr/local/cuda/include -I. -I./compat/jansson --ptxas-options="-v" --maxrregcount=128 -o heavy/heavy.o -c heavy/heavy.cu
ERROR: No supported gcc/g++ host compiler found, but clang-3.8 is available.
       Use 'nvcc -ccbin clang-3.8' to use that instead.

ok, so I edit Makefile.am so that nvcc_FLAGS includes "-ccbin clang-3.8"

then:

Code:
$ ./autogen.sh
$ ./configure CFLAGS="-Wall -O3"
$ make
...
nvcc -I./compat/jansson -I. -I/usr/local/cuda/include  -gencode=arch=compute_20,code=\"sm_21,compute_20\" -o scrypt/salsa_kernel.o -c scrypt/salsa_kernel.cu
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
ERROR: No supported gcc/g++ host compiler found, but clang-3.8 is available.
       Use 'nvcc -ccbin clang-3.8' to use that instead.

ok, so I edit entries in Makefile that invoke nvcc but do not reference nvcc_FLAGS to include "-ccbin clang-3.8"

then:

Code:
make
...
g++  -g -O2 -pthread -L/usr/local/cuda/lib64   -o ccminer ccminer-crc32.o ccminer-hefty1.o ccminer-ccminer.o ccminer-pools.o ccminer-util.o ccminer-bench.o ccminer-bignum.o ccminer-api.o ccminer-hashlog.o ccminer-nvml.o ccminer-stats.o ccminer-sysinfos.o ccminer-cuda.o heavy/heavy.o heavy/cuda_blake512.o heavy/cuda_combine.o heavy/cuda_groestl512.o heavy/cuda_hefty1.o heavy/cuda_keccak512.o heavy/cuda_sha256.o heavy/bastion.o heavy/cuda_bastion.o ccminer-fuguecoin.o Algo256/cuda_fugue256.o sph/ccminer-fugue.o ccminer-groestlcoin.o cuda_groestlcoin.o ccminer-myriadgroestl.o cuda_myriadgroestl.o lyra2/ccminer-Lyra2.o lyra2/ccminer-Sponge.o lyra2/lyra2RE.o lyra2/cuda_lyra2.o lyra2/lyra2REv2.o lyra2/cuda_lyra2v2.o lyra2/ccminer-Lyra2Z.o lyra2/lyra2Z.o lyra2/cuda_lyra2Z.o Algo256/cuda_bmw256.o Algo256/cuda_cubehash256.o Algo256/cuda_blake256.o Algo256/cuda_groestl256.o Algo256/cuda_keccak256.o Algo256/cuda_skein256.o Algo256/blake256.o Algo256/decred.o Algo256/vanilla.o Algo256/keccak256.o Algo256/blake2s.o sph/ccminer-blake2s.o Algo256/bmw.o Algo256/cuda_bmw.o crypto/ccminer-xmr-rpc.o crypto/ccminer-wildkeccak-cpu.o crypto/wildkeccak.o crypto/cryptolight.o crypto/cryptolight-core.o crypto/ccminer-cryptolight-cpu.o crypto/cryptonight.o crypto/cryptonight-core.o crypto/cryptonight-extra.o crypto/ccminer-cryptonight-cpu.o crypto/ccminer-oaes_lib.o crypto/ccminer-aesb.o crypto/cpu/ccminer-c_keccak.o JHA/jha.o JHA/jackpotcoin.o JHA/cuda_jha_keccak512.o JHA/cuda_jha_compactionTest.o cuda_checkhash.o quark/cuda_jh512.o quark/cuda_quark_blake512.o quark/cuda_quark_groestl512.o quark/cuda_skein512.o quark/cuda_bmw512.o quark/cuda_quark_keccak512.o quark/nist5.o quark/quarkcoin.o quark/cuda_quark_compactionTest.o neoscrypt/ccminer-neoscrypt.o neoscrypt/ccminer-neoscrypt-cpu.o neoscrypt/cuda_neoscrypt.o pentablake.o skein.o cuda_skeincoin.o ccminer-skein2.o zr5.o sha256/sha256d.o sha256/cuda_sha256d.o sha256/sha256t.o sha256/cuda_sha256t.o sia/sia.o sia/ccminer-sia-rpc.o sph/ccminer-blake2b.o sph/ccminer-bmw.o sph/ccminer-blake.o sph/ccminer-groestl.o sph/ccminer-jh.o sph/ccminer-keccak.o sph/ccminer-skein.o sph/ccminer-cubehash.o sph/ccminer-echo.o sph/ccminer-luffa.o sph/ccminer-sha2.o sph/ccminer-shavite.o sph/ccminer-simd.o sph/ccminer-hamsi.o sph/ccminer-hamsi_helper.o sph/ccminer-streebog.o sph/ccminer-shabal.o sph/ccminer-whirlpool.o sph/ccminer-sha2big.o sph/ccminer-haval.o sph/ccminer-ripemd.o sph/ccminer-sph_sha2.o lbry/lbry.o lbry/cuda_sha256_lbry.o lbry/cuda_sha512_lbry.o lbry/cuda_lbry_merged.o qubit/qubit.o qubit/qubit_luffa512.o qubit/deep.o qubit/luffa.o x11/x11.o x11/fresh.o x11/cuda_x11_luffa512.o x11/cuda_x11_cubehash512.o x11/cuda_x11_shavite512.o x11/cuda_x11_simd512.o x11/cuda_x11_echo.o x11/cuda_x11_luffa512_Cubehash.o x11/x11evo.o x11/timetravel.o x11/bitcore.o x13/x13.o x13/cuda_x13_hamsi512.o x13/cuda_x13_fugue512.o x15/x14.o x15/x15.o x15/cuda_x14_shabal512.o x15/cuda_x15_whirlpool.o x15/whirlpool.o x15/cuda_x15_whirlpool_sm3.o x17/x17.o x17/hmq17.o x17/cuda_x17_haval256.o x17/cuda_x17_sha512.o x11/c11.o x11/s3.o x11/sib.o x11/veltor.o x11/cuda_streebog.o ccminer-scrypt.o ccminer-scrypt-jane.o scrypt/blake.o scrypt/keccak.o scrypt/sha256.o scrypt/salsa_kernel.o scrypt/test_kernel.o scrypt/fermi_kernel.o scrypt/kepler_kernel.o scrypt/nv_kernel.o scrypt/nv_kernel2.o scrypt/titan_kernel.o  -lcurl compat/jansson/libjansson.a -lpthread -lcudart -static-libstdc++ -fopenmp -lcrypto -lssl -lz    -lcrypto -lssl -lz
/usr/bin/ld: heavy/heavy.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: heavy/cuda_blake512.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: heavy/cuda_combine.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: heavy/cuda_groestl512.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: heavy/cuda_hefty1.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: heavy/cuda_keccak512.o: relocation R_X86_64_32S against symbol `d_hash3output' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: heavy/cuda_sha256.o: relocation R_X86_64_32S against symbol `d_hash2output' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: heavy/bastion.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: heavy/cuda_bastion.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/cuda_fugue256.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: cuda_groestlcoin.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: cuda_myriadgroestl.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lyra2/lyra2RE.o: relocation R_X86_64_32S against symbol `opt_benchmark' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lyra2/cuda_lyra2.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lyra2/lyra2REv2.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lyra2/cuda_lyra2v2.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lyra2/lyra2Z.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lyra2/cuda_lyra2Z.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/cuda_bmw256.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/cuda_cubehash256.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/cuda_blake256.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/cuda_groestl256.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/cuda_keccak256.o: relocation R_X86_64_32S against symbol `d_KNonce' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/cuda_skein256.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/blake256.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/decred.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/vanilla.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/keccak256.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/blake2s.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/bmw.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Algo256/cuda_bmw.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: crypto/wildkeccak.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: crypto/cryptolight.o: relocation R_X86_64_32S against symbol `opt_benchmark' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: crypto/cryptolight-core.o: relocation R_X86_64_32S against symbol `device_bfactor' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: crypto/cryptonight.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: crypto/cryptonight-core.o: relocation R_X86_64_32S against symbol `device_bfactor' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: crypto/cryptonight-extra.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: JHA/jha.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: JHA/jackpotcoin.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: JHA/cuda_jha_keccak512.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: JHA/cuda_jha_compactionTest.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: cuda_checkhash.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: quark/cuda_jh512.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: quark/cuda_quark_blake512.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: quark/cuda_quark_groestl512.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: quark/cuda_skein512.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: quark/cuda_bmw512.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: quark/cuda_quark_keccak512.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: quark/nist5.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: quark/quarkcoin.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: quark/cuda_quark_compactionTest.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: neoscrypt/cuda_neoscrypt.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: pentablake.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: skein.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: cuda_skeincoin.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: zr5.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: sha256/sha256d.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: sha256/cuda_sha256d.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: sha256/sha256t.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: sha256/cuda_sha256t.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: sia/sia.o: relocation R_X86_64_32S against `.rodata.cst8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lbry/lbry.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lbry/cuda_sha256_lbry.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lbry/cuda_sha512_lbry.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lbry/cuda_lbry_merged.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: qubit/qubit.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: qubit/qubit_luffa512.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: qubit/deep.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: qubit/luffa.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/x11.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/fresh.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/cuda_x11_luffa512.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/cuda_x11_cubehash512.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/cuda_x11_shavite512.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/cuda_x11_simd512.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/cuda_x11_echo.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/cuda_x11_luffa512_Cubehash.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/x11evo.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/timetravel.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/bitcore.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x13/x13.o: relocation R_X86_64_32S against symbol `opt_benchmark' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x13/cuda_x13_hamsi512.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x13/cuda_x13_fugue512.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x15/x14.o: relocation R_X86_64_32S against symbol `opt_benchmark' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x15/x15.o: relocation R_X86_64_32S against symbol `opt_benchmark' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x15/cuda_x14_shabal512.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x15/cuda_x15_whirlpool.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x15/whirlpool.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x15/cuda_x15_whirlpool_sm3.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x17/x17.o: relocation R_X86_64_32S against symbol `opt_benchmark' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x17/hmq17.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x17/cuda_x17_haval256.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x17/cuda_x17_sha512.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/c11.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/s3.o: relocation R_X86_64_32S against symbol `opt_benchmark' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/sib.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/veltor.o: relocation R_X86_64_32S against symbol `device_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: x11/cuda_streebog.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/blake.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/keccak.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/sha256.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/salsa_kernel.o: relocation R_X86_64_32S against symbol `opt_nfactor' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/test_kernel.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/fermi_kernel.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/kepler_kernel.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/nv_kernel.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/nv_kernel2.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: scrypt/titan_kernel.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status

I wonder what I'm doing wrong...