#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:
--------------------------------------------------------------+-------------
Comment (by leif):
I get a build error for the (old) eclib spkg on '''Solaris''' [SPARC,
32-bit]:
{{{
...
g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING -DNTL_ALL
-I/home/leif/Sage/release/build/mark2/sage-5.0.beta13-gcc-4.7.0/local/include
-I/home/leif/Sage/release/build/mark2/sage-5.0.beta13-gcc-4.7.0/local/include
arith.cc -o arith_n.o
In file included from arith.cc:24:0:
arith.h: In function 'int div(long int, long int)':
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)'
make[3]: *** [arith_n.o] Error 1
make[3]: Leaving directory
`/home/leif/Sage/release/build/mark2/sage-5.0.beta13-gcc-4.7.0/spkg/build/eclib-20100711.p0/src/procs'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/leif/Sage/release/build/mark2/sage-5.0.beta13-gcc-4.7.0/spkg/build/eclib-20100711.p0/src'
Error building eclib
real 0m9.843s
user 0m5.982s
sys 0m0.474s
************************************************************************
Error installing package eclib-20100711.p0
************************************************************************
}}}
Haven't yet tried the new autotools-enabled upstream package; a new
''spkg'' should be posted soon on #10993, hopefully...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12751#comment:21>
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.