#15697: Upgrade MPC to latest upstream
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: closed
Priority: minor | Milestone: sage-6.2
Component: packages: | Resolution: fixed
standard | Merged in:
Keywords: | Reviewers: François Bissey
Authors: Jeroen Demeyer | Work issues:
Report Upstream: N/A | Commit:
Branch: | 00a5937b33cd8ad6f1eafbccfbab1d4f73321bf3
u/jdemeyer/ticket/15697 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by leif):
Ah, the problem arises when ''none of'' `/lib/cpp gcc cc c99` work (with
`$CPPFLAGS`), since then `GMP_CC` and `GMP_CFLAGS` will remain
'''empty''', and / but
{{{
#!sh
test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" -o "x$GMP_CC" = "x__GMP_CC"
}}}
yields `false`, and
{{{
#!sh
AC_MSG_RESULT(yes [CC=$GMP_CC CFLAGS=$GMP_CFLAGS])
}}}
is executed, but '''not''' what follows (since `test -n
"$GMP_CC$GMP_CFLAGS"` yields `false`):
{{{
#!sh
# Check for validity of CC and CFLAGS obtained from gmp.h
if test -n "$GMP_CC$GMP_CFLAGS" ; then
AC_MSG_CHECKING(for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS)
echo "int main (void) { return 0; }" > conftest.c
if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
AC_MSG_RESULT(yes)
CC=$GMP_CC
CFLAGS=$GMP_CFLAGS
else
AC_MSG_RESULT(no)
fi
fi
}}}
[[BR]]
I ended up with
{{{
...
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for CC and CFLAGS in gmp.h... yes CC= CFLAGS=
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `$SAGE_BUILD_DIR/mpc-1.0.p0/src':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error configuring MPC.
real 0m1.737s
user 0m0.032s
sys 0m0.068s
************************************************************************
Error installing package mpc-1.0.p0
************************************************************************
}}}
(because `gcc` didn't work with `$CFLAGS` either, while `$CC` or
`__GMP_CC` from `gmp.h` would have worked).
(In the mpc-1.0.p0 spkg, we already use[d] the related
[https://gforge.inria.fr/tracker/?func=detail&group_id=131&aid=14669&atid=607
upstream patch] (included in MPC 1.0.1) fixing
[http://trac.sagemath.org/ticket/13290#comment:13 a slightly different
issue] with `GMP_CC` and `GMP_CFLAGS`, so the same holds for MPC 1.0.2.)
--
Ticket URL: <http://trac.sagemath.org/ticket/15697#comment:20>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.