Dear Othman El Hammouchi, Welcome to R-package-devel!
В Wed, 08 May 2024 16:52:51 +0000 Othman El Hammouchi <othman.el.hammou...@protonmail.com> пишет: > However, upon submission I received an automatic reply shortly > afterwards saying the build had failed on CRAN's servers for Debian. > The log gives the following error: > > flang/lib/Lower/CallInterface.cpp:949: not yet implemented: support > for polymorphic types Your use of contained procedures in class(t_mack_triangle) and class(t_cl_res) signifies the derived types as being extensible and thus potentially polymorphic. You'll have to replace class(...) with type(...) and move the contained procedures out of the type definitions (and maybe additionally make the types 'sequence' or 'bind(C)' to signify them being non-extensible) to make the code work with flang-18. I'm afraid this will also prevent you from defining destructors for these types. flang-new can be a very disappointing compiler at times [*], but it's what people do use in the real world, especially for 64-bit ARM processors, so in order to keep our packages portable, we have to cater to its whims. -- Best regards, Ivan [*] https://stat.ethz.ch/pipermail/r-package-devel/2023q4/009987.html ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel