I am trying to install the package rpud on a CENTOS Linux server and got the following error:
/usr/local/cuda/bin/nvcc -shared -Xlinker " -Wl,-rpath,/usr/local/cuda/lib64" -L/usr/local/cuda/lib64 -lcublas -lcuda rpud.o rpudist.o -o rpud.so
/usr/bin/ld: unrecognized option '-Wl'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make: *** [rpud.so] Error 1
ERROR: compilation failed for package ‘rpud’
* removing ‘/usr/local/lib64/R/library/rpud’
The downloaded source packages are in
‘/tmp/RtmpbEKjuZ/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("rpud") :
installation of package ‘rpud’ had non-zero exit status
I've tried and tried to remove the "-Wl" options from the config.site, configure, libtool, makefile, and makeconf (basically everywhere I could find it) on the R build directory and the source directory, but with no sucess. I still get the same error!
How can I eliminate this option? Or should I be using another linker than /usr/bin/ld?
Thanks in advance for your help!
Sincerely,
Roger
/usr/local/cuda/bin/nvcc -shared -Xlinker " -Wl,-rpath,/usr/local/cuda/lib64" -L/usr/local/cuda/lib64 -lcublas -lcuda rpud.o rpudist.o -o rpud.so
/usr/bin/ld: unrecognized option '-Wl'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make: *** [rpud.so] Error 1
ERROR: compilation failed for package ‘rpud’
* removing ‘/usr/local/lib64/R/library/rpud’
The downloaded source packages are in
‘/tmp/RtmpbEKjuZ/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("rpud") :
installation of package ‘rpud’ had non-zero exit status
I've tried and tried to remove the "-Wl" options from the config.site, configure, libtool, makefile, and makeconf (basically everywhere I could find it) on the R build directory and the source directory, but with no sucess. I still get the same error!
How can I eliminate this option? Or should I be using another linker than /usr/bin/ld?
Thanks in advance for your help!
Sincerely,
Roger