[Rcpp-devel] Rcpp unreachable when RInside+Hemi tryed to be compiled together

Ralf Stubner ralf.stubner at r-institute.com
Fri May 18 09:53:17 CEST 2018


On 18.05.2018 09:22, ExtremePasta wrote:
> using -Xcompiler and removing some flag from $(shell $(R_HOME)/bin/R CMD
> config CXXFLAGS) I tryed to make nvcc recognize all the gcc command but
> I don't know if this allow nvcc run it perfectly. When running "make"
> this is the error I get:
> 
> nvcc parallel_for.cpp --std=c++11 -I../ -I../../ -I/usr/share/R/include
> -I/home/pesco/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include
> -I/home/pesco/R/x86_64-pc-linux-gnu-library/3.2/RInside/include -g 
> -Xcompiler -fstack-protector-strong -Xcompiler -Wformat -Xcompiler
> -Wdate-time -Xcompiler -D_FORTIFY_SOURCE=2 -O3 -g -DDEBUG -G
> -D_FORCE_INLINES --expt-extended-lambda -x cu -o parallel_for_device
[...]> /tmp/tmpxft_00000456_00000000-10_parallel_for.o: nella funzione
> "Rcpp::Rstreambuf<false>::xsputn(char const*, long)":
> /home/pesco/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include/Rcpp/iostream/Rstreambuf.h:56:
> riferimento non definito a "REprintf"

In the compiler/linker call you are missing at least something like
"-L/usr/lib/R/lib -lR", which is part of $(LDLIBS) via $(RLDFLAGS). Try
to include $(LDLIBS) in the command used for compilation and linking.

Greetings
Ralf

-- 
Ralf Stubner
Senior Software Engineer / Trainer

daqana GmbH
Dortustraße 48
14467 Potsdam

T: +49 331 23 70 81 66
F: +49 331 23 70 81 67
M: +49 162 20 91 196
Mail: ralf.stubner at daqana.com

Sitz: Potsdam
Register: AG Potsdam HRB 27966 P
Ust.-IdNr.: DE300072622
Geschäftsführer: Prof. Dr. Dr. Karl-Kuno Kunze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20180518/d0ed600d/attachment.sig>


More information about the Rcpp-devel mailing list