vertcoin-project / vertminer-nvidia

Custom nVidia miner for Vertcoin
GNU General Public License v3.0
32 stars 11 forks source link

nvcc fatal : redefinition of argument 'compiler-bindir' #13

Open srg777 opened 6 years ago

srg777 commented 6 years ago

I am trying to compile vertminer under Debian 9.0 And I have up to date drivers from NVIDIA, so I've changed few rows in Makefile.am:

nvcc_ARCH = -gencode=arch=compute_61,code=\"sm_61,compute_61\"

and

nvcc_FLAGS += -ccbin clang-3.8 --compiler-options '-fPIC'

but ./build.sh fish with

nvcc fatal : redefinition of argument 'compiler-bindir'

please, help me to solve this issue

The3DWizard commented 6 years ago

I have not tried to compile vertminer myself, but maybe this general note regarding nvcc helps: Specifying -ccbin interferes with specifying the --compiler-bindir option. So you can just have one of those options specified not both. So my guess is that the makefile specifies --compiler-bindir option somewhere else and your nvcc_FLAGS contains the -ccbin option. The same problem occurs of course if -ccbin or --compiler-bindir is specified multiple times. So you should also check for another -ccbin setting in your makefile.

turekaj commented 6 years ago

Also make sure you are grabbing source from the releases

On Jan 31, 2018 11:34 AM, "The3DWizard" notifications@github.com wrote:

I have not tried to compile vertminer myself, but maybe this general note regarding nvcc helps: Specifying -ccbin interferes with specifying the --compiler-bindir option. So you can just have one of those options specified not both. So my guess is that the makefile specifies --compiler-bindir option somewhere else and your nvcc_FLAGS contains the -ccbin option. The same problem occurs of course if -ccbin or --compiler-bindir is specified multiple times. So you should also check for another -ccbin setting in your makefile.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vertcoin/vertminer-nvidia/issues/13#issuecomment-362009529, or mute the thread https://github.com/notifications/unsubscribe-auth/AGfFUD642io5py8INGR_aFbm-aricNZ7ks5tQKQ6gaJpZM4RMTpZ .