[Bug 232802] libmpfr 4.0.1 missing required patches
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Oct 30 05:50:52 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232802
Bug ID: 232802
Summary: libmpfr 4.0.1 missing required patches
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: dclarke at blastwave.org
The mpfr project releases patches on a regular schedule and these are
quite important to normal function.
Following test code will confirm :
#define _XOPEN_SOURCE 600
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <gmp.h>
#include <mpfr.h>
int main (int argc, char *argv[])
{
printf("GMP library version : %d.%d.%d\n",
__GNU_MP_VERSION,
__GNU_MP_VERSION_MINOR,
__GNU_MP_VERSION_PATCHLEVEL );
printf("MPFR library: %-12s\n", mpfr_get_version ());
printf("MPFR header: %s (based on %d.%d.%d)\n",
MPFR_VERSION_STRING,
MPFR_VERSION_MAJOR,
MPFR_VERSION_MINOR,
MPFR_VERSION_PATCHLEVEL);
if (mpfr_buildopt_tls_p()!=0)
printf(" : compiled as thread safe using TLS\n");
if (mpfr_buildopt_float128_p()!=0)
printf(" : __float128 support enabled\n");
if (mpfr_buildopt_decimal_p()!=0)
printf(" : decimal float support enabled\n");
if (mpfr_buildopt_gmpinternals_p()!=0)
printf(" : compiled with GMP internals\n");
if (mpfr_buildopt_sharedcache_p()!=0)
printf(" : threads share cache per MPFR const\n");
printf("MPFR thresholds file used at compile time : %s\n",
mpfr_buildopt_tune_case ());
return EXIT_SUCCESS;
}
Output on a system with up to date libmpfr should say :
c$ ./ver
GMP library version : 6.1.2
MPFR library: 4.0.1-p13
MPFR header: 4.0.1-p13 (based on 4.0.1)
: compiled as thread safe using TLS
: __float128 support enabled
MPFR thresholds file used at compile time : default
c$
Or perhaps :
n0x$ ./ver
GMP library version : 6.1.2
MPFR library: 4.0.1-p13
MPFR header: 4.0.1-p13 (based on 4.0.1)
MPFR thresholds file used at compile time : src/sparc64/mparam.h
n0x$
However FreeBSD 12.0 beta 2 reports :
hydra $ uname -a
FreeBSD hydra 12.0-BETA2 FreeBSD 12.0-BETA2 r339753 GENERIC amd64
hydra $ ldd ver
ver:
libgmp.so.10 => /usr/local/lib/libgmp.so.10 (0x800646000)
libmpfr.so.6 => /usr/local/lib/libmpfr.so.6 (0x8006c9000)
libc.so.7 => /lib/libc.so.7 (0x800742000)
hydra $ ./ver
GMP library version : 6.1.2
MPFR library: 4.0.1
MPFR header: 4.0.1 (based on 4.0.1)
: compiled as thread safe using TLS
MPFR thresholds file used at compile time : src/amd/k8/mparam.h
hydra $
Patches are trivial to apply and are available at the project site
https://www.mpfr.org/mpfr-current/#download
See section "Bugs" there.
Be advised that while both gmp and mpfr are compiler and system agnostic the
gcc compiler normally needs them during bootstrap phase and thus the gcc8
package may also be updated but this is not strictly necessary.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list