#12115: New MPIR won't build on Cygwin
----------------------------------------------------------------+-----------
Reporter: kcrisman |
Owner: tbd
Type: defect |
Status: needs_review
Priority: major |
Milestone: sage-5.3
Component: cygwin |
Resolution:
Keywords: mpir cygwin | Work
issues:
Report Upstream: None of the above - read trac for reasoning. |
Reviewers:
Authors: Karl-Dieter Crisman, Jean-Pierre Flori | Merged
in:
Dependencies: |
Stopgaps:
----------------------------------------------------------------+-----------
Changes (by {'newvalue': u'Karl-Dieter Crisman, Jean-Pierre Flori', 'oldvalue':
''}):
* keywords: => mpir cygwin
* status: new => needs_review
* upstream: Fixed upstream, in a later stable release. => None of the
above - read trac for reasoning.
* author: => Karl-Dieter Crisman, Jean-Pierre Flori
Old description:
> I have a repeatable failure. This is presumably due to the MPIR
> upgrade in 4.8.alpha0 at #8664.
> {{{
> /home/Administrator/sage-4.8.alpha3/spkg/pipestatus "sage-spkg
> ${SAGE_SPKG_OPTS} mpir-2.1.3.p7 2>&1" "tee -a
> /home/Administrator/sage-4.8.alpha3/spkg/logs/mpir-2.1.3.p7.log"
> mpir-2.1.3.p7
> Machine:
> CYGWIN_NT-6.1-WOW64 CET03791 1.7.9(0.237/5/3) 2011-03-29 10:10 i686
> Cygwin
> Deleting directories from past builds of previous/current versions of
> mpir-2.1.3.p7
> Extracting package
> /home/Administrator/sage-4.8.alpha3/spkg/standard/mpir-2.1.3.p7.spkg
> ...
> -rw-r--r-- 1 Administrator None 3760213 Oct 30 20:25
> /home/Administrator/sage-4.8.alpha3/spkg/standard/mpir-2.1.3.p7.spkg
> Finished extraction
> ****************************************************
> Host system
> uname -a:
> CYGWIN_NT-6.1-WOW64 CET03791 1.7.9(0.237/5/3) 2011-03-29 10:10 i686
> Cygwin
> ****************************************************
> <snip>
> checking for BSD-compatible nm... /usr/bin/nm -B
> configure: error: cannot build both static and DLL, since mpir.h is
> different for each.
> Use "--disable-static --enable-shared" to build just a DLL.
> Error configuring MPIR. (See above for the options passed to it.)
> real 2m6.922s
> user 0m9.886s
> sys 0m13.056s
> ************************************************************************
> Error installing package mpir-2.1.3.p7
> ************************************************************************
> Please email sage-devel (http://groups.google.com/group/sage-devel)
> explaining the problem and including the relevant part of the log file
> /home/Administrator/sage-4.8.alpha3/spkg/logs/mpir-2.1.3.p7.log
> Describe your computer, operating system, etc.
> If you want to try to fix the problem yourself, *don't* just cd to
> /home/Administrator/sage-4.8.alpha3/spkg/build/mpir-2.1.3.p7 and type
> 'make' or whatever is appropriate.
> Instead, the following commands setup all environment variables
> correctly and load a subshell for you to debug the error:
> (cd '/home/Administrator/sage-4.8.alpha3/spkg/build/mpir-2.1.3.p7'
> && '/home/Administrator/sage-4.8.alpha3/sage' -sh)
> When you are done debugging, you can type "exit" to leave the
> subshell.
> ************************************************************************
> standard/deps:208: recipe for target `installed/mpir-2.1.3.p7' failed
> }}}
> This is due to the change in mpir-2.1.3.p1 that enables the static
> library.
> {{{
> - SAGE_CONF_OPTS="--enable-shared --disable-static"
> + # Also build the static library to be used by e.g. ECM:
> + # SAGE_CONF_OPTS="--enable-shared --disable-static"
> + SAGE_CONF_OPTS="--enable-shared --enable-static"
> + # (Further options to 'configure' are added below.)
> }}}
New description:
The recent MPIR versions can only be built shared OR static on Cygwin, not
both.
Moreover, MPIR configure scripts gets confused if Cygwin, which is only 32
bits, is ran on a 64 bits Windows.
Hence the following spkg sets ABI=32 (to tackle the second problem) and
only builds a shared version of the library (to tackle the first one).
http://perso.telecom-paristech.fr/~flori/sage/mpir-2.4.0.p7.spkg
--
Comment:
Updated spkg based on mpir-2.4.0.p6 available at
http://perso.telecom-paristech.fr/~flori/sage/mpir-2.4.0.p7.spkg
This chooses to build the shared library only and sets ABI=32 on Cygwin.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12115#comment:19>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.