#12751: Sage fails to build with GCC-4.7.0
--------------------------------------------------------------+-------------
Reporter: mariah | Owner:
GeorgSWeber
Type: defect | Status:
new
Priority: blocker | Milestone:
sage-5.0
Component: build | Resolution:
Keywords: GCC 4.7.0 C++11 -fpermissive compiler bugs | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
--------------------------------------------------------------+-------------
Old description:
> Sage 5.0.beta10 fails to build using GCC 4.7.0 on Skynet/eno and other
> Linux systems, for different reasons.
>
> * GFan: #12760
> * Givaro: #12761
> * !LinBox: #12762
> * !PolyBoRi: #12750, #12655
> * MPIR on ia64 (Itanium): #12765 (GCC bug) -- #11616 also provides an
> MPIR 2.'''4.0'''.p3 spkg working around this.
> * MPFR on ia64 (Itanium): #12837 (same GCC bug) -- Note that MPFR is
> also a prerequisite for building the GCC spkg.
> * GMP-ECM, FLINT, NTL, PARI and zn_poly (as well as the Sage library)
> all fail to build on ia64 due to the same bug,
> * R fails to build on ia64 during byte-compiling; seems to be a
> different issue, but same work-around works.
> * Two files (`compat` and `linear`) of PARI's test suite fail due to
> segfaults when compiling with `-O3`/`-O2`/`-O1`, at least on Linux
> x86_64.
> * zlib on Solaris: #12800
> * eclib on Solaris (see comments below; this seems to be a Solaris
> header issue)
New description:
Sage 5.0.beta10 fails to build using GCC 4.7.0 on Skynet/eno and other
Linux systems, for different reasons.
* GFan: #12760
* Givaro: #12761
* !LinBox: #12762
* !PolyBoRi: #12750, #12655
* MPIR on ia64 (Itanium): #12765 (GCC bug) -- #11616 also provides an
MPIR 2.'''4.0'''.p3 spkg working around this.
* MPFR on ia64 (Itanium): #12837 (same GCC bug) -- Note that MPFR is also
a prerequisite for building the GCC spkg.
* GMP-ECM, FLINT, NTL, PARI and zn_poly (as well as the Sage library) all
fail to build on ia64 due to the same bug,
* R fails to build on ia64 during byte-compiling; seems to be a different
issue, but same work-around works.
* Two files (`compat` and `linear`) of PARI's test suite fail due to
segfaults when compiling with `-O3`/`-O2`/`-O1`, at least on Linux x86_64.
* zlib on Solaris: #12800
* eclib on Solaris (see comments below; this is a Solaris header issue,
will be fixed in a new spkg at #10993)
--
Comment (by leif):
Replying to [comment:22 leif]:
> Replying to [comment:21 leif]:
> > I get a build error for the (old) eclib spkg on '''Solaris''' [SPARC,
32-bit]:
> > {{{
> > ...
> > arith.h:182:39: error: 'int div(long int, long int)' conflicts with
previous using declaration 'std::ldiv_t std::div(long int, long int)'
> > ...
> > }}}
> >
> > Haven't yet tried the new autotools-enabled upstream package; a new
''spkg'' should be posted soon on #10993, hopefully...
>
> It fails in the same way; yet I have no idea why this only fails on
Solaris, as AFAIK
>
> {{{
> #!C++
> std::ldiv_t std::div(long int, long int)
> }}}
>
> is pretty C++98. Maybe on Solaris just some `using namespace std;` gets
pulled in, which isn't present on other systems.
Now fixed in the new upstream tarball (eclib-2012-04-15.tar.gz), by
renaming the function. (See #10993.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12751#comment:26>
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.