From nobody Wed Apr 17 22:36:28 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 4VKbNs71clz5HJ2y for ; Wed, 17 Apr 2024 22:36:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VKbNs6X07z4fSl; Wed, 17 Apr 2024 22:36:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713393389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MBBmQ7HQi/sgCEc6PcgCQXr+6gSqvAJPDet+1hz+fGg=; b=vqWO3+Zye+7twWdnIUCUC185ggwmDK37cWZ6+pVZyglhRIvufL82sQSlkunhqgwPsCaFqA xElFw5o8JcEEIsZBY6vW+YMeEHWsnWeL9rjZeO4T+t/FfnGlVcvWA57JxYQcXfWzH+xW+0 9jbnvUWp5JNW1eGQpggL4+oEHbH76I4baHFajkwq/JPiY9hyX6X2Og1rzkvCWFqx9/1VAr AJY+mmEgum/1mZ2EYWXqfGCqCkZtpf1D7DVe0Y43EW6SFasu3fkpP4F3RQK9qWcuj5miIj 7DQcUpzXo6XZvVZW4cB7COHBjhieASwij2WKo8xnf4BjrGNKolIXQ5TvZOBl/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713393389; a=rsa-sha256; cv=none; b=c9WYfOFiiyg9ZgqhfGIakVbM3gCd2CP8FVtKagQEK/ldVK6k2o1tsuDwaaxVDulZfFsvSh 2UruMKUeFE/wR2nS5+K4LBMO1ICOtHQQN0fYaPOyxxhhLa81JQ7U7aGQ2AtuVFDB1p/Bot EotN+Ob7S664GbQzsFFczP7YvyWT8oozZ4TVoZ7M7Tpv5ub9E9f2GxlaPt4e+a04+w98QX +3q/k55m7R0BGAHcKhhvOAseLKO0TiGDHmbSEcxJcFtX8xEILxE5ALjetRyO22aHNpDyTI 5PyAtQifJmU/ovZyf6TrvwB9rEgU6zKlUuUPsgDhrkpDaisUsip4GRWNyH35mg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713393389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MBBmQ7HQi/sgCEc6PcgCQXr+6gSqvAJPDet+1hz+fGg=; b=nZ/JwsGiX79kfbNLHurXL+csFqGHaT9+06Ytvf30REO3BqmMbK7b8pIQZpi7Hb7KwWluEq TiBkj7okpP6TKySIRAtCJkyKSDH5W54N8Q2UF4qgRyWL4RRxhXnMqHTp0JT//S0Y5Tlp/d IV5EQ58cfbBiB1o4V1nl4DHkER40pqU5RdVeOtzMhsSYRmmZ/HJnlU36EK5sXCUMe2aPTu 6UhakzhlPTngMrfw0Du55En1Yk3vpIhHBe1B5PtvPtA8eF3q5wVeXJB7+pyxI4epOjpf6y b3qFIYya7JbrCm2spVyccSsp1ek6Ky/NaLYGelC5/Wh7cKC8k8Zd3Co7nnDsJQ== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VKbNs5PnSz12p1; Wed, 17 Apr 2024 22:36:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C77AE5EDED; Thu, 18 Apr 2024 00:36:28 +0200 (CEST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.700.6.1.1\)) Subject: Re: llvm and Undefined symbols: ___truncsfbf2 problem From: Dimitry Andric In-Reply-To: <20240411220735.069cb283@nowhere.oikumene.ukehi.net> Date: Thu, 18 Apr 2024 00:36:28 +0200 Cc: freebsd-current Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240411220735.069cb283@nowhere.oikumene.ukehi.net> To: Hiroo Ono X-Mailer: Apple Mail (2.3731.700.6.1.1) On 11 Apr 2024, at 15:07, Hiroo Ono wrote: >=20 > Hello, >=20 > 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 >=20 > The llvm team seems to have patched this problem only for Darwin. > https://github.com/llvm/llvm-project/pull/84192 >=20 > 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