Created attachment 193076 [details] necessary changes for switching to flang There are lot of known problems with gfortran when clang is involved, e.g.: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196862 This patch switches to using flang compiler (on amd64 only) and resolves gcc linking issues. Note: - deleted file "files/patch-exports+Makefile" (backward compatibility checked on gfortran builds) - patched "Makefile" contains a "ditry" arch check, I believe it's the best available option now until "flang" will be set by default for all amd64 ports in fortran.mk.
Created attachment 193122 [details] poudriere log for a patched port
There are 2 issues with this patch: 1. The correct way to do this is using the port option FLANG, see math/R how this is done there. Please resubmit the patch doing this 2. Some people might disagree with this, not sure. This adds a certain level of complexity. Also, for this all ports that depend on lapack should probably be rebuilt and retested.
Created attachment 193137 [details] necessary changes for switching to flang A less-destructive switch to flang (OPTION).
Created attachment 193138 [details] poudriere log for a patched port
Created attachment 193167 [details] proper handling of non-supported archs