Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2023 18:37:53 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Gleb Popov <arrowd@freebsd.org>
Cc:        sgk@troutmask.apl.washington.edu, freebsd-ports@freebsd.org
Subject:   Re: lang/llvm15 -- Why is flang being built?
Message-ID:  <Y9gOgWgQURbPeaz0@spindle.one-eyed-alien.net>
In-Reply-To: <CALH631m=XPMsNAAkOUM446mEFLf7rRwTnkEPK8qSM0eTDOYX6Q@mail.gmail.com>
References:  <Y9f3QaK%2BQ/O6KlAi@troutmask.apl.washington.edu> <CALH631m=XPMsNAAkOUM446mEFLf7rRwTnkEPK8qSM0eTDOYX6Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 30, 2023 at 09:17:07PM +0300, Gleb Popov wrote:
> 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)?

In general this is because out of tree builds for llvm components are
have been awkward over time and building it by default is the most
sensible way to get it into packages.  I'll likely pull flang out of the
main llvm ports at some point, but that will complicate updates and
generally add work I'd rather not do.

In specific, I hadn't realized the result wasn't usable after the
frontend changes made upstream between 14 and 15.

> > % flang15 -o z a.f90
> > error: /usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/flang/lib/O=
ptimizer/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/O=
ptimizer/CodeGen/Target.cpp:312: not yet implemented: target not implemented
> >
> > Inspection of Target.cpp shows that the word "FreeBSD"
> > does not appear anywhere.
> >
> > --
> > Steve
> >
>=20
> 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.

I'll turn it off by default in llvm15 and the upcoming llvm16.

-- Brooks



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