Date: Tue, 23 Apr 2024 15:08:10 +0900 From: Hiroo Ono <hiroo@oikumene.net> To: Dimitry Andric <dim@FreeBSD.org> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: llvm and Undefined symbols: ___truncsfbf2 problem Message-ID: <20240423150810.6e00b654@nowhere.oikumene.ukehi.net> In-Reply-To: <AB4F90B3-2096-4CD9-8A72-CF2C0A4D654A@FreeBSD.org> References: <20240411220735.069cb283@nowhere.oikumene.ukehi.net> <AB4F90B3-2096-4CD9-8A72-CF2C0A4D654A@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <dim@FreeBSD.org> wrote: > On 11 Apr 2024, at 15:07, Hiroo Ono <hiroo@oikumene.net> 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 > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240423150810.6e00b654>