-
nvcc fatal:unKnown option 'fPIC' |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
did you solve it |
Beta Was this translation helpful? Give feedback.
-
I had problems with nvcc too. They went away when I upgraded to the latest version (11.6). Check your version with |
Beta Was this translation helpful? Give feedback.
-
I had the problem too. Add ' -XCompiler' can solve it. |
Beta Was this translation helpful? Give feedback.
-
my new issue is: nvcc fatal: A single input file is required for a non-link phase when an outputfile is specified |
Beta Was this translation helpful? Give feedback.
-
Hi, has anyone been able to solve this issue? |
Beta Was this translation helpful? Give feedback.
-
By adding a -v to cmake, it will show you the line it is trying to execute. For me, I followed the advice to add a space but that will actually change the parameters which are generated. Where before, the parameters would be
now it was
and nvcc does not seem to understand that. So after updating my cmake I removed all spaces in both CMakeLists files again and this time it finishes compiling. You can check what your cmake command produces with:
Depending on your cuda version, for me it's 11.6. I think the culprit here could be cmake which changes how it adds these command line parameters between versions but I don't know for sure. |
Beta Was this translation helpful? Give feedback.
-
You cant have a file path with spaces. That solved my problem. |
Beta Was this translation helpful? Give feedback.
-
See also #198 |
Beta Was this translation helpful? Give feedback.
You cant have a file path with spaces. That solved my problem.