#12369: Add a gcc package
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
       Reporter:  jdemeyer                                                      
                                                                                
                                  |         Owner:  tbd         
           Type:  task                                                          
                                                                                
                                  |        Status:  needs_review
       Priority:  major                                                         
                                                                                
                                  |     Milestone:  sage-5.0    
      Component:  packages                                                      
                                                                                
                                  |    Resolution:              
       Keywords:                                                                
                                                                                
                                  |   Work issues:              
Report Upstream:  N/A                                                           
                                                                                
                                  |     Reviewers:              
        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  |      Stopgaps:              
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Comment (by SimonKing):

 Here are my experiences with
 [http://boxen.math.washington.edu/home/jdemeyer/release/sage-5.0.beta8-gcc/
 the sources containing gcc]. I've put `SAGE_INSTALL_GCC=yes` in all cases.

  1. No C(XX)FLAGS, `MAKE="make"`: Installation went smooth, after
 210m31.660s of real time was the Sage build complete.
  2. No C(XX)FLAGS, `SAGE_PARALLEL_SPKG_BUILD=yes`, `MAKE="make -j4"`:
 Installation went smooth, after 93m32.100s of real time was the Sage build
 complete.
  3. `C(XX)FLAGS="-O3 -march=native"`, `SAGE_PARALLEL_SPKG_BUILD=yes`,
 `MAKE="make -j4"`: Installation hung for several hours during compilation
 of some files from the fplll spkg. Note that So, no success in that
 setting.

 Some additional information on the failing setting: After Ctrl-C, I
 started make again. And now, three cc1plus processes are running for 10
 minutes already, namely
 {{{
 19031 pts/3    R+    10:21 /usr/lib/gcc/x86_64-linux-gnu/4.4.5/cc1plus
 -quiet -I. -I.
 -I/mnt/local/king/SAGE/testinggcc/native/sage-5.0.beta8-gcc/local/include/
 -I/mnt/local/king/SAGE/testinggcc/native/sage-5.0.beta8-gcc/local/include/
 -MD generate.d -MF .deps/generate.Tpo -MP -MT generate.o -D_GNU_SOURCE
 -DPACKAGE_NAME="libfplll" -DPACKAGE_TARNAME="libfplll"
 -DPACKAGE_VERSION="3.0.12" -DPACKAGE_STRING="libfplll 3.0.12"
 -DPACKAGE_BUGREPORT="" -DPACKAGE="libfplll" -DVERSION="3.0.12"
 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
 -DHAVE_LIBGMP=1 -DHAVE_LIBMPFR=1 -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1
 -DHAVE_LIMITS_H=1 -DHAVE_STDLIB_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1
 -DHAVE_STDBOOL_H=1 -DHAVE_FLOOR=1 -DHAVE_POW=1 -DHAVE_RINT=1 -DHAVE_SQRT=1
 -DHAVE_STRTOL=1 -DHAVE_LIBGMP=1 -DHAVE_LIBMPFR=1 generate.cpp -march=core2
 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-
 line-size=64 --param l2-cache-size=256 -mtune=core2 -quiet -dumpbase
 generate.cpp -auxbase-strip generate.o -O3 -fPIC -o /tmp/ccPeDeVW.s
 19036 pts/3    R+    10:21 /usr/lib/gcc/x86_64-linux-gnu/4.4.5/cc1plus
 -quiet -I. -I.
 -I/mnt/local/king/SAGE/testinggcc/native/sage-5.0.beta8-gcc/local/include/
 -I/mnt/local/king/SAGE/testinggcc/native/sage-5.0.beta8-gcc/local/include/
 -MD llldiff.d -MF .deps/llldiff.Tpo -MP -MT llldiff.o -D_GNU_SOURCE
 -DPACKAGE_NAME="libfplll" -DPACKAGE_TARNAME="libfplll"
 -DPACKAGE_VERSION="3.0.12" -DPACKAGE_STRING="libfplll 3.0.12"
 -DPACKAGE_BUGREPORT="" -DPACKAGE="libfplll" -DVERSION="3.0.12"
 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
 -DHAVE_LIBGMP=1 -DHAVE_LIBMPFR=1 -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1
 -DHAVE_LIMITS_H=1 -DHAVE_STDLIB_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1
 -DHAVE_STDBOOL_H=1 -DHAVE_FLOOR=1 -DHAVE_POW=1 -DHAVE_RINT=1 -DHAVE_SQRT=1
 -DHAVE_STRTOL=1 -DHAVE_LIBGMP=1 -DHAVE_LIBMPFR=1 llldiff.cpp -march=core2
 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-
 line-size=64 --param l2-cache-size=256 -mtune=core2 -quiet -dumpbase
 llldiff.cpp -auxbase-strip llldiff.o -O3 -fPIC -o /tmp/ccxiy3ks.s
 19044 pts/3    R+    10:01 /usr/lib/gcc/x86_64-linux-gnu/4.4.5/cc1plus
 -quiet -I. -I.
 -I/mnt/local/king/SAGE/testinggcc/native/sage-5.0.beta8-gcc/local/include/
 -I/mnt/local/king/SAGE/testinggcc/native/sage-5.0.beta8-gcc/local/include/
 -MD fplll_micro-main.d -MF .deps/fplll_micro-main.Tpo -MP -MT fplll_micro-
 main.o -D_GNU_SOURCE -DPACKAGE_NAME="libfplll"
 -DPACKAGE_TARNAME="libfplll" -DPACKAGE_VERSION="3.0.12"
 -DPACKAGE_STRING="libfplll 3.0.12" -DPACKAGE_BUGREPORT=""
 -DPACKAGE="libfplll" -DVERSION="3.0.12" -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBGMP=1
 -DHAVE_LIBMPFR=1 -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1 -DHAVE_LIMITS_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1
 -DHAVE_FLOOR=1 -DHAVE_POW=1 -DHAVE_RINT=1 -DHAVE_SQRT=1 -DHAVE_STRTOL=1
 -DHAVE_LIBGMP=1 -DHAVE_LIBMPFR=1 -DFAST_BUILD main.cpp -march=core2 -mcx16
 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-
 size=64 --param l2-cache-size=256 -mtune=core2 -quiet -dumpbase main.cpp
 -auxbase-strip fplll_micro-main.o -O3 -fPIC -o /tmp/ccGKc3Lc.s
 }}}

 I am not sure whether this means "needs work", because `CFLAGS="-O3
 -march=native"` is probably not officially supported...

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

Reply via email to