Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error compilation 8.21 #249

Closed
cartesien opened this issue Jun 10, 2018 · 10 comments
Closed

error compilation 8.21 #249

cartesien opened this issue Jun 10, 2018 · 10 comments

Comments

@cartesien
Copy link

make[2]: Leaving directory '/home/m1/NVOC/testing/miners/KTccminer/ccminer-8.21'
Makefile:1463: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/m1/NVOC/testing/miners/KTccminer/ccminer-8.21'
Makefile:515: recipe for target 'all' failed
make: *** [all] Error 2

@KlausT
Copy link
Owner

KlausT commented Jun 10, 2018

I can't see the actual error message, it happened some lines earlier.
did you run ./build.sh ?

@cartesien
Copy link
Author


m1@m1-desktop:~/NVOC/mining/miners/KTccminer/src/ccminer$ ls
Algo256                           ccminer.cpp                     configure.sh         cuda_myriadgroestl.cu      INSTALL            nvml.cpp        skein.cu
api                               ccminer-cuda80.sln              crc32.c              cuda_nist5.cu              JHA                nvml.h          sph
api.cpp                           ccminer-cuda80.vcxproj          cuda_bitcoin.cu      cuda_vector.h              keccak             nvsettings.cpp  stats.cpp
autogen.sh                        ccminer-cuda80.vcxproj.filters  cuda_checkhash.cu    cuda_x11_aes_noasm.cu      LICENSE.txt        pentablake.cu   stl_heap.h
bitcoin.cu                        ccminer.sln                     cuda.cpp             elist.h                    lyra2              quark           sysinfos.cpp
bitslice_transformations_quad.cu  ccminer.vcxproj                 cuda_fugue256.cu     example-cfg.json           Makefile.am        qubit           util.cpp
blake32.cu                        ccminer.vcxproj.filters         cuda_fugue256.h      fuguecoin.cpp              miner.h            README.md       x11
BlueMidnightWish_opt.c            compat                          cuda_groestlcoin.cu  groestlcoin.cpp            myriadgroestl.cpp  README.txt      x13
build.sh                          compat.h                        cuda_groestlcoin.h   groestl_functions_quad.cu  neoscrypt          SHA3api_ref.h   x15
ccminer-config-win.h              configure.ac                    cuda_helper.h        hashlog.cpp                nvapi.cpp          Sia             x17
m1@m1-desktop:~/NVOC/mining/miners/KTccminer/src/ccminer$ ./autogen.sh
configure.ac:13: installing './compile'
configure.ac:4: installing './config.guess'
configure.ac:4: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
Makefile.am: installing './depcomp'
m1@m1-desktop:~/NVOC/mining/miners/KTccminer/src/ccminer$ ./configure.sh
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-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... gawk
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 whether we can compile AVX code... yes
checking whether we can compile XOP code... yes
checking whether we can compile AVX2 code... yes
checking for json_loads in -ljansson... yes
checking for pthread_create in -lpthread... yes
checking for SSL_library_init in -lssl... yes
checking for EVP_DigestFinal_ex in -lcrypto... yes
checking for gawk... (cached) gawk
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
m1@m1-desktop:~/NVOC/mining/miners/KTccminer/src/ccminer$ ./build.sh
Making distclean in compat
make[1]: Entering directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer/compat'
Making distclean in jansson
make[2]: Entering directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer/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/NVOC/mining/miners/KTccminer/src/ccminer/compat/jansson'
make[2]: Entering directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer/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/NVOC/mining/miners/KTccminer/src/ccminer/compat'
rm -f Makefile
make[1]: Leaving directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer/compat'
make[1]: Entering directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer'
test -z "ccminer" || rm -f ccminer
rm -f *.o
rm -f Algo256/*.o
rm -f JHA/*.o
rm -f Sia/*.o
rm -f lyra2/*.o
rm -f neoscrypt/*.o
rm -f quark/*.o
rm -f qubit/*.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 Sia/.deps/.dirstamp
rm -f Sia/.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 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/NVOC/mining/miners/KTccminer/src/ccminer'
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -rf ./.deps lyra2/.deps sph/.deps
rm -f Makefile
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-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... gawk
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 whether we can compile AVX code... yes
checking whether we can compile XOP code... yes
checking whether we can compile AVX2 code... yes
checking for json_loads in -ljansson... yes
checking for pthread_create in -lpthread... yes
checking for SSL_library_init in -lssl... yes
checking for EVP_DigestFinal_ex in -lcrypto... yes
checking for gawk... (cached) gawk
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/NVOC/mining/miners/KTccminer/src/ccminer'
Making all in compat
make[2]: Entering directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer/compat'
make[3]: Entering directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer/compat'
make[2]: Leaving directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer/compat'
make[2]: Entering directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer'
gcc -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -std=c99 -march=native -fno-strict-aliasing -MT ccminer-crc32.o -MD -MP -MF .deps/ccminer-crc32.Tpo -c -o ccminer-crc32.o `test -f 'crc32.c' || echo './'`crc32.c
g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -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 -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-util.o -MD -MP -MF .deps/ccminer-util.Tpo -c -o ccminer-util.o `test -f 'util.cpp' || echo './'`util.cpp
g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-api.o -MD -MP -MF .deps/ccminer-api.Tpo -c -o ccminer-api.o `test -f 'api.cpp' || echo './'`api.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 -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-hashlog.o -MD -MP -MF .deps/ccminer-hashlog.Tpo -c -o ccminer-hashlog.o `test -f 'hashlog.cpp' || echo './'`hashlog.cpp
api.cpp: In function ‘char* getmeminfo(char*)’:
api.cpp:383:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
   srec, hrec, totmem);
                     ^
mv -f .deps/ccminer-api.Tpo .deps/ccminer-api.Po
g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-stats.o -MD -MP -MF .deps/ccminer-stats.Tpo -c -o ccminer-stats.o `test -f 'stats.cpp' || echo './'`stats.cpp
mv -f .deps/ccminer-hashlog.Tpo .deps/ccminer-hashlog.Po
g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-sysinfos.o -MD -MP -MF .deps/ccminer-sysinfos.Tpo -c -o ccminer-sysinfos.o `test -f 'sysinfos.cpp' || echo './'`sysinfos.cpp
sysinfos.cpp: In function ‘uint32_t linux_cpufreq(int)’:
sysinfos.cpp:50:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   fscanf(fd, "%d", &freq);
                          ^
sysinfos.cpp:58:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
    fscanf(fd, "%d", &freq);
                           ^
mv -f .deps/ccminer-sysinfos.Tpo .deps/ccminer-sysinfos.Po
g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-cuda.o -MD -MP -MF .deps/ccminer-cuda.Tpo -c -o ccminer-cuda.o `test -f 'cuda.cpp' || echo './'`cuda.cpp
mv -f .deps/ccminer-stats.Tpo .deps/ccminer-stats.Po
g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-nvml.o -MD -MP -MF .deps/ccminer-nvml.Tpo -c -o ccminer-nvml.o `test -f 'nvml.cpp' || echo './'`nvml.cpp
mv -f .deps/ccminer-ccminer.Tpo .deps/ccminer-ccminer.Po
g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-nvsettings.o -MD -MP -MF .deps/ccminer-nvsettings.Tpo -c -o ccminer-nvsettings.o `test -f 'nvsettings.cpp' || echo './'`nvsettings.cpp
mv -f .deps/ccminer-util.Tpo .deps/ccminer-util.Po
g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-fuguecoin.o -MD -MP -MF .deps/ccminer-fuguecoin.Tpo -c -o ccminer-fuguecoin.o `test -f 'fuguecoin.cpp' || echo './'`fuguecoin.cpp
mv -f .deps/ccminer-nvsettings.Tpo .deps/ccminer-nvsettings.Po
mv -f .deps/ccminer-fuguecoin.Tpo .deps/ccminer-fuguecoin.Po
gcc -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -std=c99 -march=native -fno-strict-aliasing -MT sph/ccminer-fugue.o -MD -MP -MF sph/.deps/ccminer-fugue.Tpo -c -o sph/ccminer-fugue.o `test -f 'sph/fugue.c' || echo './'`sph/fugue.c
g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME    -O3  -march=native -std=c++11 -pthread -fno-strict-aliasing -MT ccminer-groestlcoin.o -MD -MP -MF .deps/ccminer-groestlcoin.Tpo -c -o ccminer-groestlcoin.o `test -f 'groestlcoin.cpp' || echo './'`groestlcoin.cpp
mv -f .deps/ccminer-groestlcoin.Tpo .deps/ccminer-groestlcoin.Po
/usr/local/cuda/bin/nvcc -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_70,code=sm_70 -I/usr/local/cuda/include -I. -O3  -std=c++11 -Xcompiler -fno-strict-aliasing,-Wall -D_FORCE_INLINES  --maxrregcount=128 -o cuda_groestlcoin.o -c cuda_groestlcoin.cu
mv -f .deps/ccminer-cuda.Tpo .deps/ccminer-cuda.Po
nvcc fatal   : Unsupported gpu architecture 'compute_70'
Makefile:1909: recipe for target 'cuda_groestlcoin.o' failed
make[2]: *** [cuda_groestlcoin.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/ccminer-nvml.Tpo .deps/ccminer-nvml.Po
mv -f sph/.deps/ccminer-fugue.Tpo sph/.deps/ccminer-fugue.Po
make[2]: Leaving directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer'
Makefile:1463: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer'
Makefile:515: recipe for target 'all' failed
make: *** [all] Error 2
m1@m1-desktop:~/NVOC/mining/miners/KTccminer/src/ccminer$

@KlausT
Copy link
Owner

KlausT commented Jun 24, 2018

You are probably using CUDA 8.0, I think.
There are two ways to fix the error:
You can either remove this line in the Makefile.am:
nvcc_ARCH += -gencode=arch=compute_70,code=sm_70
or you can install a newer CUDA version, like CUDA 9.2
https://developer.nvidia.com/cuda-downloads

@cartesien
Copy link
Author

I can't install CUDA 9.2 Yet. I need some other miners that are not updated and needs CUDA 8.

I will try to remove htis line like you suggest.

@cartesien
Copy link
Author

I removed the line you post above in makefile.am, but i already have an error :

Makefile:1948: recipe for target 'neoscrypt/cuda_neoscrypt.o' failed
make[2]: *** [neoscrypt/cuda_neoscrypt.o] Error 1
make[2]: *** Waiting for unfinished jobs....
ptxas warning : Too big maxrregcount value specified 128, will be ignored
ptxas warning : Too big maxrregcount value specified 128, will be ignored
make[2]: Leaving directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer'
Makefile:1462: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/m1/NVOC/mining/miners/KTccminer/src/ccminer'
Makefile:514: recipe for target 'all' failed
make: *** [all] Error 2

@KlausT
Copy link
Owner

KlausT commented Jun 24, 2018

Oh, sorry, I forgot.
You also have to remove the two -gencode=arch=compute_70,code=sm_70 near the end of the file.

Makefile.zip

@cartesien
Copy link
Author

Ok, compiling realized with success.

Thank you Klaust

@KlausT KlausT closed this as completed Jul 12, 2018
@Zittong
Copy link

Zittong commented Sep 12, 2021

root@localhost:/ccminer# chmod +x build.sh
root@localhost:
/ccminer# chmod +x configure.sh
root@localhost:/ccminer# chmod +x autogen.sh
root@localhost:
/ccminer# ./build.sh
Making distclean in compat
make[1]: Entering directory '/root/ccminer/compat'
Making distclean in jansson
make[2]: Entering directory '/root/ccminer/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 '/root/ccminer/compat/jansson'
make[2]: Entering directory '/root/ccminer/compat'
test -z "" || rm -f
test . = "." || test -z "" || rm -f
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
make[2]: Leaving directory '/root/ccminer/compat'
rm -f Makefile
make[1]: Leaving directory '/root/ccminer/compat'
make[1]: Entering directory '/root/ccminer'
test -z "ccminer" || rm -f ccminer
rm -f .o
rm -f compat/
.o
rm -f equi/
.o
rm -f verus/
.o
rm -f *.tab.c
test -z "" || rm -f
test . = "." || test -z "" || rm -f
rm -f compat/.deps/.dirstamp
rm -f compat/.dirstamp
rm -f equi/.deps/.dirstamp
rm -f equi/.dirstamp
rm -f verus/.deps/.dirstamp
rm -f verus/.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 '/root/ccminer'
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -rf ./.deps compat/.deps equi/.deps verus/.deps
rm -f Makefile
checking build system type... armv8l-unknown-linux-gnueabihf
checking host system type... armv8l-unknown-linux-gnueabihf
checking target system type... armv8l-unknown-linux-gnueabihf
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... no
checking for SSL_free in -lssl... yes
checking for EVP_DigestFinal_ex in -lcrypto... yes
checking for an Android system... no
checking for gawk... (cached) mawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.58.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 '/root/ccminer'
Making all in compat
make[2]: Entering directory '/root/ccminer/compat'
make[3]: Entering directory '/root/ccminer/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/ccminer/compat'
make[2]: Leaving directory '/root/ccminer/compat'
make[2]: Entering directory '/root/ccminer'
g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -march=armv8-a+crypto -flax-vector-conversions -fno-strict-aliasing -O3 -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
g++: error: unrecognized argument in option ‘-march=armv8-a+crypto’
g++: note: valid arguments to ‘-march=’ are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv5tej armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8-m.base armv8-m.main armv8-m.main+dsp armv8.1-a armv8.2-a armv8.2-a+dotprod armv8.2-a+fp16 armv8.2-a+fp16+dotprod iwmmxt iwmmxt2 native; did you mean ‘armv8-a+crc’?
Makefile:665: recipe for target 'ccminer-bignum.o' failed
make[2]: *** [ccminer-bignum.o] Error 1
make[2]: Leaving directory '/root/ccminer'
Makefile:839: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/ccminer'
Makefile:421: recipe for target 'all' failed
make: *** [all] Error 2

@Zittong
Copy link

Zittong commented Sep 12, 2021

Please help me

@KlausT
Copy link
Owner

KlausT commented Sep 12, 2021

g++: error: unrecognized argument in option ‘-march=armv8-a+crypto’

You probably have to edit cinfigure.sh and fix the options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants