clang+libc++ using missing powl
Baptiste Daroussin
bapt at FreeBSD.org
Thu Sep 5 09:58:03 UTC 2013
On Thu, Sep 05, 2013 at 09:52:13AM +0100, David Chisnall wrote:
> On 4 Sep 2013, at 23:38, Baptiste Daroussin <bapt at freebsd.org> wrote:
>
> > As a result we have a lot of fallouts of ports complaining about:
> > undefined reference to `powl'
> >
> > It seems like libc++ is relying on a function we don't have yet in libm, am I
> > missing something?
>
> I've attached a diff that I'd like to commit to msun that should allow these things to link. This:
>
> - Provides thin wrappers around the 8 missing libm functions that libc++ exposes that just call the double versions
>
> - Makes these weak references, so other libraries can replace them with more precise versions if required
>
> - On platforms where long double is greater precision than double (e.g. x86), it emits a linker warning when they are referenced
>
> These can then be replaced by proper versions as they become available (at which point the linker warnings will go away).
>
> David
>
Thanks I'll test it on my next full run, probably tomorrow.
regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20130905/77c003a2/attachment.sig>
More information about the freebsd-current
mailing list