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

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

Open
srg777 opened this issue Dec 25, 2017 · 2 comments
Open

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

srg777 opened this issue Dec 25, 2017 · 2 comments

Comments

@srg777
Copy link

srg777 commented Dec 25, 2017

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
Copy link

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
Copy link
Contributor

turekaj commented Jan 31, 2018 via email

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