Bug#861878: nvidia-cuda-toolkit: nvcc needs to pass -fpie to compiler

Lumin cdluminate at gmail.com
Sat May 13 05:59:24 UTC 2017


Hi,

> This was documented in NEWS.Debian.gz. Having to use "--compiler-options
> -fPIC" was however not documented in NEW.Debian.gz, at least that should
> be done.
>
> Ok, but that's still something difficult to the user to work out, while
> it is needed for basically any use of nvcc. Currently NEWS.Debian.gz
> only advises to use -ccbin clang-3.8.
>
> Well, AIUI it's not considered a bug to require PIE, but a toolchain
> goal...
>
> Sure, but application Makefiles are not ready for that, we had to
> tinker them to use clang-3.8, and NEWS.Debian.gz only talks about the
> invokation of nvcc, not the eventual linking issue.

Well, what do you think we can to to deal with this bug?

And what can we do from the CUDA packaging side except for a new
NEWS/README.Debian section?

I plan to point out these in the new NEWS/README.Debian section:
(1) Try to compile the whole CUDA application with clang-3.8
(2) Append the PIE/PIC flags to compiler arguments, reference: [1]

[1] http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html



More information about the pkg-nvidia-devel mailing list