From nobody Mon Jan 30 19:38:22 2023 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P5JPq23mVz3cLgR for ; Mon, 30 Jan 2023 19:38:23 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5JPp5gk1z3m3m for ; Mon, 30 Jan 2023 19:38:22 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of brooks@spindle.one-eyed-alien.net has no SPF policy when checking 199.48.129.229) smtp.mailfrom=brooks@spindle.one-eyed-alien.net; dmarc=none Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 6091F3C0199; Mon, 30 Jan 2023 19:38:22 +0000 (UTC) Date: Mon, 30 Jan 2023 19:38:22 +0000 From: Brooks Davis To: Theron Cc: ports@freebsd.org Subject: Re: lang/llvm15 -- Why is flang being built? Message-ID: References: <0f73dc2a-370b-8c70-a300-1f36e8169e44@gmail.com> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <0f73dc2a-370b-8c70-a300-1f36e8169e44@gmail.com> X-Spamd-Result: default: False [-0.79 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.991]; FORGED_SENDER(0.30)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; MLMMJ_DEST(0.00)[ports@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; FREEFALL_USER(0.00)[brooks]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4P5JPp5gk1z3m3m X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N 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 > >> 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