Date: Mon, 30 Jan 2023 19:38:22 +0000 From: Brooks Davis <brooks@freebsd.org> To: Theron <theron.tarigo@gmail.com> Cc: ports@freebsd.org Subject: Re: lang/llvm15 -- Why is flang being built? Message-ID: <Y9gcrl1mA/2G%2BqTq@spindle.one-eyed-alien.net> In-Reply-To: <0f73dc2a-370b-8c70-a300-1f36e8169e44@gmail.com> References: <Y9f3QaK%2BQ/O6KlAi@troutmask.apl.washington.edu> <CALH631m=XPMsNAAkOUM446mEFLf7rRwTnkEPK8qSM0eTDOYX6Q@mail.gmail.com> <Y9gOgWgQURbPeaz0@spindle.one-eyed-alien.net> <0f73dc2a-370b-8c70-a300-1f36e8169e44@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 30, 2023 at 02:18:20PM -0500, Theron wrote: > On 1/30/23 13:37, Brooks Davis wrote: > > 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: > >>> % 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 implemen= ted > >>> % 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 implemen= ted > >>> > >>> 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. > > I'll turn it off by default in llvm15 and the upcoming llvm16. > > > > -- Brooks >=20 > with llvm-devel 16.0.d20230109 : >=20 > % /usr/local/llvm-devel/bin/flang -o orbit orbit.f90?? -O3 -Wall -Wextra= =20 > -Werror?? -L/usr/local/llvm-devel/lib -lFortran_main -lFortranRuntime=20 > -lFortranDecimal -lm >=20 > produces a working executable for me, with results agreeing within 1ULP= =20 > with those of the executable compiled by devel/flang (expired).??=20 > Performance is reasonable (though inferior, but this is only one test). > Thus basic executable functionality, and at least one real world program= =20 > work.?? I do not see a reason to omit flang from upcoming llvm16. Excellent. Thank you for the report. -- Brooks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Y9gcrl1mA/2G%2BqTq>