#19844: libfplll does not build on Cygwin.
-------------------------------------------------+-------------------------
Reporter: tscrim | Owner: tscrim
Type: defect | Status: new
Priority: major | Milestone: sage-7.0
Component: porting: Cygwin | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: Fixed upstream, but not in a | Work issues:
stable release. | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Changes (by jpflori):
* keywords: linking =>
* upstream: N/A => Fixed upstream, but not in a stable release.
Old description:
> I'm unable to build libfplll, and it looks like it is unlinked with mpfr:
> {{{
> .libs/fplll.o:fplll.cpp:(.text$_ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t[__ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t]+0x2e):
> undefined reference to `fplll::FP_NR<long double>::mul(fplll::FP_NR<long
> double> const&, fplll::FP_NR<long double> const&, mpfr_rnd_t)'
> .libs/fplll.o:fplll.cpp:(.text$_ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t[__ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t]+0x4e):
> undefined reference to `fplll::FP_NR<long double>::add(fplll::FP_NR<long
> double> const&, fplll::FP_NR<long double> const&, mpfr_rnd_t)'
> .libs/fplll.o:fplll.cpp:(.text$_ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t[__ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t]+0x59):
> undefined reference to `fplll::FP_NR<long double>::~FP_NR()'
> .libs/fplll.o:fplll.cpp:(.text$_ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t[__ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t]+0x68):
> undefined reference to `fplll::FP_NR<long double>::~FP_NR()'
> }}}
>
> Full log attached.
New description:
Lond double instatiation of FP_NR is used in fplll.c but never defined
whence the failure to build libfplll:
{{{
.libs/fplll.o:fplll.cpp:(.text$_ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t[__ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t]+0x2e):
undefined reference to `fplll::FP_NR<long double>::mul(fplll::FP_NR<long
double> const&, fplll::FP_NR<long double> const&, mpfr_rnd_t)'
.libs/fplll.o:fplll.cpp:(.text$_ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t[__ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t]+0x4e):
undefined reference to `fplll::FP_NR<long double>::add(fplll::FP_NR<long
double> const&, fplll::FP_NR<long double> const&, mpfr_rnd_t)'
.libs/fplll.o:fplll.cpp:(.text$_ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t[__ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t]+0x59):
undefined reference to `fplll::FP_NR<long double>::~FP_NR()'
.libs/fplll.o:fplll.cpp:(.text$_ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t[__ZN5fplll5FP_NRIeE6addmulERKS1_S3_10mpfr_rnd_t]+0x68):
undefined reference to `fplll::FP_NR<long double>::~FP_NR()'
}}}
Full log attached.
Fixed by:
*
https://github.com/dstehle/fplll/commit/c3b5f7373967b83ba6219324084ffcfc7d9a1d18
--
--
Ticket URL: <http://trac.sagemath.org/ticket/19844#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.