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