[R-pkg-devel] please help understand an error in openMP statements

Serguei Sokol @ergue|@@oko| @end|ng |rom gm@||@com
Fri Sep 13 10:27:58 CEST 2019

On 12/09/2019 23:12, Marcin Jurek wrote:
> Hello everyone, I'm submitting a package to CRAN which I tested locally, on
> Travis CI, R-hub and win builder. It worked no problem in all these
> environments. However, after submission, I keep getting the error described
> here:
> <https://win-builder.r-project.org/incoming_pretest/GPvecchia_0.1.0_20190912_151538/Debian/00install.out>
> https://win-builder.r-project.org/incoming_pretest/GPvecchia_0.1.0_20190912_201702/Debian/00install.out
One obvious error is pretty well described by the compiler:

U_NZentries.cpp:258:19: error: ‘covparms’ not specified in enclosing 
   258 |  covmat= MaternFun(dist,covparms) + diagmat(nug) ; // summation 
from arma
       |          ~~~~~~~~~^~~~~~~~~~~~~~~
U_NZentries.cpp:230:11: error: enclosing ‘parallel’
   230 |   #pragma omp parallel for 
shared(locs,revNNarray,revCondOnLatent,nuggets, nnp,m,Lentries,COV) 
default(none) schedule(static)

It simply stets that you should add 'covparms' either to private() or to 
shared() list on line 230.

I have no idea for other messages complaining about 'none'.

Best Serguei.

> I'm not a pro when it comes to openMP but since all previous tests
> completed successfully, I thought things were alright. Could you help me
> understand what's wrong and how to fix it? Source code of the package can
> be found at http://github.com/katzfuss-group/GPvecchia Thanks a lot!
> Marcin
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

More information about the R-package-devel mailing list