From nobody Mon Jan 30 19:18:20 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 4P5Hz30bV9z3cHyj for ; Mon, 30 Jan 2023 19:18:39 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5Hz20f5qz3jH5 for ; Mon, 30 Jan 2023 19:18:38 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=gukpnMF1; spf=pass (mx1.freebsd.org: domain of theron.tarigo@gmail.com designates 2607:f8b0:4864:20::82e as permitted sender) smtp.mailfrom=theron.tarigo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-qt1-x82e.google.com with SMTP id x17so11136318qto.10 for ; Mon, 30 Jan 2023 11:18:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=ERXkr4C/WNW0k9uJickiZ9kQfy1+kiwvukBhT+ePe3o=; b=gukpnMF1dEkYK0kyYBzP/IOmuW1ezAAHIyn3yt29EUddWj31yASq+YLk1iyMGbPl7H bUCQYz4amgluYFvzOk1oVNVoEKyBbApigHqyOvq94PgabR1Z0sQj1BjYNTM0jUE8FOcO kjh49jItkITWTlsvsJoCpFjzNGGRAAdV5JOtpYP86sRkUzPm5LV0PEwRxhTi/S70B76H z6zkZDWQYxzGveADSZmFwE0rfVv44jMyhEpgcLLj28D7wVtfYrGw19fKvk7bEp7i0S0+ OEaPvdrKyT5u6paJvzcekwQenDrYU0goOFP5A03alrhzMK9GX29AcU8rQULl5X/Mgki+ pQ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ERXkr4C/WNW0k9uJickiZ9kQfy1+kiwvukBhT+ePe3o=; b=h3bMzfYgIuxR9kb3omLqN4VOMAh7WbINfUfClxR3NfXPRnafqYU7sUz/Omn5m3cDfp dTW+1Yc9AqVgVEkhwdwCFSUHrGp9RTcKG3aHgjOjezt3JuSMhdt7m+6Xhi21A1Mp1CCy ryy6iFFIdAFGMRStXG7UlCaO2X6mhyA6Q9bUhOG/nNQAhkVZR0RF6gGVBGb2RdR2xon5 m+0oVwLO6GHLm7CqNjnInTbTb6ZTZdw84Nv9kSyG3sMw7w1spuuSah3fPJ8FegSr/aMz o4GPpmdAAXsfWNJSzF7j6QCY2MpK8Q62PvI2MYns9YyHUeoxaeM8mzvz1usdTerHG0pt BAdw== X-Gm-Message-State: AO0yUKX4WPOwkouFuHX+XDy4BLodld1vv/XuwLT/cbnbtEObfFHHDWOi 795QlseH4bbEt12/kY5PuQLqktPxvHo= X-Google-Smtp-Source: AK7set/h86VVrwo5Urjt28oMVNQXEvUdk5zrbJoVY1X2qVjdyrLZS+uVUSaXyi8Dq/ZmChC9QRIqdQ== X-Received: by 2002:ac8:5f91:0:b0:3b8:6cb2:9174 with SMTP id j17-20020ac85f91000000b003b86cb29174mr5653344qta.40.1675106317067; Mon, 30 Jan 2023 11:18:37 -0800 (PST) Received: from [192.168.2.6] ([71.169.177.193]) by smtp.gmail.com with ESMTPSA id e15-20020ac8414f000000b003b868174e6dsm3093164qtm.4.2023.01.30.11.18.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 11:18:36 -0800 (PST) Message-ID: <0f73dc2a-370b-8c70-a300-1f36e8169e44@gmail.com> Date: Mon, 30 Jan 2023 14:18:20 -0500 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: lang/llvm15 -- Why is flang being built? Content-Language: en-US To: ports@freebsd.org References: From: Theron In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.38 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.39)[-0.387]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82e:from]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[ports@freebsd.org] X-Rspamd-Queue-Id: 4P5Hz20f5qz3jH5 X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N 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 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