[R-pkg-devel] Package submission issue - OMP reduction (flang-new)

Tomas Kalibera tom@@@k@||ber@ @end|ng |rom gm@||@com
Mon Nov 13 18:12:31 CET 2023


On 11/13/23 16:39, Romain Pierlot wrote:
> Hi everyone,
>
> I sent a first message a few weeks ago. I'm still in trouble for sending a package (Frailtypack) on the CRAN. It was removed because of reinforcement in CRAN requirements.
> We corrected the few issues, but more appeared, and one that I'm still enable to correct.
>
> Here is the error message, and the adequate code part is joint in the mail :
>
> error: loc("/data/gannet/ripley/R/packages/incoming/frailtypack.Rcheck/00_pkg_src/frailtypack/src/Integrale_mult_scl.f90":1811:17): 'omp.reduction' op must be used within an operation supporting reduction clause interface
> error: verification of lowering to FIR failed
>
> I've already received precious help, that indicated me that the error probably comes from the flang-new compiler used by the CRAN (He replicated the error, I send you the code he made in attachment too : test_fortran.f90).
> I tried the code portion with other compilers (gfortran), and the error didn't appear.
>
> Nevertheless, It may be a compiler error, the CRAN keeps denying the package.
>
> Does anyone have a solution, to avoid this error please ?

If you are sufficiently confident this is a compiler bug, it would be 
great if you could submit a bug report for LLVM/flang-new, so that it 
could be fixed. You would also likely get feedback this way confirming 
whether it really is a compiler bug or a problem in your code. And if it 
is a confirmed bug, you might even get an advice for a work-around for 
older compilers.

Tomas

>
> Thanks a lot for your answers !
>
> Romain Pierlot
>
>
>
>
>
> ______________________________________________
> 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