Re: lang/llvm15 -- Why is flang being built?

From: Gleb Popov <arrowd_at_freebsd.org>
Date: Mon, 30 Jan 2023 18:17:07 UTC
On Mon, Jan 30, 2023 at 7:59 PM Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
>
> Why does the lang/llvm15 port default to building flang
> (ie., the Fortran compiler)?
>
> % flang15 -o z a.f90
> error: /usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/flang/lib/Optimizer/CodeGen/Target.cpp:312: not yet implemented: target not implemented
> % flang-new15 -o z a.f90
> error: /usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/flang/lib/Optimizer/CodeGen/Target.cpp:312: not yet implemented: target not implemented
>
> Inspection of Target.cpp shows that the word "FreeBSD"
> does not appear anywhere.
>
> --
> Steve
>

This was fixed shortly after the release, but Flang itself still isn't
capable of producing working executables. It should probably be turned
off for now.