Discussion:
llvm and Undefined symbols: ___truncsfbf2 problem
(too old to reply)
Hiroo Ono
2024-04-11 13:07:35 UTC
Permalink
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?
----
Hiroo Ono <***@oikumene.net>


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Dimitry Andric
2024-04-17 22:36:28 UTC
Permalink
Post by Hiroo Ono
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



--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Hiroo Ono
2024-04-23 06:08:10 UTC
Permalink
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
Post by Dimitry Andric
Post by Hiroo Ono
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
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...