#18247: MPIR's configure fails with GCC 5
-------------------------------------------------+-------------------------
       Reporter:  leif                           |        Owner:
           Type:  defect                         |       Status:  new
       Priority:  blocker                        |    Milestone:  sage-6.7
      Component:  packages: standard             |   Resolution:
       Keywords:  GNUC STDC __inline__           |    Merged in:
        Authors:                                 |    Reviewers:
Report Upstream:  Not yet reported upstream;     |  Work issues:
  Will do shortly.                               |       Commit:
         Branch:                                 |     Stopgaps:
   Dependencies:                                 |
-------------------------------------------------+-------------------------

Comment (by leif):

 The following patch to `configure` fixes the issue:
 {{{
 #!diff
 --- src/configure.orig  2014-09-14 21:59:13.000000000 +0200
 +++ src/configure       2015-04-18 21:21:22.170454397 +0200
 @@ -5663,6 +5663,9 @@

  #if defined(__GNUC__) && !defined(__clang__)
  typedef unsigned long long t1;typedef t1*t2;
 +#if defined(__GNUC_STDC_INLINE__)  /* e.g. GCC 5.x default */
 +extern
 +#endif
  __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
  {t1 c,x,r;int
 i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
  f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1
 got[9];int i;
 @@ -6977,6 +6980,9 @@

  #if defined(__GNUC__) && !defined(__clang__)
  typedef unsigned long long t1;typedef t1*t2;
 +#if defined(__GNUC_STDC_INLINE__)  /* e.g. GCC 5.x default */
 +extern
 +#endif
  __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
  {t1 c,x,r;int
 i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
  f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1
 got[9];int i;
 }}}

 (Haven't messed with `configure.ac`, its source, yet.)

--
Ticket URL: <http://trac.sagemath.org/ticket/18247#comment:1>
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.

Reply via email to