libcudpp_x86_64.a in 3.2 RC2 SDK link fails The cudpp lib. in the 64bit SDK is not compiled with -fP

When I try to link the libcudpp_x86_64.a from the SDK to create a shared library, under 64bit linux, I get the following error:

/usr/bin/ld: /home/kashif/NVIDIA_GPU_Computing_SDK/C/common/lib/linux/libcudpp_x86_64.a(cudpp_plan.cpp_o): relocation R_X86_64_32S against `vtable for CUDPPPlan' can not be used when making a shared object; recompile with -fPIC

/home/kashif/NVIDIA_GPU_Computing_SDK/C/common/lib/linux/libcudpp_x86_64.a: could not read symbols: Bad value

collect2: ld returned 1 exit status

I am using Ubuntu 10.04 on a 64-bit machine, and:

$ gcc -v

Using built-in specs.

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

Thread model: posix

gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

It seems the problem was fixed in cudapp 1.1.1 issue 40: http://code.google.com/p/cudpp/issues/deta…an=1&q=fPIC

and I could get cudpp and compile it myself in which case it works, but I would like to be able to link to it without compiling it myself. Could the SDK maintainers kindly provide the cudpp with PIC enabled?

thanks!

When I try to link the libcudpp_x86_64.a from the SDK to create a shared library, under 64bit linux, I get the following error:

/usr/bin/ld: /home/kashif/NVIDIA_GPU_Computing_SDK/C/common/lib/linux/libcudpp_x86_64.a(cudpp_plan.cpp_o): relocation R_X86_64_32S against `vtable for CUDPPPlan' can not be used when making a shared object; recompile with -fPIC

/home/kashif/NVIDIA_GPU_Computing_SDK/C/common/lib/linux/libcudpp_x86_64.a: could not read symbols: Bad value

collect2: ld returned 1 exit status

I am using Ubuntu 10.04 on a 64-bit machine, and:

$ gcc -v

Using built-in specs.

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

Thread model: posix

gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

It seems the problem was fixed in cudapp 1.1.1 issue 40: http://code.google.com/p/cudpp/issues/deta…an=1&q=fPIC

and I could get cudpp and compile it myself in which case it works, but I would like to be able to link to it without compiling it myself. Could the SDK maintainers kindly provide the cudpp with PIC enabled?

thanks!