Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Nov 2022 17:46:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 267564] devel/llvm13: gfortran not found for flang (also in devel/llvm14)
Message-ID:  <bug-267564-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267564

            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 (r=
esp.
/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 Free=
BSD:

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

Setting F18_FC=3Dgfortran11 (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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267564-7788>