Skip to content

Why doesn't these apps compile?! #27

Description

@lordgamegenie

I spent about week+ looking into you and quasar84's fork of ccminer and both produce the exact same errors when trying to compile this in VS2013 with CUDA 7.5-8.0.
First I will state that I do not want to compile this in CUDA 9.0 As I don't have any nvidia cards of the 10xx variety, and I don't like that CUDA 9.0 depreciates older 2.x cards, making the software compiled very limited to the amount of graphics cards compatible.

You really should update that Readme file because even though it recommends CUDA 6.5 with 7.5 optional. Looking at the project file it clearly is set to go with CUDA 9.0 and changing it will produced tons of errors during compile.

Compiling CUDA source file qubit\qubit_luffa512_alexis.cu...
1>
1> D:\VS\nevermore-miner-0.2.3>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin\nvcc.exe" -gencode=arch=compute_30,code="sm_30,compute_30" -gencode=arch=compute_20,code="sm_21,compute_20" -gencode=arch=compute_20,code="sm_20,compute_20" --use-local-env --cl-version 2013 -ccbin "D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin" -I. -Icompat -I"compat\curl-for-windows\curl\include" -Icompat\jansson -Icompat\getopt -Icompat\pthreads -I"compat\curl-for-windows\openssl\openssl\include" -I"compat\curl-for-windows\zlib" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" --keep --keep-dir Release -maxrregcount=80 --ptxas-options=-v --machine 32 --compile -cudart static --ptxas-options="-O2" --Wno-deprecated-gpu-targets -DWIN32 -DNDEBUG -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -DCURL_STATICLIB -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MT " -o Release\qubit_luffa512_alexis.cu.obj "D:\VS\nevermore-miner-0.2.3\qubit\qubit_luffa512_alexis.cu"
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(443): warning : type qualifier ignored
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(443): error : expected a ")"
1>CUDACOMPILE : error : inline specifier allowed on function declarations only
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(443): error : the modifier "__inline" is not allowed on this declaration
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(445): error : expected a ","
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(445): error : expected a "}"
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(446): error : expected a ")"
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(447): error : expected a ")"
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(448): error : expected a declaration
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(449): error : expected a declaration
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(629): warning : parsing restarts here after previous syntax error
1>D:\VS\nevermore-miner-0.2.3\cuda_vectors_alexis.h(631): error : expected a declaration
1>D:/VS/nevermore-miner-0.2.3/qubit/qubit_luffa512_alexis.cu(9): warning : parsing restarts here after previous syntax error
1>D:/VS/nevermore-miner-0.2.3/qubit/qubit_luffa512_alexis.cu(661): error : identifier "swapvec" is undefined
1>D:/VS/nevermore-miner-0.2.3/qubit/qubit_luffa512_alexis.cu(762): error : identifier "PaddedMessage" is undefined
1>D:/VS/nevermore-miner-0.2.3/qubit/qubit_luffa512_alexis.cu(766): error : identifier "PaddedMessage" is undefined
1>D:/VS/nevermore-miner-0.2.3/qubit/qubit_luffa512_alexis.cu(825): error : identifier "PaddedMessage" is undefined
1> qubit_luffa512_alexis.cu
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 7.5.targets(604,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin\nvcc.exe" -gencode=arch=compute_30,code="sm_30,compute_30" -gencode=arch=compute_20,code="sm_21,compute_20" -gencode=arch=compute_20,code="sm_20,compute_20" --use-local-env --cl-version 2013 -ccbin "D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin" -I. -Icompat -I"compat\curl-for-windows\curl\include" -Icompat\jansson -Icompat\getopt -Icompat\pthreads -I"compat\curl-for-windows\openssl\openssl\include" -I"compat\curl-for-windows\zlib" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" --keep --keep-dir Release -maxrregcount=80 --ptxas-options=-v --machine 32 --compile -cudart static --ptxas-options="-O2" --Wno-deprecated-gpu-targets -DWIN32 -DNDEBUG -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -DCURL_STATICLIB -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MT " -o Release\qubit_luffa512_alexis.cu.obj "D:\VS\nevermore-miner-0.2.3\qubit\qubit_luffa512_alexis.cu"" exited with code 2.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions