[Bug 267564] devel/llvm13: gfortran not found for flang (also in devel/llvm14)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 04 Nov 2022 17:46:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267564

            Bug ID: 267564
           Summary: devel/llvm13: gfortran not found for flang (also in
                    devel/llvm14)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks@FreeBSD.org
          Reporter: thierry@FreeBSD.org
          Assignee: brooks@FreeBSD.org
             Flags: maintainer-feedback?(brooks@FreeBSD.org)

Since LLVM-13, flang is installed by the ports devel/llvm1x: this is not the
classical flang, but flang-new.

Actually flang13, i.e. /usr/local/bin/flang13 (resp. flang14) is a script
shell, and it launches another script shell, /usr/local/llvm13/bin/flang (resp.
/usr/local/llvm14/bin/flang), and this script tries to use gfortran as an
external compiler. Of course it fails, because there is no gfortran on FreeBSD:

/usr/local/llvm13/bin/flang: line 368: gfortran: command not found

Setting F18_FC=gfortran11 (when 11 is GCC_DEFAULT) is OK.

No patch, because IDK how to handle it: let's just define F18_FC and assume
that gfortran11 is installed without adding a dependency?

Remark: no such problem with LLVM-15.

-- 
You are receiving this mail because:
You are the assignee for the bug.