#12115: MPIR won't build on Cygwin due to building static library
------------------------+---------------------------------------------------
Reporter: kcrisman | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.8
Component: cygwin | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
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.)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12115>
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.