From nobody Mon Jan 30 18:37:53 2023 X-Original-To: freebsd-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 4P5H4853TMz3cC1W for ; Mon, 30 Jan 2023 18:38:00 +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 4P5H482P0dz3N8C; Mon, 30 Jan 2023 18:38:00 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Authentication-Results: mx1.freebsd.org; none Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id D59813C0199; Mon, 30 Jan 2023 18:37:53 +0000 (UTC) Date: Mon, 30 Jan 2023 18:37:53 +0000 From: Brooks Davis To: Gleb Popov Cc: sgk@troutmask.apl.washington.edu, freebsd-ports@freebsd.org Subject: Re: lang/llvm15 -- Why is flang being built? Message-ID: References: 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: X-Rspamd-Queue-Id: 4P5H482P0dz3N8C X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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: > > > > 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