#18240: fix MPIR's compliance with c++
-------------------------------------+-------------------------------------
       Reporter:  dimpase            |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.7
      Component:  packages:          |   Resolution:
  standard                           |    Merged in:
       Keywords:                     |    Reviewers:
        Authors:  Dima Pasechnik     |  Work issues:
Report Upstream:  Reported           |       Commit:
  upstream. Developers acknowledge   |  d358636766bf0abae69bb07f154053180bd14a8a
  bug.                               |     Stopgaps:
         Branch:  u/dimpase/18240    |
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by dimpase):

 Replying to [comment:14 leif]:
 > Oh, this is weird:
 >
 > While with the patches to MPIR 4ti2-1.6.2 now "finds" GMP (i.e., MPIR),
 it doesn't build for me (on Sage 6.6) with GCC 4.8.4 nor 4.9.2, but 5.0.1
 (RC1).
 >
 > In the failing builds, GCC complains about
 > {{{
 > ../../src/groebner/VectorArrayAPI.h:144:1: error: redefinition of
 'static void _4ti2_::VectorArrayAPI::convert(const T1&, T2&) [with T1 =
 __gmp_expr<__mpz_struct [1], __mpz_struct [1]>; T2 = long int]'
 >  VectorArrayAPI::convert(const mpz_class& v1, _4ti2_int64_t& v2)
 >  ^
 > ../../src/groebner/VectorArrayAPI.h:130:1: error: 'static void
 _4ti2_::VectorArrayAPI::convert(const T1&, T2&) [with T1 =
 __gmp_expr<__mpz_struct [1], __mpz_struct [1]>; T2 = long int]' previously
 declared here
 >  VectorArrayAPI::convert(const mpz_class& v1, long int& v2)
 >  ^
 > }}}
 > multiple times, where apparently only the last is fatal (= not ignored
 through Make rules); after the first error other things get built and
 installed.
 >
 > This '''might''' be related to MPIR as well, but I'm not sure, and I
 guess you also tested with GCC 4.9.2, so I'm a bit puzzled.
 >

 I don't see any errors in my `logs/pkg/4ti2.log` with Sage's gcc 4.9.2
 (neither on Linux x64, nor on OSX 10.10.3). Unless you can explain how to
 reproduce your problem, I don't think I can do anything with this.

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