Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2013 11:57:58 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        David Chisnall <theraven@FreeBSD.org>
Cc:        "freebsd-numerics@FreeBSD.org" <freebsd-numerics@FreeBSD.org>, "current@freebsd.org Current" <current@FreeBSD.org>
Subject:   Re: clang+libc++ using missing powl
Message-ID:  <20130905095758.GM82066@ithaqua.etoilebsd.net>
In-Reply-To: <80062343-53CD-4CEF-9C47-3BF614DADB64@FreeBSD.org>
References:  <20130904223842.GB82066@ithaqua.etoilebsd.net> <80062343-53CD-4CEF-9C47-3BF614DADB64@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--wKTlTxfx0Fr6BT7S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 05, 2013 at 09:52:13AM +0100, David Chisnall wrote:
> On 4 Sep 2013, at 23:38, Baptiste Daroussin <bapt@freebsd.org> wrote:
>=20
> > As a result we have a lot of fallouts of ports complaining about:
> > undefined reference to `powl'
> >=20
> > It seems like libc++ is relying on a function we don't have yet in libm=
, am I
> > missing something?
>=20
> I've attached a diff that I'd like to commit to msun that should allow th=
ese things to link.  This:
>=20
> - Provides thin wrappers around the 8 missing libm functions that libc++ =
exposes that just call the double versions
>=20
> - Makes these weak references, so other libraries can replace them with m=
ore precise versions if required
>=20
> - On platforms where long double is greater precision than double (e.g. x=
86), it emits a linker warning when they are referenced
>=20
> These can then be replaced by proper versions as they become available (a=
t which point the linker warnings will go away).
>=20
> David
>=20

Thanks I'll test it on my next full run, probably tomorrow.

regards,
Bapt

--wKTlTxfx0Fr6BT7S
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlIoVaYACgkQ8kTtMUmk6EzFngCgpwEpBxuR4Qo39E1pKx+SSaNm
MFYAnjNp9LullZD6OhO5LzrVAUgGVrYD
=kc4V
-----END PGP SIGNATURE-----

--wKTlTxfx0Fr6BT7S--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130905095758.GM82066>