papampi
Full Member
Offline
Activity: 686
Merit: 140
Linux FOREVER! Resistance is futile!!!
|
|
November 15, 2017, 09:47:30 AM Last edit: November 15, 2017, 12:37:31 PM by papampi |
|
Another IAmNotAJeep_and_Maxximus007_WATCHDOG ModI had my Verizon FIOS service upgraded the other day and I was unable to shutdown all of my miners before the tech interrupted my internet. This made me scrutinize how the watchdog handles that situation (not very well, IMO) so I made the following modification to just wait on internet service to return rather than just looping, restarting mining, and restarting the host as usual. <cut> if [ $COUNT -le 0 ] then # Begin Stubo Mod # Wait for Internet while ! nc -vzw1 google.com 443; do echo "Internet is down, checking again in 30 seconds..." | tee -a ${LOG_FILE} ${ALERT_LOG_FILE} sleep 30 done # # INTERNET_IS_GO=0 # # if nc -vzw1 google.com 443; # #if nc -vzw1 $POOL 80; # then # INTERNET_IS_GO=1 # fi echo ""
# if [[ $RESTART -gt 4 && $INTERNET_IS_GO == 1 ]] if [ $RESTART -gt 4 ] # End Stubo Mod then echo "$(date) - Utilization is too low: reviving did not work so restarting system in 10 seconds" | tee -a ${LOG_FILE} ${ALERT_LOG_FILE} <cut>
Let me know if you have any questions or see room for improvement in this modification. I just made some changes to your addition so after checking google for internet it checks coin pool server then it goes for the rest of its job ... Because I'm not using any dual coin mining and salfter switches I havent gone through the hassle of checking their pool too. Please check, test and let me know what you think <cut>
if [ $COUNT -le 0 ] then # Begin Stubo Mod # Wait for Internet while ! nc -vzw1 google.com 443; do echo "Internet is down, checking again in 30 seconds..." | tee -a ${LOG_FILE} ${ALERT_LOG_FILE} sleep 30 done
# Begin papampi Mod
source /home/m1/1bash
CURRENT_COIN=$(head -n 200 /home/m1/1bash | grep COIN= | sed 's/COIN=//' | sed 's/\"//' | sed 's/\"//') #echo "$CURRENT_COIN"
CURRENT_COIN_POOL=$(echo {$CURRENT_COIN}_POOL |sed 's/{//' | sed 's/}//' ) #echo $CURRENT_COIN_POOL
POOL_SERVER=$(cat /home/m1/1bash | grep $CURRENT_COIN_POOL | grep -o '".*"' | sed 's/"//'| sed 's/"//') #echo "$POOL_SERVER"
CURRENT_COIN_PORT=$(echo {$CURRENT_COIN}_PORT | sed 's/{//' | sed 's/}//') #echo "$CURRENT_COIN_PORT"
if [[ $POOL_SERVER == *stratum* ]] then #echo "stratum" PING_SERVER=$( cat /home/m1/1bash | grep $CURRENT_COIN_POOL | grep -o '".*"' | sed 's/"//'| sed 's/"//' | sed 's/stratum+tcp\?:\/\///' | cut -d':' -f1 ) #echo "Server: $PING_SERVER" PING_PORT=$(cat /home/m1/1bash | grep $CURRENT_COIN_POOL | grep -o '".*"' | sed 's/"//'| sed 's/"//' | sed 's/stratum+tcp\?:\/\///' | grep -Eo '[0-9]+$' ) #echo "Port: $PING_PORT"
if nc -vzw2 $PING_SERVER $PING_PORT; then # echo "Strartum Server, INTERNET_IS_GO=1" INTERNET_IS_GO=1 else echo "WARNING: $(date) - Mining Pool Stratum Server is DOWN" | tee -a ${LOG_FILE} ${ALERT_LOG_FILE} INTERNET_IS_GO=0 fi elif [[ $CURRENT_COIN == *DUAL* || $CURRENT_COIN == *ZPOOL_SKUNK* || $CURRENT_COIN == *SALFTER* ]] then #echo "Dual mining, check google" if nc -vzw2 google.com 443 then # echo "Dual mining, google is up" #echo " INTERNET_IS_GO=1" INTERNET_IS_GO=1 else #echo "Dual mining, google is down" echo "WARNING: $(date) - Cant reach google" | tee -a ${LOG_FILE} ${ALERT_LOG_FILE} INTERNET_IS_GO=0 fi else PING_SERVER=$( cat /home/m1/1bash | grep $CURRENT_COIN_POOL | grep -o '".*"' | sed 's/"//'| sed 's/"//') #echo "Server: $PING_SERVER" PING_PORT=$(cat /home/m1/1bash | grep $CURRENT_COIN_PORT | grep -o '".*"' | sed 's/"//' |sed 's/"//') #echo "Port: $PING_PORT" if nc -vzw1 $PING_SERVER $PING_PORT then #echo "Not a stratum server,INTERNET_IS_GO=1" | tee -a ${LOG_FILE} INTERNET_IS_GO=1 else echo "WARNING: $(date) - Mining Pool Server is DOWN" | tee -a ${LOG_FILE} ${ALERT_LOG_FILE} INTERNET_IS_GO=0 fi fi
# End papampi Mod
# INTERNET_IS_GO=0 # if nc -vzw1 google.com 443; # #if nc -vzw1 $POOL 80; # then # INTERNET_IS_GO=1 # fi echo ""
if [[ $RESTART -gt 4 && $INTERNET_IS_GO == 1 ]] # if [ $RESTART -gt 4 ] # End Stubo Mod then echo "$(date) - Utilization is too low: reviving did not work so restarting system in 10 seconds" | tee -a ${LOG_FILE} ${ALERT_LOG_FILE}
<cut>
Edited to add server port too.
|
|
|
|
oktoshiimin
Member
Offline
Activity: 82
Merit: 10
|
|
November 15, 2017, 10:23:25 AM |
|
Sure. I just compiled it up so I could see how to answer this question. There are a couple of tweaks that are already covered here but here they are again in a non-obfuscated fashion. I am assuming you tried running build.sh and it failed like it did for me the first time. The tweaks are: 1) The version of bn.h at /usr/local/include/openssl/bn.h is problematic so we need to put the correct one in that location. First, in a temporary directory off of /home/m1 (I use XXX in example): from /home/m1/XXX do a wget to get a proper openssl: wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz tar zxvf openssl-1.0.1g.tar.gz Make backup of bh.h and copy over the new version sudo mv /usr/local/include/openssl/bn.h /usr/local/include/openssl/bn.h.old sudo cp /home/m1/XXX/openssl-1.0.1g/crypto/bn/bn.h /usr/local/include/openssl/ 2) The location of the cuda libraries in configure.sh doesn't match nvOC so we need to change it: cd /home/m1/XXX/ccminer-xevan-master vi configure.sh change CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda-7.5 --with-nvml=libnvidia-ml.so to CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda --with-nvml=libnvidia-ml.so after that, you should be able to build normally by executing build.sh Hope this helps. Edit: You can download the version I compiled up from here: http://www.cstone.net/~stu/nvOC/miners/ccminer-xevan.tar.gzYou are right, I got the same error you mentioned above and I try on the version you provided, it working great thank you so much
|
|
|
|
papampi
Full Member
Offline
Activity: 686
Merit: 140
Linux FOREVER! Resistance is futile!!!
|
|
November 15, 2017, 10:28:35 AM |
|
Sure. I just compiled it up so I could see how to answer this question. There are a couple of tweaks that are already covered here but here they are again in a non-obfuscated fashion. I am assuming you tried running build.sh and it failed like it did for me the first time. The tweaks are: 1) The version of bn.h at /usr/local/include/openssl/bn.h is problematic so we need to put the correct one in that location. First, in a temporary directory off of /home/m1 (I use XXX in example): from /home/m1/XXX do a wget to get a proper openssl: wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz tar zxvf openssl-1.0.1g.tar.gz Make backup of bh.h and copy over the new version sudo mv /usr/local/include/openssl/bn.h /usr/local/include/openssl/bn.h.old sudo cp /home/m1/XXX/openssl-1.0.1g/crypto/bn/bn.h /usr/local/include/openssl/ 2) The location of the cuda libraries in configure.sh doesn't match nvOC so we need to change it: cd /home/m1/XXX/ccminer-xevan-master vi configure.sh change CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda-7.5 --with-nvml=libnvidia-ml.so to CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda --with-nvml=libnvidia-ml.so after that, you should be able to build normally by executing build.sh Hope this helps. Edit: You can download the version I compiled up from here: http://www.cstone.net/~stu/nvOC/miners/ccminer-xevan.tar.gzYou are right, I got the same error you mentioned above and I try on the version you provided, it working great thank you so much Can I ask which coins you use ccminer-xevan for and what are the hash rate difference compare to nvOC default miners?
|
|
|
|
damNmad
Full Member
Offline
Activity: 378
Merit: 104
nvOC forever
|
|
November 15, 2017, 11:01:38 AM |
|
Sure. I just compiled it up so I could see how to answer this question. There are a couple of tweaks that are already covered here but here they are again in a non-obfuscated fashion. I am assuming you tried running build.sh and it failed like it did for me the first time. The tweaks are: 1) The version of bn.h at /usr/local/include/openssl/bn.h is problematic so we need to put the correct one in that location. First, in a temporary directory off of /home/m1 (I use XXX in example): from /home/m1/XXX do a wget to get a proper openssl: wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz tar zxvf openssl-1.0.1g.tar.gz Make backup of bh.h and copy over the new version sudo mv /usr/local/include/openssl/bn.h /usr/local/include/openssl/bn.h.old sudo cp /home/m1/XXX/openssl-1.0.1g/crypto/bn/bn.h /usr/local/include/openssl/ 2) The location of the cuda libraries in configure.sh doesn't match nvOC so we need to change it: cd /home/m1/XXX/ccminer-xevan-master vi configure.sh change CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda-7.5 --with-nvml=libnvidia-ml.so to CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda --with-nvml=libnvidia-ml.so after that, you should be able to build normally by executing build.sh Hope this helps. Edit: You can download the version I compiled up from here: http://www.cstone.net/~stu/nvOC/miners/ccminer-xevan.tar.gzYou are right, I got the same error you mentioned above and I try on the version you provided, it working great thank you so much Can I ask which coins you use ccminer-xevan for and what are the hash rate difference compare to nvOC default miners? It is used to mine BSD and we currently don't have any ccminer forks supporting this algo. We also have instructions on here http://nvoc-mining-os.com/2017/11/13/add-ccminer-xevan-nvoc/@Stubo you doing a great job, i would love to have you on board on our discord channel
|
|
|
|
oktoshiimin
Member
Offline
Activity: 82
Merit: 10
|
|
November 15, 2017, 11:18:26 AM |
|
Sure. I just compiled it up so I could see how to answer this question. There are a couple of tweaks that are already covered here but here they are again in a non-obfuscated fashion. I am assuming you tried running build.sh and it failed like it did for me the first time. The tweaks are: 1) The version of bn.h at /usr/local/include/openssl/bn.h is problematic so we need to put the correct one in that location. First, in a temporary directory off of /home/m1 (I use XXX in example): from /home/m1/XXX do a wget to get a proper openssl: wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz tar zxvf openssl-1.0.1g.tar.gz Make backup of bh.h and copy over the new version sudo mv /usr/local/include/openssl/bn.h /usr/local/include/openssl/bn.h.old sudo cp /home/m1/XXX/openssl-1.0.1g/crypto/bn/bn.h /usr/local/include/openssl/ 2) The location of the cuda libraries in configure.sh doesn't match nvOC so we need to change it: cd /home/m1/XXX/ccminer-xevan-master vi configure.sh change CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda-7.5 --with-nvml=libnvidia-ml.so to CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda --with-nvml=libnvidia-ml.so after that, you should be able to build normally by executing build.sh Hope this helps. Edit: You can download the version I compiled up from here: http://www.cstone.net/~stu/nvOC/miners/ccminer-xevan.tar.gzYou are right, I got the same error you mentioned above and I try on the version you provided, it working great thank you so much Can I ask which coins you use ccminer-xevan for and what are the hash rate difference compare to nvOC default miners? mine rig is around 27MH/s with -i 19 on 13x1060, still trying on few coins VSX, AmsterdamCoin Ural & BitSend
|
|
|
|
damNmad
Full Member
Offline
Activity: 378
Merit: 104
nvOC forever
|
|
November 15, 2017, 11:26:17 AM |
|
Sure. I just compiled it up so I could see how to answer this question. There are a couple of tweaks that are already covered here but here they are again in a non-obfuscated fashion. I am assuming you tried running build.sh and it failed like it did for me the first time. The tweaks are: 1) The version of bn.h at /usr/local/include/openssl/bn.h is problematic so we need to put the correct one in that location. First, in a temporary directory off of /home/m1 (I use XXX in example): from /home/m1/XXX do a wget to get a proper openssl: wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz tar zxvf openssl-1.0.1g.tar.gz Make backup of bh.h and copy over the new version sudo mv /usr/local/include/openssl/bn.h /usr/local/include/openssl/bn.h.old sudo cp /home/m1/XXX/openssl-1.0.1g/crypto/bn/bn.h /usr/local/include/openssl/ 2) The location of the cuda libraries in configure.sh doesn't match nvOC so we need to change it: cd /home/m1/XXX/ccminer-xevan-master vi configure.sh change CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda-7.5 --with-nvml=libnvidia-ml.so to CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda --with-nvml=libnvidia-ml.so after that, you should be able to build normally by executing build.sh Hope this helps. Edit: You can download the version I compiled up from here: http://www.cstone.net/~stu/nvOC/miners/ccminer-xevan.tar.gzYou are right, I got the same error you mentioned above and I try on the version you provided, it working great thank you so much Can I ask which coins you use ccminer-xevan for and what are the hash rate difference compare to nvOC default miners? mine rig is around 27MH/s with -i 19 on 13x1060, still trying on few coins VSX, AmsterdamCoin Ural & BitSend Good to know other coins too, i only know BSD so far you mind sharing your OC settings while mining xevan, i also use 1060 too so Thanks in advance.
|
|
|
|
oktoshiimin
Member
Offline
Activity: 82
Merit: 10
|
|
November 15, 2017, 12:01:05 PM |
|
Sure. I just compiled it up so I could see how to answer this question. There are a couple of tweaks that are already covered here but here they are again in a non-obfuscated fashion. I am assuming you tried running build.sh and it failed like it did for me the first time. The tweaks are: 1) The version of bn.h at /usr/local/include/openssl/bn.h is problematic so we need to put the correct one in that location. First, in a temporary directory off of /home/m1 (I use XXX in example): from /home/m1/XXX do a wget to get a proper openssl: wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz tar zxvf openssl-1.0.1g.tar.gz Make backup of bh.h and copy over the new version sudo mv /usr/local/include/openssl/bn.h /usr/local/include/openssl/bn.h.old sudo cp /home/m1/XXX/openssl-1.0.1g/crypto/bn/bn.h /usr/local/include/openssl/ 2) The location of the cuda libraries in configure.sh doesn't match nvOC so we need to change it: cd /home/m1/XXX/ccminer-xevan-master vi configure.sh change CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda-7.5 --with-nvml=libnvidia-ml.so to CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda --with-nvml=libnvidia-ml.so after that, you should be able to build normally by executing build.sh Hope this helps. Edit: You can download the version I compiled up from here: http://www.cstone.net/~stu/nvOC/miners/ccminer-xevan.tar.gzYou are right, I got the same error you mentioned above and I try on the version you provided, it working great thank you so much Can I ask which coins you use ccminer-xevan for and what are the hash rate difference compare to nvOC default miners? mine rig is around 27MH/s with -i 19 on 13x1060, still trying on few coins VSX, AmsterdamCoin Ural & BitSend Good to know other coins too, i only know BSD so far you mind sharing your OC settings while mining xevan, i also use 1060 too so Thanks in advance. my rig core=150 memory=100 in 1bash, ccminer add -i 19 is working on my rig , but im not sure is the best setting
|
|
|
|
Rumo
Newbie
Offline
Activity: 41
Merit: 0
|
|
November 15, 2017, 12:42:21 PM |
|
I think BTCZ was removed from Whattomine. Any idea why?
|
|
|
|
papampi
Full Member
Offline
Activity: 686
Merit: 140
Linux FOREVER! Resistance is futile!!!
|
|
November 15, 2017, 01:01:49 PM |
|
I think BTCZ was removed from Whattomine. Any idea why?
Seems like there was a problem, I noticed this morning that it was on top with constant profit for more than 5 hours If you use wtm auto switch and it still mining btcz , just open WTM_top_coin and change it from btcz to one of your other coins It will grab new data and continue until btcz comes online again
|
|
|
|
damNmad
Full Member
Offline
Activity: 378
Merit: 104
nvOC forever
|
|
November 15, 2017, 01:18:49 PM |
|
I think BTCZ was removed from Whattomine. Any idea why?
Seems like there was a problem, I noticed this morning that it was on top with constant profit for more than 5 hours If you use wtm auto switch and it still mining btcz , just open WTM_top_coin and change it from btcz to one of your other coins It will grab new data and continue until btcz comes online again Not sure about WTM but their phone wallet dev has left the team. (@meligo has informed me about this) https://bitcointalk.org/index.php?topic=2166510.msg24607290#msg24607290These things do happen with coins, its kind of buzz sometimes pushes a coin into different places, but hey ho, please keep your coins in safe place accordingly.
|
|
|
|
papabiz
Member
Offline
Activity: 96
Merit: 10
|
|
November 15, 2017, 01:27:53 PM |
|
It is not possible to compile TPccminer by running ./build.sh with nvOC. It has probably something to do with the openssl version ~ anyone has a fix for it? m1@19_1_4:~/TPccminer$ ./build.sh Making distclean in compat make[1]: Entering directory '/home/m1/TPccminer/compat' Making distclean in jansson make[2]: Entering directory '/home/m1/TPccminer/compat/jansson' test -z "libjansson.a" || rm -f libjansson.a rm -f *.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -rf ./.deps rm -f Makefile make[2]: Leaving directory '/home/m1/TPccminer/compat/jansson' make[2]: Entering directory '/home/m1/TPccminer/compat' test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags make[2]: Leaving directory '/home/m1/TPccminer/compat' rm -f Makefile make[1]: Leaving directory '/home/m1/TPccminer/compat' make[1]: Entering directory '/home/m1/TPccminer' test -z "ccminer" || rm -f ccminer rm -f *.o rm -f Algo256/*.o rm -f JHA/*.o rm -f compat/*.o rm -f crypto/*.o rm -f crypto/cpu/*.o rm -f equi/*.o rm -f equi/blake2/*.o rm -f heavy/*.o rm -f lbry/*.o rm -f lyra2/*.o rm -f neoscrypt/*.o rm -f quark/*.o rm -f qubit/*.o rm -f scrypt/*.o rm -f sha256/*.o rm -f sia/*.o rm -f skunk/*.o rm -f sph/*.o rm -f x11/*.o rm -f x13/*.o rm -f x15/*.o rm -f x17/*.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f Algo256/.deps/.dirstamp rm -f Algo256/.dirstamp rm -f JHA/.deps/.dirstamp rm -f JHA/.dirstamp rm -f compat/.deps/.dirstamp rm -f compat/.dirstamp rm -f crypto/.deps/.dirstamp rm -f crypto/.dirstamp rm -f crypto/cpu/.deps/.dirstamp rm -f crypto/cpu/.dirstamp rm -f equi/.deps/.dirstamp rm -f equi/.dirstamp rm -f equi/blake2/.deps/.dirstamp rm -f equi/blake2/.dirstamp rm -f heavy/.deps/.dirstamp rm -f heavy/.dirstamp rm -f lbry/.deps/.dirstamp rm -f lbry/.dirstamp rm -f lyra2/.deps/.dirstamp rm -f lyra2/.dirstamp rm -f neoscrypt/.deps/.dirstamp rm -f neoscrypt/.dirstamp rm -f quark/.deps/.dirstamp rm -f quark/.dirstamp rm -f qubit/.deps/.dirstamp rm -f qubit/.dirstamp rm -f scrypt/.deps/.dirstamp rm -f scrypt/.dirstamp rm -f sha256/.deps/.dirstamp rm -f sha256/.dirstamp rm -f sia/.deps/.dirstamp rm -f sia/.dirstamp rm -f skunk/.deps/.dirstamp rm -f skunk/.dirstamp rm -f sph/.deps/.dirstamp rm -f sph/.dirstamp rm -f x11/.deps/.dirstamp rm -f x11/.dirstamp rm -f x13/.deps/.dirstamp rm -f x13/.dirstamp rm -f x15/.deps/.dirstamp rm -f x15/.dirstamp rm -f x17/.deps/.dirstamp rm -f x17/.dirstamp rm -f ccminer-config.h stamp-h1 rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f cscope.out cscope.in.out cscope.po.out cscope.files make[1]: Leaving directory '/home/m1/TPccminer' rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -rf ./.deps compat/.deps crypto/.deps crypto/cpu/.deps equi/.deps equi/blake2/.deps lyra2/.deps neoscrypt/.deps sia/.deps sph/.deps rm -f Makefile checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking whether gcc needs -traditional... no checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for gcc option to support OpenMP... -fopenmp checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/endian.h usability... no checking sys/endian.h presence... no checking for sys/endian.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for sys/sysctl.h... yes checking whether be32dec is declared... no checking whether le32dec is declared... no checking whether be32enc is declared... no checking whether le32enc is declared... no checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for getopt_long... yes checking for json_loads in -ljansson... yes checking for pthread_create in -lpthread... yes checking for gzopen in -lz... yes checking for SSL_library_init in -lssl... yes checking for EVP_DigestFinal_ex in -lcrypto... yes checking for gawk... (cached) mawk checking for curl-config... /usr/bin/curl-config checking for the version of libcurl... 7.47.0 checking for libcurl >= version 7.15.2... yes checking whether libcurl is usable... yes checking for curl_free... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating compat/Makefile config.status: creating compat/jansson/Makefile config.status: creating ccminer-config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory '/home/m1/TPccminer' Making all in compat make[2]: Entering directory '/home/m1/TPccminer/compat' make[3]: Entering directory '/home/m1/TPccminer/compat' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/m1/TPccminer/compat' make[2]: Leaving directory '/home/m1/TPccminer/compat' make[2]: Entering directory '/home/m1/TPccminer' gcc -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -g -O2 -MT ccminer-crc32.o -MD -MP -MF .deps/ccminer-crc32.Tpo -c -o ccminer-crc32.o `test -f 'crc32.c' || echo './'`crc32.c gcc -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -g -O2 -MT ccminer-hefty1.o -MD -MP -MF .deps/ccminer-hefty1.Tpo -c -o ccminer-hefty1.o `test -f 'hefty1.c' || echo './'`hefty1.c g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-ccminer.o -MD -MP -MF .deps/ccminer-ccminer.Tpo -c -o ccminer-ccminer.o `test -f 'ccminer.cpp' || echo './'`ccminer.cpp g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-pools.o -MD -MP -MF .deps/ccminer-pools.Tpo -c -o ccminer-pools.o `test -f 'pools.cpp' || echo './'`pools.cpp mv -f .deps/ccminer-crc32.Tpo .deps/ccminer-crc32.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-util.o -MD -MP -MF .deps/ccminer-util.Tpo -c -o ccminer-util.o `test -f 'util.cpp' || echo './'`util.cpp mv -f .deps/ccminer-hefty1.Tpo .deps/ccminer-hefty1.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-bench.o -MD -MP -MF .deps/ccminer-bench.Tpo -c -o ccminer-bench.o `test -f 'bench.cpp' || echo './'`bench.cpp mv -f .deps/ccminer-pools.Tpo .deps/ccminer-pools.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-bignum.o -MD -MP -MF .deps/ccminer-bignum.Tpo -c -o ccminer-bignum.o `test -f 'bignum.cpp' || echo './'`bignum.cpp mv -f .deps/ccminer-bench.Tpo .deps/ccminer-bench.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-api.o -MD -MP -MF .deps/ccminer-api.Tpo -c -o ccminer-api.o `test -f 'api.cpp' || echo './'`api.cpp In file included from bignum.cpp:8:0: bignum.hpp:63:24: error: invalid use of incomplete type ‘BIGNUM {aka struct bignum_st}’ class CBigNum : public BIGNUM ^ In file included from /usr/local/include/openssl/bn.h:32:0, from bignum.hpp:20, from bignum.cpp:8: /usr/local/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’ typedef struct bignum_st BIGNUM; ^ In file included from bignum.cpp:8:0: bignum.hpp: In constructor ‘CBigNum::CBigNum()’: bignum.hpp:68:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’: bignum.hpp:73:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp:74:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’ if (!BN_copy(this, &b)) ^ bignum.hpp:76:31: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator=(const CBigNum&)’: bignum.hpp:83:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’ if (!BN_copy(this, &b)) ^ bignum.hpp: In destructor ‘CBigNum::~CBigNum()’: bignum.hpp:90:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(signed char)’: bignum.hpp:94:47: error: ‘BN_init’ was not declared in this scope CBigNum(signed char n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(short int)’: bignum.hpp:95:47: error: ‘BN_init’ was not declared in this scope CBigNum(short n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(int)’: bignum.hpp:96:47: error: ‘BN_init’ was not declared in this scope CBigNum(int n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(long int)’: bignum.hpp:97:47: error: ‘BN_init’ was not declared in this scope CBigNum(long n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(int64)’: bignum.hpp:98:47: error: ‘BN_init’ was not declared in this scope CBigNum(int64 n) { BN_init(this); setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(unsigned char)’: bignum.hpp:99:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned char n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(short unsigned int)’: bignum.hpp:100:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned short n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(unsigned int)’: bignum.hpp:101:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned int n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(long unsigned int)’: bignum.hpp:102:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned long n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(uint64)’: bignum.hpp:103:47: error: ‘BN_init’ was not declared in this scope CBigNum(uint64 n) { BN_init(this); setuint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(uint256)’: bignum.hpp:104:47: error: ‘BN_init’ was not declared in this scope explicit CBigNum(uint256 n) { BN_init(this); setuint256(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(const std::vector<unsigned char>&)’: bignum.hpp:108:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp: In member function ‘void CBigNum::setulong(long unsigned int)’: bignum.hpp:114:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ if (!BN_set_word(this, n)) ^ bignum.hpp: In member function ‘long unsigned int CBigNum::getulong() const’: bignum.hpp:120:48: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return (unsigned long) BN_get_word(this); ^ bignum.hpp: In member function ‘unsigned int CBigNum::getuint() const’: bignum.hpp:125:47: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return (unsigned int) BN_get_word(this); ^ bignum.hpp: In member function ‘int CBigNum::getint() const’: bignum.hpp:130:59: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ unsigned long n = (unsigned long) BN_get_word(this); ^ bignum.hpp:131:33: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (!BN_is_negative(this)) ^ In file included from bignum.cpp:8:0: bignum.hpp: In member function ‘void CBigNum::setint64(int64)’: bignum.hpp:179:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘void CBigNum::setuint64(uint64)’: bignum.hpp:206:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘void CBigNum::setuint256(uint256)’: bignum.hpp:234:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘uint256 CBigNum::getuint256() const’: bignum.hpp:239:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ bignum.hpp:243:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ bignum.hpp: In member function ‘void CBigNum::setvch(const std::vector<unsigned char>&)’: bignum.hpp:264:52: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(&vch2[0], (int) vch2.size(), this); ^ bignum.hpp: In member function ‘std::vector<unsigned char> CBigNum::getvch() const’: bignum.hpp:269:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ bignum.hpp:273:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::SetCompact(unsigned int)’: bignum.hpp:309:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ BN_set_word(this, nWord); ^ bignum.hpp:313:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ BN_set_word(this, nWord); ^ bignum.hpp:314:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ BN_lshift(this, this, 8*(nSize-3)); ^ bignum.hpp:316:40: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’ BN_set_negative(this, fNegative); ^ In file included from bignum.hpp:20:0, from bignum.cpp:8: bignum.hpp: In member function ‘unsigned int CBigNum::GetCompact() const’: bignum.hpp:322:30: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_num_bits(const BIGNUM*)’ unsigned int nSize = BN_num_bytes(this); ^ In file included from bignum.cpp:8:0: bignum.hpp:325:55: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ nCompact = (unsigned int) BN_get_word(this) << 8*(3-nSize); ^ bignum.hpp:329:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’ BN_rshift(&bn, this, 8*(nSize-3)); ^ bignum.hpp:330:54: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ nCompact = (unsigned int) BN_get_word(&bn); ^ bignum.hpp:340:41: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ nCompact |= (BN_is_negative(this) ? 0x00800000 : 0); ^ In file included from bignum.cpp:8:0: bignum.hpp: In member function ‘std::__cxx11::string CBigNum::ToString(int) const’: bignum.hpp:381:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’ BN_set_negative(&bn, false); ^ bignum.hpp:384:29: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ if (BN_cmp(&bn, &bn0) == 0) ^ bignum.hpp:386:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ while (BN_cmp(&bn, &bn0) > 0) ^ bignum.hpp:388:54: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_div(&dv, &rem, &bn, &bnBase, pctx)) ^ bignum.hpp:394:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (BN_is_negative(this)) ^ bignum.hpp: In member function ‘bool CBigNum::operator!() const’: bignum.hpp:427:31: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_zero(const BIGNUM*)’ return BN_is_zero(this); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’: bignum.hpp:432:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(this, this, &b)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’: bignum.hpp:446:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mul(this, this, &b, pctx)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator<<=(unsigned int)’: bignum.hpp:465:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(this, this, shift)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator>>=(unsigned int)’: bignum.hpp:476:28: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ if (BN_cmp(&a, this) > 0) ^ bignum.hpp:482:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_rshift(this, this, shift)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator++()’: bignum.hpp:491:47: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(this, this, BN_value_one())) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator--()’: bignum.hpp:508:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, this, BN_value_one())) ^ bignum.hpp: In function ‘const CBigNum operator+(const CBigNum&, const CBigNum&)’: bignum.hpp:533:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(&r, &a, &b)) ^ bignum.hpp: In function ‘const CBigNum operator-(const CBigNum&, const CBigNum&)’: bignum.hpp:541:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, &a, &b)) ^ bignum.hpp: In function ‘const CBigNum operator-(const CBigNum&)’: bignum.hpp:549:43: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ BN_set_negative(&r, !BN_is_negative(&r)); ^ bignum.hpp: In function ‘const CBigNum operator*(const CBigNum&, const CBigNum&)’: bignum.hpp:557:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mul(&r, &a, &b, pctx)) ^ bignum.hpp: In function ‘const CBigNum operator/(const CBigNum&, const CBigNum&)’: bignum.hpp:566:39: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_div(&r, NULL, &a, &b, pctx)) ^ In file included from bignum.hpp:20:0, from bignum.cpp:8: bignum.hpp: In function ‘const CBigNum operator%(const CBigNum&, const CBigNum&)’: bignum.hpp:575:10: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘2’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mod(&r, &a, &b, pctx)) ^ In file included from bignum.cpp:8:0: bignum.hpp: In function ‘const CBigNum operator<<(const CBigNum&, unsigned int)’: bignum.hpp:583:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(&r, &a, shift)) ^ bignum.hpp: In function ‘bool operator==(const CBigNum&, const CBigNum&)’: bignum.hpp:595:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); } ^ bignum.hpp: In function ‘bool operator!=(const CBigNum&, const CBigNum&)’: bignum.hpp:596:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); } ^ bignum.hpp: In function ‘bool operator<=(const CBigNum&, const CBigNum&)’: bignum.hpp:597:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); } ^ bignum.hpp: In function ‘bool operator>=(const CBigNum&, const CBigNum&)’: bignum.hpp:598:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); } ^ bignum.hpp: In function ‘bool operator<(const CBigNum&, const CBigNum&)’: bignum.hpp:599:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); } ^ bignum.hpp: In function ‘bool operator>(const CBigNum&, const CBigNum&)’: bignum.hpp:600:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) > 0); } ^ Makefile:1795: recipe for target 'ccminer-bignum.o' failed make[2]: *** [ccminer-bignum.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/ccminer-api.Tpo .deps/ccminer-api.Po mv -f .deps/ccminer-util.Tpo .deps/ccminer-util.Po mv -f .deps/ccminer-ccminer.Tpo .deps/ccminer-ccminer.Po make[2]: Leaving directory '/home/m1/TPccminer' Makefile:2165: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/m1/TPccminer' Makefile:654: recipe for target 'all' failed make: *** [all] Error 2 m1@19_1_4:~/TPccminer$
|
|
|
|
damNmad
Full Member
Offline
Activity: 378
Merit: 104
nvOC forever
|
|
November 15, 2017, 01:35:01 PM |
|
It is not possible to compile TPccminer by running ./build.sh with nvOC. It has probably something to do with the openssl version ~ anyone has a fix for it? m1@19_1_4:~/TPccminer$ ./build.sh Making distclean in compat make[1]: Entering directory '/home/m1/TPccminer/compat' Making distclean in jansson make[2]: Entering directory '/home/m1/TPccminer/compat/jansson' test -z "libjansson.a" || rm -f libjansson.a rm -f *.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -rf ./.deps rm -f Makefile make[2]: Leaving directory '/home/m1/TPccminer/compat/jansson' make[2]: Entering directory '/home/m1/TPccminer/compat' test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags make[2]: Leaving directory '/home/m1/TPccminer/compat' rm -f Makefile make[1]: Leaving directory '/home/m1/TPccminer/compat' make[1]: Entering directory '/home/m1/TPccminer' test -z "ccminer" || rm -f ccminer rm -f *.o rm -f Algo256/*.o rm -f JHA/*.o rm -f compat/*.o rm -f crypto/*.o rm -f crypto/cpu/*.o rm -f equi/*.o rm -f equi/blake2/*.o rm -f heavy/*.o rm -f lbry/*.o rm -f lyra2/*.o rm -f neoscrypt/*.o rm -f quark/*.o rm -f qubit/*.o rm -f scrypt/*.o rm -f sha256/*.o rm -f sia/*.o rm -f skunk/*.o rm -f sph/*.o rm -f x11/*.o rm -f x13/*.o rm -f x15/*.o rm -f x17/*.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f Algo256/.deps/.dirstamp rm -f Algo256/.dirstamp rm -f JHA/.deps/.dirstamp rm -f JHA/.dirstamp rm -f compat/.deps/.dirstamp rm -f compat/.dirstamp rm -f crypto/.deps/.dirstamp rm -f crypto/.dirstamp rm -f crypto/cpu/.deps/.dirstamp rm -f crypto/cpu/.dirstamp rm -f equi/.deps/.dirstamp rm -f equi/.dirstamp rm -f equi/blake2/.deps/.dirstamp rm -f equi/blake2/.dirstamp rm -f heavy/.deps/.dirstamp rm -f heavy/.dirstamp rm -f lbry/.deps/.dirstamp rm -f lbry/.dirstamp rm -f lyra2/.deps/.dirstamp rm -f lyra2/.dirstamp rm -f neoscrypt/.deps/.dirstamp rm -f neoscrypt/.dirstamp rm -f quark/.deps/.dirstamp rm -f quark/.dirstamp rm -f qubit/.deps/.dirstamp rm -f qubit/.dirstamp rm -f scrypt/.deps/.dirstamp rm -f scrypt/.dirstamp rm -f sha256/.deps/.dirstamp rm -f sha256/.dirstamp rm -f sia/.deps/.dirstamp rm -f sia/.dirstamp rm -f skunk/.deps/.dirstamp rm -f skunk/.dirstamp rm -f sph/.deps/.dirstamp rm -f sph/.dirstamp rm -f x11/.deps/.dirstamp rm -f x11/.dirstamp rm -f x13/.deps/.dirstamp rm -f x13/.dirstamp rm -f x15/.deps/.dirstamp rm -f x15/.dirstamp rm -f x17/.deps/.dirstamp rm -f x17/.dirstamp rm -f ccminer-config.h stamp-h1 rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f cscope.out cscope.in.out cscope.po.out cscope.files make[1]: Leaving directory '/home/m1/TPccminer' rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -rf ./.deps compat/.deps crypto/.deps crypto/cpu/.deps equi/.deps equi/blake2/.deps lyra2/.deps neoscrypt/.deps sia/.deps sph/.deps rm -f Makefile checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking whether gcc needs -traditional... no checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for gcc option to support OpenMP... -fopenmp checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/endian.h usability... no checking sys/endian.h presence... no checking for sys/endian.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for sys/sysctl.h... yes checking whether be32dec is declared... no checking whether le32dec is declared... no checking whether be32enc is declared... no checking whether le32enc is declared... no checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for getopt_long... yes checking for json_loads in -ljansson... yes checking for pthread_create in -lpthread... yes checking for gzopen in -lz... yes checking for SSL_library_init in -lssl... yes checking for EVP_DigestFinal_ex in -lcrypto... yes checking for gawk... (cached) mawk checking for curl-config... /usr/bin/curl-config checking for the version of libcurl... 7.47.0 checking for libcurl >= version 7.15.2... yes checking whether libcurl is usable... yes checking for curl_free... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating compat/Makefile config.status: creating compat/jansson/Makefile config.status: creating ccminer-config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory '/home/m1/TPccminer' Making all in compat make[2]: Entering directory '/home/m1/TPccminer/compat' make[3]: Entering directory '/home/m1/TPccminer/compat' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/m1/TPccminer/compat' make[2]: Leaving directory '/home/m1/TPccminer/compat' make[2]: Entering directory '/home/m1/TPccminer' gcc -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -g -O2 -MT ccminer-crc32.o -MD -MP -MF .deps/ccminer-crc32.Tpo -c -o ccminer-crc32.o `test -f 'crc32.c' || echo './'`crc32.c gcc -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -g -O2 -MT ccminer-hefty1.o -MD -MP -MF .deps/ccminer-hefty1.Tpo -c -o ccminer-hefty1.o `test -f 'hefty1.c' || echo './'`hefty1.c g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-ccminer.o -MD -MP -MF .deps/ccminer-ccminer.Tpo -c -o ccminer-ccminer.o `test -f 'ccminer.cpp' || echo './'`ccminer.cpp g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-pools.o -MD -MP -MF .deps/ccminer-pools.Tpo -c -o ccminer-pools.o `test -f 'pools.cpp' || echo './'`pools.cpp mv -f .deps/ccminer-crc32.Tpo .deps/ccminer-crc32.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-util.o -MD -MP -MF .deps/ccminer-util.Tpo -c -o ccminer-util.o `test -f 'util.cpp' || echo './'`util.cpp mv -f .deps/ccminer-hefty1.Tpo .deps/ccminer-hefty1.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-bench.o -MD -MP -MF .deps/ccminer-bench.Tpo -c -o ccminer-bench.o `test -f 'bench.cpp' || echo './'`bench.cpp mv -f .deps/ccminer-pools.Tpo .deps/ccminer-pools.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-bignum.o -MD -MP -MF .deps/ccminer-bignum.Tpo -c -o ccminer-bignum.o `test -f 'bignum.cpp' || echo './'`bignum.cpp mv -f .deps/ccminer-bench.Tpo .deps/ccminer-bench.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-api.o -MD -MP -MF .deps/ccminer-api.Tpo -c -o ccminer-api.o `test -f 'api.cpp' || echo './'`api.cpp In file included from bignum.cpp:8:0: bignum.hpp:63:24: error: invalid use of incomplete type ‘BIGNUM {aka struct bignum_st}’ class CBigNum : public BIGNUM ^ In file included from /usr/local/include/openssl/bn.h:32:0, from bignum.hpp:20, from bignum.cpp:8: /usr/local/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’ typedef struct bignum_st BIGNUM; ^ In file included from bignum.cpp:8:0: bignum.hpp: In constructor ‘CBigNum::CBigNum()’: bignum.hpp:68:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’: bignum.hpp:73:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp:74:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’ if (!BN_copy(this, &b)) ^ bignum.hpp:76:31: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator=(const CBigNum&)’: bignum.hpp:83:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’ if (!BN_copy(this, &b)) ^ bignum.hpp: In destructor ‘CBigNum::~CBigNum()’: bignum.hpp:90:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(signed char)’: bignum.hpp:94:47: error: ‘BN_init’ was not declared in this scope CBigNum(signed char n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(short int)’: bignum.hpp:95:47: error: ‘BN_init’ was not declared in this scope CBigNum(short n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(int)’: bignum.hpp:96:47: error: ‘BN_init’ was not declared in this scope CBigNum(int n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(long int)’: bignum.hpp:97:47: error: ‘BN_init’ was not declared in this scope CBigNum(long n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(int64)’: bignum.hpp:98:47: error: ‘BN_init’ was not declared in this scope CBigNum(int64 n) { BN_init(this); setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(unsigned char)’: bignum.hpp:99:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned char n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(short unsigned int)’: bignum.hpp:100:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned short n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(unsigned int)’: bignum.hpp:101:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned int n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(long unsigned int)’: bignum.hpp:102:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned long n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(uint64)’: bignum.hpp:103:47: error: ‘BN_init’ was not declared in this scope CBigNum(uint64 n) { BN_init(this); setuint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(uint256)’: bignum.hpp:104:47: error: ‘BN_init’ was not declared in this scope explicit CBigNum(uint256 n) { BN_init(this); setuint256(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(const std::vector<unsigned char>&)’: bignum.hpp:108:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp: In member function ‘void CBigNum::setulong(long unsigned int)’: bignum.hpp:114:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ if (!BN_set_word(this, n)) ^ bignum.hpp: In member function ‘long unsigned int CBigNum::getulong() const’: bignum.hpp:120:48: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return (unsigned long) BN_get_word(this); ^ bignum.hpp: In member function ‘unsigned int CBigNum::getuint() const’: bignum.hpp:125:47: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return (unsigned int) BN_get_word(this); ^ bignum.hpp: In member function ‘int CBigNum::getint() const’: bignum.hpp:130:59: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ unsigned long n = (unsigned long) BN_get_word(this); ^ bignum.hpp:131:33: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (!BN_is_negative(this)) ^ In file included from bignum.cpp:8:0: bignum.hpp: In member function ‘void CBigNum::setint64(int64)’: bignum.hpp:179:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘void CBigNum::setuint64(uint64)’: bignum.hpp:206:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘void CBigNum::setuint256(uint256)’: bignum.hpp:234:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘uint256 CBigNum::getuint256() const’: bignum.hpp:239:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ bignum.hpp:243:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ bignum.hpp: In member function ‘void CBigNum::setvch(const std::vector<unsigned char>&)’: bignum.hpp:264:52: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(&vch2[0], (int) vch2.size(), this); ^ bignum.hpp: In member function ‘std::vector<unsigned char> CBigNum::getvch() const’: bignum.hpp:269:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ bignum.hpp:273:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::SetCompact(unsigned int)’: bignum.hpp:309:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ BN_set_word(this, nWord); ^ bignum.hpp:313:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ BN_set_word(this, nWord); ^ bignum.hpp:314:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ BN_lshift(this, this, 8*(nSize-3)); ^ bignum.hpp:316:40: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’ BN_set_negative(this, fNegative); ^ In file included from bignum.hpp:20:0, from bignum.cpp:8: bignum.hpp: In member function ‘unsigned int CBigNum::GetCompact() const’: bignum.hpp:322:30: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_num_bits(const BIGNUM*)’ unsigned int nSize = BN_num_bytes(this); ^ In file included from bignum.cpp:8:0: bignum.hpp:325:55: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ nCompact = (unsigned int) BN_get_word(this) << 8*(3-nSize); ^ bignum.hpp:329:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’ BN_rshift(&bn, this, 8*(nSize-3)); ^ bignum.hpp:330:54: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ nCompact = (unsigned int) BN_get_word(&bn); ^ bignum.hpp:340:41: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ nCompact |= (BN_is_negative(this) ? 0x00800000 : 0); ^ In file included from bignum.cpp:8:0: bignum.hpp: In member function ‘std::__cxx11::string CBigNum::ToString(int) const’: bignum.hpp:381:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’ BN_set_negative(&bn, false); ^ bignum.hpp:384:29: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ if (BN_cmp(&bn, &bn0) == 0) ^ bignum.hpp:386:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ while (BN_cmp(&bn, &bn0) > 0) ^ bignum.hpp:388:54: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_div(&dv, &rem, &bn, &bnBase, pctx)) ^ bignum.hpp:394:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (BN_is_negative(this)) ^ bignum.hpp: In member function ‘bool CBigNum::operator!() const’: bignum.hpp:427:31: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_zero(const BIGNUM*)’ return BN_is_zero(this); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’: bignum.hpp:432:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(this, this, &b)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’: bignum.hpp:446:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mul(this, this, &b, pctx)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator<<=(unsigned int)’: bignum.hpp:465:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(this, this, shift)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator>>=(unsigned int)’: bignum.hpp:476:28: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ if (BN_cmp(&a, this) > 0) ^ bignum.hpp:482:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_rshift(this, this, shift)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator++()’: bignum.hpp:491:47: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(this, this, BN_value_one())) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator--()’: bignum.hpp:508:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, this, BN_value_one())) ^ bignum.hpp: In function ‘const CBigNum operator+(const CBigNum&, const CBigNum&)’: bignum.hpp:533:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(&r, &a, &b)) ^ bignum.hpp: In function ‘const CBigNum operator-(const CBigNum&, const CBigNum&)’: bignum.hpp:541:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, &a, &b)) ^ bignum.hpp: In function ‘const CBigNum operator-(const CBigNum&)’: bignum.hpp:549:43: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ BN_set_negative(&r, !BN_is_negative(&r)); ^ bignum.hpp: In function ‘const CBigNum operator*(const CBigNum&, const CBigNum&)’: bignum.hpp:557:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mul(&r, &a, &b, pctx)) ^ bignum.hpp: In function ‘const CBigNum operator/(const CBigNum&, const CBigNum&)’: bignum.hpp:566:39: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_div(&r, NULL, &a, &b, pctx)) ^ In file included from bignum.hpp:20:0, from bignum.cpp:8: bignum.hpp: In function ‘const CBigNum operator%(const CBigNum&, const CBigNum&)’: bignum.hpp:575:10: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘2’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mod(&r, &a, &b, pctx)) ^ In file included from bignum.cpp:8:0: bignum.hpp: In function ‘const CBigNum operator<<(const CBigNum&, unsigned int)’: bignum.hpp:583:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(&r, &a, shift)) ^ bignum.hpp: In function ‘bool operator==(const CBigNum&, const CBigNum&)’: bignum.hpp:595:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); } ^ bignum.hpp: In function ‘bool operator!=(const CBigNum&, const CBigNum&)’: bignum.hpp:596:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); } ^ bignum.hpp: In function ‘bool operator<=(const CBigNum&, const CBigNum&)’: bignum.hpp:597:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); } ^ bignum.hpp: In function ‘bool operator>=(const CBigNum&, const CBigNum&)’: bignum.hpp:598:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); } ^ bignum.hpp: In function ‘bool operator<(const CBigNum&, const CBigNum&)’: bignum.hpp:599:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); } ^ bignum.hpp: In function ‘bool operator>(const CBigNum&, const CBigNum&)’: bignum.hpp:600:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) > 0); } ^ Makefile:1795: recipe for target 'ccminer-bignum.o' failed make[2]: *** [ccminer-bignum.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/ccminer-api.Tpo .deps/ccminer-api.Po mv -f .deps/ccminer-util.Tpo .deps/ccminer-util.Po mv -f .deps/ccminer-ccminer.Tpo .deps/ccminer-ccminer.Po make[2]: Leaving directory '/home/m1/TPccminer' Makefile:2165: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/m1/TPccminer' Makefile:654: recipe for target 'all' failed make: *** [all] Error 2 m1@19_1_4:~/TPccminer$ We already have TPccminer right? Are you trying to compile latest version? for that SSL error we already have a fix. http://nvoc-mining-os.com/2017/11/13/add-ccminer-xevan-nvoc/Just start from the 2nd step only, also make sure you put the old one 'bn.h' file back. 2. bignum.hpp:491:47: error: cannot convert ‘CBigNum’ to ‘BIGNUM’ You will need to change the ssl version. wget http://www.openssl.org/source/openssl-1.0.1e.tar.gztar -xvzf openssl-1.0.1e.tar.gz cp /usr/local/include/openssl/bn.h bn.h.backup sudo cp openssl-1.0.1e/crypto/bn/bn.h /usr/local/include/openssl/ Now go to the xevan folder and do ./build.sh IMPORTANT: you need to replace the new SSL with the old one again!! cd /usr/local/include/openssl/ sudo rm bn.h sudo cp bn.h.bkp bn.h Would suggest you to go to that site, its more clear formatting wise.
|
|
|
|
damNmad
Full Member
Offline
Activity: 378
Merit: 104
nvOC forever
|
|
November 15, 2017, 01:38:51 PM |
|
Sure. I just compiled it up so I could see how to answer this question. There are a couple of tweaks that are already covered here but here they are again in a non-obfuscated fashion. I am assuming you tried running build.sh and it failed like it did for me the first time. The tweaks are: 1) The version of bn.h at /usr/local/include/openssl/bn.h is problematic so we need to put the correct one in that location. First, in a temporary directory off of /home/m1 (I use XXX in example): from /home/m1/XXX do a wget to get a proper openssl: wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz tar zxvf openssl-1.0.1g.tar.gz Make backup of bh.h and copy over the new version sudo mv /usr/local/include/openssl/bn.h /usr/local/include/openssl/bn.h.old sudo cp /home/m1/XXX/openssl-1.0.1g/crypto/bn/bn.h /usr/local/include/openssl/ 2) The location of the cuda libraries in configure.sh doesn't match nvOC so we need to change it: cd /home/m1/XXX/ccminer-xevan-master vi configure.sh change CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda-7.5 --with-nvml=libnvidia-ml.so to CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda --with-nvml=libnvidia-ml.so after that, you should be able to build normally by executing build.sh Hope this helps. Edit: You can download the version I compiled up from here: http://www.cstone.net/~stu/nvOC/miners/ccminer-xevan.tar.gzYou are right, I got the same error you mentioned above and I try on the version you provided, it working great thank you so much Can I ask which coins you use ccminer-xevan for and what are the hash rate difference compare to nvOC default miners? mine rig is around 27MH/s with -i 19 on 13x1060, still trying on few coins VSX, AmsterdamCoin Ural & BitSend Good to know other coins too, i only know BSD so far you mind sharing your OC settings while mining xevan, i also use 1060 too so Thanks in advance. my rig core=150 memory=100 in 1bash, ccminer add -i 19 is working on my rig , but im not sure is the best setting What is the power limit?? I using 64 PL currently, getting around 15.42 MH with my 8x1060 I've pushed my 1060 to -i 21 still working fine, i need to lower my memory as well (currently on +500). Thanks for sharing your OC info
|
|
|
|
papabiz
Member
Offline
Activity: 96
Merit: 10
|
|
November 15, 2017, 01:56:48 PM |
|
It is not possible to compile TPccminer by running ./build.sh with nvOC. It has probably something to do with the openssl version ~ anyone has a fix for it? m1@19_1_4:~/TPccminer$ ./build.sh Making distclean in compat make[1]: Entering directory '/home/m1/TPccminer/compat' Making distclean in jansson make[2]: Entering directory '/home/m1/TPccminer/compat/jansson' test -z "libjansson.a" || rm -f libjansson.a rm -f *.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -rf ./.deps rm -f Makefile make[2]: Leaving directory '/home/m1/TPccminer/compat/jansson' make[2]: Entering directory '/home/m1/TPccminer/compat' test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags make[2]: Leaving directory '/home/m1/TPccminer/compat' rm -f Makefile make[1]: Leaving directory '/home/m1/TPccminer/compat' make[1]: Entering directory '/home/m1/TPccminer' test -z "ccminer" || rm -f ccminer rm -f *.o rm -f Algo256/*.o rm -f JHA/*.o rm -f compat/*.o rm -f crypto/*.o rm -f crypto/cpu/*.o rm -f equi/*.o rm -f equi/blake2/*.o rm -f heavy/*.o rm -f lbry/*.o rm -f lyra2/*.o rm -f neoscrypt/*.o rm -f quark/*.o rm -f qubit/*.o rm -f scrypt/*.o rm -f sha256/*.o rm -f sia/*.o rm -f skunk/*.o rm -f sph/*.o rm -f x11/*.o rm -f x13/*.o rm -f x15/*.o rm -f x17/*.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f Algo256/.deps/.dirstamp rm -f Algo256/.dirstamp rm -f JHA/.deps/.dirstamp rm -f JHA/.dirstamp rm -f compat/.deps/.dirstamp rm -f compat/.dirstamp rm -f crypto/.deps/.dirstamp rm -f crypto/.dirstamp rm -f crypto/cpu/.deps/.dirstamp rm -f crypto/cpu/.dirstamp rm -f equi/.deps/.dirstamp rm -f equi/.dirstamp rm -f equi/blake2/.deps/.dirstamp rm -f equi/blake2/.dirstamp rm -f heavy/.deps/.dirstamp rm -f heavy/.dirstamp rm -f lbry/.deps/.dirstamp rm -f lbry/.dirstamp rm -f lyra2/.deps/.dirstamp rm -f lyra2/.dirstamp rm -f neoscrypt/.deps/.dirstamp rm -f neoscrypt/.dirstamp rm -f quark/.deps/.dirstamp rm -f quark/.dirstamp rm -f qubit/.deps/.dirstamp rm -f qubit/.dirstamp rm -f scrypt/.deps/.dirstamp rm -f scrypt/.dirstamp rm -f sha256/.deps/.dirstamp rm -f sha256/.dirstamp rm -f sia/.deps/.dirstamp rm -f sia/.dirstamp rm -f skunk/.deps/.dirstamp rm -f skunk/.dirstamp rm -f sph/.deps/.dirstamp rm -f sph/.dirstamp rm -f x11/.deps/.dirstamp rm -f x11/.dirstamp rm -f x13/.deps/.dirstamp rm -f x13/.dirstamp rm -f x15/.deps/.dirstamp rm -f x15/.dirstamp rm -f x17/.deps/.dirstamp rm -f x17/.dirstamp rm -f ccminer-config.h stamp-h1 rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f cscope.out cscope.in.out cscope.po.out cscope.files make[1]: Leaving directory '/home/m1/TPccminer' rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -rf ./.deps compat/.deps crypto/.deps crypto/cpu/.deps equi/.deps equi/blake2/.deps lyra2/.deps neoscrypt/.deps sia/.deps sph/.deps rm -f Makefile checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking whether gcc needs -traditional... no checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for gcc option to support OpenMP... -fopenmp checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/endian.h usability... no checking sys/endian.h presence... no checking for sys/endian.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for sys/sysctl.h... yes checking whether be32dec is declared... no checking whether le32dec is declared... no checking whether be32enc is declared... no checking whether le32enc is declared... no checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for getopt_long... yes checking for json_loads in -ljansson... yes checking for pthread_create in -lpthread... yes checking for gzopen in -lz... yes checking for SSL_library_init in -lssl... yes checking for EVP_DigestFinal_ex in -lcrypto... yes checking for gawk... (cached) mawk checking for curl-config... /usr/bin/curl-config checking for the version of libcurl... 7.47.0 checking for libcurl >= version 7.15.2... yes checking whether libcurl is usable... yes checking for curl_free... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating compat/Makefile config.status: creating compat/jansson/Makefile config.status: creating ccminer-config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory '/home/m1/TPccminer' Making all in compat make[2]: Entering directory '/home/m1/TPccminer/compat' make[3]: Entering directory '/home/m1/TPccminer/compat' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/m1/TPccminer/compat' make[2]: Leaving directory '/home/m1/TPccminer/compat' make[2]: Entering directory '/home/m1/TPccminer' gcc -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -g -O2 -MT ccminer-crc32.o -MD -MP -MF .deps/ccminer-crc32.Tpo -c -o ccminer-crc32.o `test -f 'crc32.c' || echo './'`crc32.c gcc -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -g -O2 -MT ccminer-hefty1.o -MD -MP -MF .deps/ccminer-hefty1.Tpo -c -o ccminer-hefty1.o `test -f 'hefty1.c' || echo './'`hefty1.c g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-ccminer.o -MD -MP -MF .deps/ccminer-ccminer.Tpo -c -o ccminer-ccminer.o `test -f 'ccminer.cpp' || echo './'`ccminer.cpp g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-pools.o -MD -MP -MF .deps/ccminer-pools.Tpo -c -o ccminer-pools.o `test -f 'pools.cpp' || echo './'`pools.cpp mv -f .deps/ccminer-crc32.Tpo .deps/ccminer-crc32.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-util.o -MD -MP -MF .deps/ccminer-util.Tpo -c -o ccminer-util.o `test -f 'util.cpp' || echo './'`util.cpp mv -f .deps/ccminer-hefty1.Tpo .deps/ccminer-hefty1.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-bench.o -MD -MP -MF .deps/ccminer-bench.Tpo -c -o ccminer-bench.o `test -f 'bench.cpp' || echo './'`bench.cpp mv -f .deps/ccminer-pools.Tpo .deps/ccminer-pools.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-bignum.o -MD -MP -MF .deps/ccminer-bignum.Tpo -c -o ccminer-bignum.o `test -f 'bignum.cpp' || echo './'`bignum.cpp mv -f .deps/ccminer-bench.Tpo .deps/ccminer-bench.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-api.o -MD -MP -MF .deps/ccminer-api.Tpo -c -o ccminer-api.o `test -f 'api.cpp' || echo './'`api.cpp In file included from bignum.cpp:8:0: bignum.hpp:63:24: error: invalid use of incomplete type ‘BIGNUM {aka struct bignum_st}’ class CBigNum : public BIGNUM ^ In file included from /usr/local/include/openssl/bn.h:32:0, from bignum.hpp:20, from bignum.cpp:8: /usr/local/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’ typedef struct bignum_st BIGNUM; ^ In file included from bignum.cpp:8:0: bignum.hpp: In constructor ‘CBigNum::CBigNum()’: bignum.hpp:68:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’: bignum.hpp:73:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp:74:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’ if (!BN_copy(this, &b)) ^ bignum.hpp:76:31: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator=(const CBigNum&)’: bignum.hpp:83:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’ if (!BN_copy(this, &b)) ^ bignum.hpp: In destructor ‘CBigNum::~CBigNum()’: bignum.hpp:90:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(signed char)’: bignum.hpp:94:47: error: ‘BN_init’ was not declared in this scope CBigNum(signed char n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(short int)’: bignum.hpp:95:47: error: ‘BN_init’ was not declared in this scope CBigNum(short n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(int)’: bignum.hpp:96:47: error: ‘BN_init’ was not declared in this scope CBigNum(int n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(long int)’: bignum.hpp:97:47: error: ‘BN_init’ was not declared in this scope CBigNum(long n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(int64)’: bignum.hpp:98:47: error: ‘BN_init’ was not declared in this scope CBigNum(int64 n) { BN_init(this); setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(unsigned char)’: bignum.hpp:99:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned char n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(short unsigned int)’: bignum.hpp:100:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned short n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(unsigned int)’: bignum.hpp:101:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned int n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(long unsigned int)’: bignum.hpp:102:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned long n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(uint64)’: bignum.hpp:103:47: error: ‘BN_init’ was not declared in this scope CBigNum(uint64 n) { BN_init(this); setuint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(uint256)’: bignum.hpp:104:47: error: ‘BN_init’ was not declared in this scope explicit CBigNum(uint256 n) { BN_init(this); setuint256(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(const std::vector<unsigned char>&)’: bignum.hpp:108:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp: In member function ‘void CBigNum::setulong(long unsigned int)’: bignum.hpp:114:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ if (!BN_set_word(this, n)) ^ bignum.hpp: In member function ‘long unsigned int CBigNum::getulong() const’: bignum.hpp:120:48: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return (unsigned long) BN_get_word(this); ^ bignum.hpp: In member function ‘unsigned int CBigNum::getuint() const’: bignum.hpp:125:47: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return (unsigned int) BN_get_word(this); ^ bignum.hpp: In member function ‘int CBigNum::getint() const’: bignum.hpp:130:59: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ unsigned long n = (unsigned long) BN_get_word(this); ^ bignum.hpp:131:33: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (!BN_is_negative(this)) ^ In file included from bignum.cpp:8:0: bignum.hpp: In member function ‘void CBigNum::setint64(int64)’: bignum.hpp:179:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘void CBigNum::setuint64(uint64)’: bignum.hpp:206:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘void CBigNum::setuint256(uint256)’: bignum.hpp:234:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘uint256 CBigNum::getuint256() const’: bignum.hpp:239:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ bignum.hpp:243:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ bignum.hpp: In member function ‘void CBigNum::setvch(const std::vector<unsigned char>&)’: bignum.hpp:264:52: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(&vch2[0], (int) vch2.size(), this); ^ bignum.hpp: In member function ‘std::vector<unsigned char> CBigNum::getvch() const’: bignum.hpp:269:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ bignum.hpp:273:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::SetCompact(unsigned int)’: bignum.hpp:309:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ BN_set_word(this, nWord); ^ bignum.hpp:313:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ BN_set_word(this, nWord); ^ bignum.hpp:314:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ BN_lshift(this, this, 8*(nSize-3)); ^ bignum.hpp:316:40: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’ BN_set_negative(this, fNegative); ^ In file included from bignum.hpp:20:0, from bignum.cpp:8: bignum.hpp: In member function ‘unsigned int CBigNum::GetCompact() const’: bignum.hpp:322:30: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_num_bits(const BIGNUM*)’ unsigned int nSize = BN_num_bytes(this); ^ In file included from bignum.cpp:8:0: bignum.hpp:325:55: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ nCompact = (unsigned int) BN_get_word(this) << 8*(3-nSize); ^ bignum.hpp:329:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’ BN_rshift(&bn, this, 8*(nSize-3)); ^ bignum.hpp:330:54: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ nCompact = (unsigned int) BN_get_word(&bn); ^ bignum.hpp:340:41: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ nCompact |= (BN_is_negative(this) ? 0x00800000 : 0); ^ In file included from bignum.cpp:8:0: bignum.hpp: In member function ‘std::__cxx11::string CBigNum::ToString(int) const’: bignum.hpp:381:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’ BN_set_negative(&bn, false); ^ bignum.hpp:384:29: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ if (BN_cmp(&bn, &bn0) == 0) ^ bignum.hpp:386:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ while (BN_cmp(&bn, &bn0) > 0) ^ bignum.hpp:388:54: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_div(&dv, &rem, &bn, &bnBase, pctx)) ^ bignum.hpp:394:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (BN_is_negative(this)) ^ bignum.hpp: In member function ‘bool CBigNum::operator!() const’: bignum.hpp:427:31: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_zero(const BIGNUM*)’ return BN_is_zero(this); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’: bignum.hpp:432:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(this, this, &b)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’: bignum.hpp:446:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mul(this, this, &b, pctx)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator<<=(unsigned int)’: bignum.hpp:465:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(this, this, shift)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator>>=(unsigned int)’: bignum.hpp:476:28: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ if (BN_cmp(&a, this) > 0) ^ bignum.hpp:482:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_rshift(this, this, shift)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator++()’: bignum.hpp:491:47: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(this, this, BN_value_one())) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator--()’: bignum.hpp:508:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, this, BN_value_one())) ^ bignum.hpp: In function ‘const CBigNum operator+(const CBigNum&, const CBigNum&)’: bignum.hpp:533:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(&r, &a, &b)) ^ bignum.hpp: In function ‘const CBigNum operator-(const CBigNum&, const CBigNum&)’: bignum.hpp:541:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, &a, &b)) ^ bignum.hpp: In function ‘const CBigNum operator-(const CBigNum&)’: bignum.hpp:549:43: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ BN_set_negative(&r, !BN_is_negative(&r)); ^ bignum.hpp: In function ‘const CBigNum operator*(const CBigNum&, const CBigNum&)’: bignum.hpp:557:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mul(&r, &a, &b, pctx)) ^ bignum.hpp: In function ‘const CBigNum operator/(const CBigNum&, const CBigNum&)’: bignum.hpp:566:39: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_div(&r, NULL, &a, &b, pctx)) ^ In file included from bignum.hpp:20:0, from bignum.cpp:8: bignum.hpp: In function ‘const CBigNum operator%(const CBigNum&, const CBigNum&)’: bignum.hpp:575:10: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘2’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mod(&r, &a, &b, pctx)) ^ In file included from bignum.cpp:8:0: bignum.hpp: In function ‘const CBigNum operator<<(const CBigNum&, unsigned int)’: bignum.hpp:583:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(&r, &a, shift)) ^ bignum.hpp: In function ‘bool operator==(const CBigNum&, const CBigNum&)’: bignum.hpp:595:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); } ^ bignum.hpp: In function ‘bool operator!=(const CBigNum&, const CBigNum&)’: bignum.hpp:596:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); } ^ bignum.hpp: In function ‘bool operator<=(const CBigNum&, const CBigNum&)’: bignum.hpp:597:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); } ^ bignum.hpp: In function ‘bool operator>=(const CBigNum&, const CBigNum&)’: bignum.hpp:598:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); } ^ bignum.hpp: In function ‘bool operator<(const CBigNum&, const CBigNum&)’: bignum.hpp:599:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); } ^ bignum.hpp: In function ‘bool operator>(const CBigNum&, const CBigNum&)’: bignum.hpp:600:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) > 0); } ^ Makefile:1795: recipe for target 'ccminer-bignum.o' failed make[2]: *** [ccminer-bignum.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/ccminer-api.Tpo .deps/ccminer-api.Po mv -f .deps/ccminer-util.Tpo .deps/ccminer-util.Po mv -f .deps/ccminer-ccminer.Tpo .deps/ccminer-ccminer.Po make[2]: Leaving directory '/home/m1/TPccminer' Makefile:2165: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/m1/TPccminer' Makefile:654: recipe for target 'all' failed make: *** [all] Error 2 m1@19_1_4:~/TPccminer$ We already have TPccminer right? Are you trying to compile latest version? for that SSL error we already have a fix. http://nvoc-mining-os.com/2017/11/13/add-ccminer-xevan-nvoc/Just start from the 2nd step only, also make sure you put the old one 'bn.h' file back. 2. bignum.hpp:491:47: error: cannot convert ‘CBigNum’ to ‘BIGNUM’ You will need to change the ssl version. wget http://www.openssl.org/source/openssl-1.0.1e.tar.gztar -xvzf openssl-1.0.1e.tar.gz cp /usr/local/include/openssl/bn.h bn.h.backup sudo cp openssl-1.0.1e/crypto/bn/bn.h /usr/local/include/openssl/ Now go to the xevan folder and do ./build.sh IMPORTANT: you need to replace the new SSL with the old one again!! cd /usr/local/include/openssl/ sudo rm bn.h sudo cp bn.h.bkp bn.h Would suggest you to go to that site, its more clear formatting wise. Works like a charm, thanks damNmad Edit: Yes we already have TPcc, but I made changes to it and wanted to recompile.
|
|
|
|
oktoshiimin
Member
Offline
Activity: 82
Merit: 10
|
|
November 15, 2017, 01:57:49 PM |
|
i keep the power limit at 75 untouch i did -i 21 before, rig stop after few hour
|
|
|
|
damNmad
Full Member
Offline
Activity: 378
Merit: 104
nvOC forever
|
|
November 15, 2017, 02:11:46 PM |
|
i keep the power limit at 75 untouch i did -i 21 before, rig stop after few hour
Ah ok, its better to let it run on 19 then, probably I should try as well. Coming to power limit, i have checked, its not using much anyway, so doesn't matter how much we limit it to (as long as its not lower than what it is currently using). Thanks.
|
|
|
|
damNmad
Full Member
Offline
Activity: 378
Merit: 104
nvOC forever
|
|
November 15, 2017, 02:13:35 PM |
|
It is not possible to compile TPccminer by running ./build.sh with nvOC. It has probably something to do with the openssl version ~ anyone has a fix for it? m1@19_1_4:~/TPccminer$ ./build.sh Making distclean in compat make[1]: Entering directory '/home/m1/TPccminer/compat' Making distclean in jansson make[2]: Entering directory '/home/m1/TPccminer/compat/jansson' test -z "libjansson.a" || rm -f libjansson.a rm -f *.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -rf ./.deps rm -f Makefile make[2]: Leaving directory '/home/m1/TPccminer/compat/jansson' make[2]: Entering directory '/home/m1/TPccminer/compat' test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags make[2]: Leaving directory '/home/m1/TPccminer/compat' rm -f Makefile make[1]: Leaving directory '/home/m1/TPccminer/compat' make[1]: Entering directory '/home/m1/TPccminer' test -z "ccminer" || rm -f ccminer rm -f *.o rm -f Algo256/*.o rm -f JHA/*.o rm -f compat/*.o rm -f crypto/*.o rm -f crypto/cpu/*.o rm -f equi/*.o rm -f equi/blake2/*.o rm -f heavy/*.o rm -f lbry/*.o rm -f lyra2/*.o rm -f neoscrypt/*.o rm -f quark/*.o rm -f qubit/*.o rm -f scrypt/*.o rm -f sha256/*.o rm -f sia/*.o rm -f skunk/*.o rm -f sph/*.o rm -f x11/*.o rm -f x13/*.o rm -f x15/*.o rm -f x17/*.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f Algo256/.deps/.dirstamp rm -f Algo256/.dirstamp rm -f JHA/.deps/.dirstamp rm -f JHA/.dirstamp rm -f compat/.deps/.dirstamp rm -f compat/.dirstamp rm -f crypto/.deps/.dirstamp rm -f crypto/.dirstamp rm -f crypto/cpu/.deps/.dirstamp rm -f crypto/cpu/.dirstamp rm -f equi/.deps/.dirstamp rm -f equi/.dirstamp rm -f equi/blake2/.deps/.dirstamp rm -f equi/blake2/.dirstamp rm -f heavy/.deps/.dirstamp rm -f heavy/.dirstamp rm -f lbry/.deps/.dirstamp rm -f lbry/.dirstamp rm -f lyra2/.deps/.dirstamp rm -f lyra2/.dirstamp rm -f neoscrypt/.deps/.dirstamp rm -f neoscrypt/.dirstamp rm -f quark/.deps/.dirstamp rm -f quark/.dirstamp rm -f qubit/.deps/.dirstamp rm -f qubit/.dirstamp rm -f scrypt/.deps/.dirstamp rm -f scrypt/.dirstamp rm -f sha256/.deps/.dirstamp rm -f sha256/.dirstamp rm -f sia/.deps/.dirstamp rm -f sia/.dirstamp rm -f skunk/.deps/.dirstamp rm -f skunk/.dirstamp rm -f sph/.deps/.dirstamp rm -f sph/.dirstamp rm -f x11/.deps/.dirstamp rm -f x11/.dirstamp rm -f x13/.deps/.dirstamp rm -f x13/.dirstamp rm -f x15/.deps/.dirstamp rm -f x15/.dirstamp rm -f x17/.deps/.dirstamp rm -f x17/.dirstamp rm -f ccminer-config.h stamp-h1 rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f cscope.out cscope.in.out cscope.po.out cscope.files make[1]: Leaving directory '/home/m1/TPccminer' rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -rf ./.deps compat/.deps crypto/.deps crypto/cpu/.deps equi/.deps equi/blake2/.deps lyra2/.deps neoscrypt/.deps sia/.deps sph/.deps rm -f Makefile checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking whether gcc needs -traditional... no checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for gcc option to support OpenMP... -fopenmp checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/endian.h usability... no checking sys/endian.h presence... no checking for sys/endian.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for sys/sysctl.h... yes checking whether be32dec is declared... no checking whether le32dec is declared... no checking whether be32enc is declared... no checking whether le32enc is declared... no checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for getopt_long... yes checking for json_loads in -ljansson... yes checking for pthread_create in -lpthread... yes checking for gzopen in -lz... yes checking for SSL_library_init in -lssl... yes checking for EVP_DigestFinal_ex in -lcrypto... yes checking for gawk... (cached) mawk checking for curl-config... /usr/bin/curl-config checking for the version of libcurl... 7.47.0 checking for libcurl >= version 7.15.2... yes checking whether libcurl is usable... yes checking for curl_free... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating compat/Makefile config.status: creating compat/jansson/Makefile config.status: creating ccminer-config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory '/home/m1/TPccminer' Making all in compat make[2]: Entering directory '/home/m1/TPccminer/compat' make[3]: Entering directory '/home/m1/TPccminer/compat' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/m1/TPccminer/compat' make[2]: Leaving directory '/home/m1/TPccminer/compat' make[2]: Entering directory '/home/m1/TPccminer' gcc -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -g -O2 -MT ccminer-crc32.o -MD -MP -MF .deps/ccminer-crc32.Tpo -c -o ccminer-crc32.o `test -f 'crc32.c' || echo './'`crc32.c gcc -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -g -O2 -MT ccminer-hefty1.o -MD -MP -MF .deps/ccminer-hefty1.Tpo -c -o ccminer-hefty1.o `test -f 'hefty1.c' || echo './'`hefty1.c g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-ccminer.o -MD -MP -MF .deps/ccminer-ccminer.Tpo -c -o ccminer-ccminer.o `test -f 'ccminer.cpp' || echo './'`ccminer.cpp g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-pools.o -MD -MP -MF .deps/ccminer-pools.Tpo -c -o ccminer-pools.o `test -f 'pools.cpp' || echo './'`pools.cpp mv -f .deps/ccminer-crc32.Tpo .deps/ccminer-crc32.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-util.o -MD -MP -MF .deps/ccminer-util.Tpo -c -o ccminer-util.o `test -f 'util.cpp' || echo './'`util.cpp mv -f .deps/ccminer-hefty1.Tpo .deps/ccminer-hefty1.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-bench.o -MD -MP -MF .deps/ccminer-bench.Tpo -c -o ccminer-bench.o `test -f 'bench.cpp' || echo './'`bench.cpp mv -f .deps/ccminer-pools.Tpo .deps/ccminer-pools.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-bignum.o -MD -MP -MF .deps/ccminer-bignum.Tpo -c -o ccminer-bignum.o `test -f 'bignum.cpp' || echo './'`bignum.cpp mv -f .deps/ccminer-bench.Tpo .deps/ccminer-bench.Po g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-api.o -MD -MP -MF .deps/ccminer-api.Tpo -c -o ccminer-api.o `test -f 'api.cpp' || echo './'`api.cpp In file included from bignum.cpp:8:0: bignum.hpp:63:24: error: invalid use of incomplete type ‘BIGNUM {aka struct bignum_st}’ class CBigNum : public BIGNUM ^ In file included from /usr/local/include/openssl/bn.h:32:0, from bignum.hpp:20, from bignum.cpp:8: /usr/local/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’ typedef struct bignum_st BIGNUM; ^ In file included from bignum.cpp:8:0: bignum.hpp: In constructor ‘CBigNum::CBigNum()’: bignum.hpp:68:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’: bignum.hpp:73:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp:74:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’ if (!BN_copy(this, &b)) ^ bignum.hpp:76:31: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator=(const CBigNum&)’: bignum.hpp:83:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’ if (!BN_copy(this, &b)) ^ bignum.hpp: In destructor ‘CBigNum::~CBigNum()’: bignum.hpp:90:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(signed char)’: bignum.hpp:94:47: error: ‘BN_init’ was not declared in this scope CBigNum(signed char n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(short int)’: bignum.hpp:95:47: error: ‘BN_init’ was not declared in this scope CBigNum(short n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(int)’: bignum.hpp:96:47: error: ‘BN_init’ was not declared in this scope CBigNum(int n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(long int)’: bignum.hpp:97:47: error: ‘BN_init’ was not declared in this scope CBigNum(long n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(int64)’: bignum.hpp:98:47: error: ‘BN_init’ was not declared in this scope CBigNum(int64 n) { BN_init(this); setint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(unsigned char)’: bignum.hpp:99:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned char n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(short unsigned int)’: bignum.hpp:100:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned short n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(unsigned int)’: bignum.hpp:101:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned int n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(long unsigned int)’: bignum.hpp:102:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned long n) { BN_init(this); setulong(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(uint64)’: bignum.hpp:103:47: error: ‘BN_init’ was not declared in this scope CBigNum(uint64 n) { BN_init(this); setuint64(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(uint256)’: bignum.hpp:104:47: error: ‘BN_init’ was not declared in this scope explicit CBigNum(uint256 n) { BN_init(this); setuint256(n); } ^ bignum.hpp: In constructor ‘CBigNum::CBigNum(const std::vector<unsigned char>&)’: bignum.hpp:108:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ bignum.hpp: In member function ‘void CBigNum::setulong(long unsigned int)’: bignum.hpp:114:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ if (!BN_set_word(this, n)) ^ bignum.hpp: In member function ‘long unsigned int CBigNum::getulong() const’: bignum.hpp:120:48: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return (unsigned long) BN_get_word(this); ^ bignum.hpp: In member function ‘unsigned int CBigNum::getuint() const’: bignum.hpp:125:47: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return (unsigned int) BN_get_word(this); ^ bignum.hpp: In member function ‘int CBigNum::getint() const’: bignum.hpp:130:59: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ unsigned long n = (unsigned long) BN_get_word(this); ^ bignum.hpp:131:33: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (!BN_is_negative(this)) ^ In file included from bignum.cpp:8:0: bignum.hpp: In member function ‘void CBigNum::setint64(int64)’: bignum.hpp:179:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘void CBigNum::setuint64(uint64)’: bignum.hpp:206:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘void CBigNum::setuint256(uint256)’: bignum.hpp:234:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, (int) (p - pch), this); ^ bignum.hpp: In member function ‘uint256 CBigNum::getuint256() const’: bignum.hpp:239:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ bignum.hpp:243:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ bignum.hpp: In member function ‘void CBigNum::setvch(const std::vector<unsigned char>&)’: bignum.hpp:264:52: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(&vch2[0], (int) vch2.size(), this); ^ bignum.hpp: In member function ‘std::vector<unsigned char> CBigNum::getvch() const’: bignum.hpp:269:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ bignum.hpp:273:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::SetCompact(unsigned int)’: bignum.hpp:309:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ BN_set_word(this, nWord); ^ bignum.hpp:313:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ BN_set_word(this, nWord); ^ bignum.hpp:314:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ BN_lshift(this, this, 8*(nSize-3)); ^ bignum.hpp:316:40: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’ BN_set_negative(this, fNegative); ^ In file included from bignum.hpp:20:0, from bignum.cpp:8: bignum.hpp: In member function ‘unsigned int CBigNum::GetCompact() const’: bignum.hpp:322:30: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_num_bits(const BIGNUM*)’ unsigned int nSize = BN_num_bytes(this); ^ In file included from bignum.cpp:8:0: bignum.hpp:325:55: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ nCompact = (unsigned int) BN_get_word(this) << 8*(3-nSize); ^ bignum.hpp:329:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’ BN_rshift(&bn, this, 8*(nSize-3)); ^ bignum.hpp:330:54: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ nCompact = (unsigned int) BN_get_word(&bn); ^ bignum.hpp:340:41: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ nCompact |= (BN_is_negative(this) ? 0x00800000 : 0); ^ In file included from bignum.cpp:8:0: bignum.hpp: In member function ‘std::__cxx11::string CBigNum::ToString(int) const’: bignum.hpp:381:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’ BN_set_negative(&bn, false); ^ bignum.hpp:384:29: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ if (BN_cmp(&bn, &bn0) == 0) ^ bignum.hpp:386:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ while (BN_cmp(&bn, &bn0) > 0) ^ bignum.hpp:388:54: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_div(&dv, &rem, &bn, &bnBase, pctx)) ^ bignum.hpp:394:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (BN_is_negative(this)) ^ bignum.hpp: In member function ‘bool CBigNum::operator!() const’: bignum.hpp:427:31: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_zero(const BIGNUM*)’ return BN_is_zero(this); ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’: bignum.hpp:432:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(this, this, &b)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’: bignum.hpp:446:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mul(this, this, &b, pctx)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator<<=(unsigned int)’: bignum.hpp:465:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(this, this, shift)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator>>=(unsigned int)’: bignum.hpp:476:28: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ if (BN_cmp(&a, this) > 0) ^ bignum.hpp:482:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_rshift(this, this, shift)) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator++()’: bignum.hpp:491:47: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(this, this, BN_value_one())) ^ bignum.hpp: In member function ‘CBigNum& CBigNum::operator--()’: bignum.hpp:508:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, this, BN_value_one())) ^ bignum.hpp: In function ‘const CBigNum operator+(const CBigNum&, const CBigNum&)’: bignum.hpp:533:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(&r, &a, &b)) ^ bignum.hpp: In function ‘const CBigNum operator-(const CBigNum&, const CBigNum&)’: bignum.hpp:541:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, &a, &b)) ^ bignum.hpp: In function ‘const CBigNum operator-(const CBigNum&)’: bignum.hpp:549:43: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ BN_set_negative(&r, !BN_is_negative(&r)); ^ bignum.hpp: In function ‘const CBigNum operator*(const CBigNum&, const CBigNum&)’: bignum.hpp:557:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mul(&r, &a, &b, pctx)) ^ bignum.hpp: In function ‘const CBigNum operator/(const CBigNum&, const CBigNum&)’: bignum.hpp:566:39: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_div(&r, NULL, &a, &b, pctx)) ^ In file included from bignum.hpp:20:0, from bignum.cpp:8: bignum.hpp: In function ‘const CBigNum operator%(const CBigNum&, const CBigNum&)’: bignum.hpp:575:10: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘2’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mod(&r, &a, &b, pctx)) ^ In file included from bignum.cpp:8:0: bignum.hpp: In function ‘const CBigNum operator<<(const CBigNum&, unsigned int)’: bignum.hpp:583:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(&r, &a, shift)) ^ bignum.hpp: In function ‘bool operator==(const CBigNum&, const CBigNum&)’: bignum.hpp:595:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); } ^ bignum.hpp: In function ‘bool operator!=(const CBigNum&, const CBigNum&)’: bignum.hpp:596:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); } ^ bignum.hpp: In function ‘bool operator<=(const CBigNum&, const CBigNum&)’: bignum.hpp:597:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); } ^ bignum.hpp: In function ‘bool operator>=(const CBigNum&, const CBigNum&)’: bignum.hpp:598:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); } ^ bignum.hpp: In function ‘bool operator<(const CBigNum&, const CBigNum&)’: bignum.hpp:599:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); } ^ bignum.hpp: In function ‘bool operator>(const CBigNum&, const CBigNum&)’: bignum.hpp:600:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) > 0); } ^ Makefile:1795: recipe for target 'ccminer-bignum.o' failed make[2]: *** [ccminer-bignum.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/ccminer-api.Tpo .deps/ccminer-api.Po mv -f .deps/ccminer-util.Tpo .deps/ccminer-util.Po mv -f .deps/ccminer-ccminer.Tpo .deps/ccminer-ccminer.Po make[2]: Leaving directory '/home/m1/TPccminer' Makefile:2165: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/m1/TPccminer' Makefile:654: recipe for target 'all' failed make: *** [all] Error 2 m1@19_1_4:~/TPccminer$ We already have TPccminer right? Are you trying to compile latest version? for that SSL error we already have a fix. http://nvoc-mining-os.com/2017/11/13/add-ccminer-xevan-nvoc/Just start from the 2nd step only, also make sure you put the old one 'bn.h' file back. 2. bignum.hpp:491:47: error: cannot convert ‘CBigNum’ to ‘BIGNUM’ You will need to change the ssl version. wget http://www.openssl.org/source/openssl-1.0.1e.tar.gztar -xvzf openssl-1.0.1e.tar.gz cp /usr/local/include/openssl/bn.h bn.h.backup sudo cp openssl-1.0.1e/crypto/bn/bn.h /usr/local/include/openssl/ Now go to the xevan folder and do ./build.sh IMPORTANT: you need to replace the new SSL with the old one again!! cd /usr/local/include/openssl/ sudo rm bn.h sudo cp bn.h.bkp bn.h Would suggest you to go to that site, its more clear formatting wise. Works like a charm, thanks damNmad Edit: Yes we already have TPcc, but I made changes to it and wanted to recompile. Glad it worked for you, happy to help, you are welcome. Changes; have you improved hashrate? If so please share it with us
|
|
|
|
oktoshiimin
Member
Offline
Activity: 82
Merit: 10
|
|
November 15, 2017, 02:20:28 PM |
|
i keep the power limit at 75 untouch i did -i 21 before, rig stop after few hour
Ah ok, its better to let it run on 19 then, probably I should try as well. Coming to power limit, i have checked, its not using much anyway, so doesn't matter how much we limit it to (as long as its not lower than what it is currently using). Thanks. BSD is looking good to me, may i know which coin you mining in?
|
|
|
|
damNmad
Full Member
Offline
Activity: 378
Merit: 104
nvOC forever
|
|
November 15, 2017, 03:01:57 PM |
|
i keep the power limit at 75 untouch i did -i 21 before, rig stop after few hour
Ah ok, its better to let it run on 19 then, probably I should try as well. Coming to power limit, i have checked, its not using much anyway, so doesn't matter how much we limit it to (as long as its not lower than what it is currently using). Thanks. BSD is looking good to me, may i know which coin you mining in? HAHAHA I mine so many coins with my one only one RIG, currently mining BSD, was mining SMART thinking of SUMO and what not
|
|
|
|
bdog1234
|
|
November 15, 2017, 03:19:24 PM |
|
I have 5 rigs running on 19, and set up my first on the 19.4 two days ago. This morning I tried to make a change to 1bash and it would not let me because of no disk space.
I did some searching and found a 6.4 GB file sreenlog.0 I deleted it and then tried to nano 1 bash and it gave an error about a 1bash.swp lock file. I used VI and was able to delete the sap file and now nano works and I edited the 1 bash.
What is up with this huge screen log.0 file and how can I keep it from creating this?
Thanks
|
|
|
|
|