test/apps/test_cuda_get_symbol_address.cu
build failure on Debian 12 with "relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE"
#10402
Labels
Describe the bug
On Debian 12 with GCC 12.2.0, build will fail at
test/apps/test_cuda_get_symbol_address.cu
, complaining aboutrelocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE
.Steps to Reproduce
Setup and versions
Debian GNU/Linux 12
+Linux Server 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux
gcc (Debian 12.2.0-14) 12.2.0
.run
at/usr/local/cuda-12.6
Additional information (depending on the issue)
It seems in this case
nvcc
needs a flag--compiler-options -fPIC
passed to it:With this change I am able to build UCX successfully.
The text was updated successfully, but these errors were encountered: