From nobody Tue Apr 23 06:08:10 2024 X-Original-To: freebsd-current@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 4VNsB10zzfz5JXK1 for ; Tue, 23 Apr 2024 06:08:25 +0000 (UTC) (envelope-from hiroo@oikumene.net) Received: from barleycorn.oikumene.net (tk2-231-25124.vs.sakura.ne.jp [160.16.110.128]) (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 4VNs9z4tZcz4rBL; Tue, 23 Apr 2024 06:08:22 +0000 (UTC) (envelope-from hiroo@oikumene.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hiroo@oikumene.net designates 160.16.110.128 as permitted sender) smtp.mailfrom=hiroo@oikumene.net Received: from nowhere.oikumene.ukehi.net (KD059129091046.ppp-bb.dion.ne.jp [59.129.91.46]) by barleycorn.oikumene.net (Postfix) with ESMTPSA id 866DF61F8E; Tue, 23 Apr 2024 15:08:12 +0900 (JST) Received: from nowhere.oikumene.ukehi.net ([IPv6:240f:3f:802f:2:82c1:6eff:fef8:b41e]) by nowhere.oikumene.ukehi.net (8.18.1/8.18.1) with ESMTP id 43N68Anj044938; Tue, 23 Apr 2024 15:08:11 +0900 (JST) (envelope-from hiroo@oikumene.net) X-Authentication-Warning: nowhere.oikumene.ukehi.net: Host [IPv6:240f:3f:802f:2:82c1:6eff:fef8:b41e] claimed to be nowhere.oikumene.ukehi.net Date: Tue, 23 Apr 2024 15:08:10 +0900 From: Hiroo Ono To: Dimitry Andric Cc: freebsd-current Subject: Re: llvm and Undefined symbols: ___truncsfbf2 problem Message-ID: <20240423150810.6e00b654@nowhere.oikumene.ukehi.net> In-Reply-To: References: <20240411220735.069cb283@nowhere.oikumene.ukehi.net> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.41; amd64-portbld-freebsd14.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.17 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.87)[-0.871]; R_SPF_ALLOW(-0.20)[+ip4:160.16.110.128]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; HAS_XAW(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:9370, ipnet:160.16.0.0/17, country:JP]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[oikumene.net]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+] X-Rspamd-Queue-Id: 4VNs9z4tZcz4rBL Thank you. I updated my current to recent current and confirmed that julia 1.11.0 beta1 builds and runs with the system clang (18.1.4). On Thu, 18 Apr 2024 00:36:28 +0200 Dimitry Andric wrote: > On 11 Apr 2024, at 15:07, Hiroo Ono wrote: > > > > Hello, > > > > I am trying to update the lang/julia port to 1.11.0 (currently > > still in beta 1). I seem to ran across this problem initially > > reported on MacOS. https://github.com/JuliaLang/julia/issues/52067 > > > > The llvm team seems to have patched this problem only for Darwin. > > https://github.com/llvm/llvm-project/pull/84192 > > > > I think the solution is also needed for FreeBSD, but should I > > report it directly to llvm team or report here or to FreeBSD > > bugzilla and ask toolchain maintainer of FreeBSD to report > > upstream? > > The __bf16 type is only available on some architectures, and only > supported by relatively recent compiler versions, in combination with > some runtime support (i.e. compiler-rt or libgcc). > > Approximately: it is available on aarch64, amd64, arm (with fp), i386 > (with sse2) and riscv. And it is supported by clang 15 and later > (though not for riscv, which requires clang 18), and gcc 13 and later. > > However, the runtime support in FreeBSD was only added with the recent > merge of llvm 18. The necessary library functions (truncdfbf2 and > truncsfbf2) are now in compiler-rt. > > -Dimitry > >