Hi Ingo --

When we upgraded to llvm-10.0.0, I had to mark flang as BROKEN [0]
because upstream has not yet ported what is now called Classic Flang
to llvm-10, as most efforts have shifted to the new Flang, which has
been upstreamed into mainline LLVM. There are plans to upgrade Classic
Flang to llvm-10 but nothing as of yet has manifested, and there is no
timetable for such an upgrade.

As a result, R will no longer build on arm64, since it uses flang for
its Fortran code. The solution is, at least for now, to switch arm64
to use gfortran, which the attached diff does. I don't have an arm64
available to test, so I am hoping someone can volunteer to test this
out and make sure it builds.

OK?

~Brian

[0] https://marc.info/?l=openbsd-ports-cvs&m=159661468621760&w=2
Index: Makefile
===================================================================
RCS file: /cvs/ports/math/R/Makefile,v
retrieving revision 1.118
diff -u -p -r1.118 Makefile
--- Makefile	23 Jun 2020 18:54:24 -0000	1.118
+++ Makefile	13 Aug 2020 14:34:00 -0000
@@ -2,6 +2,7 @@
 
 COMMENT=	powerful math/statistics/graphics language
 DISTNAME=	R-4.0.2
+REVISION=	0
 
 SO_VERSION=	37.0
 .for _lib in R Rblas Rlapack
@@ -29,11 +30,7 @@ MASTER_SITES=	https://cran.r-project.org
 MODULES=	fortran \
 		x11/tk
 
-.if ${MACHINE_ARCH:Maarch64}
-MODFORTRAN_COMPILER = flang
-.else
 MODFORTRAN_COMPILER = gfortran
-.endif
 
 BUILD_DEPENDS=	${MODFORTRAN_BUILD_DEPENDS} \
 		archivers/gtar \

Reply via email to