#12369: Add a gcc package
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Reporter: jdemeyer
|
Owner:
Type: task
|
Status: needs_work
Priority: major
|
Milestone: sage-5.0
Component: packages
|
Resolution:
Keywords:
| Work
issues:
Report Upstream: N/A
|
Reviewers: Simon King
Authors: Jeroen Demeyer
| Merged
in:
Dependencies: #12479, #12602, #12608, #12609, #12647, #10492, #12367,
#12368, #12405, #12570, #12574, #12423, #12425, #12456, #12363, #12223, #12515,
#12519, #12548, #12562, #12629, #12638, #12714, #12647, #12739, #12112 |
Stopgaps:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Comment (by SimonKing):
Here is another experience:
I patched the gcc spkg as follows:
{{{
#!diff
diff --git a/spkg-install b/spkg-install
Index: spkg-install
===================================================================
--- a/spkg-install
+++ b/spkg-install
@@ -82,6 +82,8 @@
../src/configure \
--prefix="$SAGE_LOCAL" \
--with-local-prefix="$SAGE_LOCAL" \
+ --with-cloog="$SAGE_LOCAL" --with-ppl="$SAGE_LOCAL" \
+ --enable-lto \
--with-gmp="$SAGE_LOCAL" --with-mpfr="$SAGE_LOCAL" --with-
mpc="$SAGE_LOCAL" \
--with-system-zlib \
--disable-multilib \
}}}
Then, I added the modified gcc spkg to sage-5.0.beta9, replaced the ppl
package by the one from #12672, added the cloog-ppl package from #12666,
replaced the glpk package by the one from #12703, added a new libelf spkg
and of course also added the mpc spkg. I didn't bother to modify the
spkg/deps file, but instead built the gcc spkg manually after installing
the dependencies for graphite and lto support.
I have tried to build Sage with `C(XX)FLAGS="-O3 -march=native -floop-
interchange -floop-strip-mine -floop-block -fno-strict-aliasing -flto"`
and LDFLAGS=-flto. Singular did not build (see #12738) and R did not build
(see #12741), so that I removed `-flto` for these two spkgs.
In principle, it worked. sage -testall resulted in
{{{
All tests passed!
Total time for all tests: 6515.9 seconds
}}}
However, that is significantly ''slower'' than the 4951.8 seconds that
sage -testall would take on this machine without optimization flags and
with gcc 4.6.2.
Note that Leif pointed out that the failures when building Singular and R
might come from a slightly too old ld version on my system. But don't be
afraid: I do ''not'' intend to create a binutils spkg.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12369#comment:218>
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.