#5847: Update GMP-ECM to 6.3
------------------------------------------------------------+---------------
    Reporter:  mabshoff                                     |         Owner:  
leif                          
        Type:  enhancement                                  |        Status:  
needs_work                    
    Priority:  major                                        |     Milestone:  
sage-4.7.1                    
   Component:  packages                                     |    Resolution:    
                            
    Keywords:  MPIR elliptic curves libecm ecm spkg         |   Work_issues:    
                            
    Upstream:  N/A                                          |      Reviewer:  
Leif Leonhardy, Dima Pasechnik
      Author:  Mike Hansen, Leif Leonhardy, Jeroen Demeyer  |        Merged:    
                            
Dependencies:                                               |  
------------------------------------------------------------+---------------
Changes (by mariah):

  * status:  needs_review => needs_work


Comment:

 sage-4.7.1-alpha1 built with http://spkg-
 upload.googlecode.com/files/ecm-6.3.p2.spkg on skynet/flavius
 (x86_64-Linux-k8-fc) fails test:

 {{{
 flavius% ./sage -t -long -force_lib "devel/sage/sage/libs/libecm.pyx"
 sage -t -long -force_lib "devel/sage/sage/libs/libecm.pyx"
 **********************************************************************
 File "/home/mariah/sage/sage-4.7.1.alpha1-x86_64-Linux-k8-fc-
 review-5847/devel/sage/sage/libs/libecm.pyx", line 14:
     sage: import sage.libs.libecm
 Exception raised:
     Traceback (most recent call last):
       File "/home/mariah/sage/sage-4.7.1.alpha1-x86_64-Linux-k8-fc-
 review-5847/local/bin/ncadoctest.py", line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/home/mariah/sage/sage-4.7.1.alpha1-x86_64-Linux-k8-fc-
 review-5847/local/bin/sagedoctest.py", line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/home/mariah/sage/sage-4.7.1.alpha1-x86_64-Linux-k8-fc-
 review-5847/local/bin/ncadoctest.py", line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_0[2]>", line 1, in <module>
         import sage.libs.libecm###line 14:
     sage: import sage.libs.libecm
     ImportError: /home/mariah/sage/sage-4.7.1.alpha1-x86_64-Linux-k8-fc-
 review-5847/local/lib/python/site-packages/sage/libs/libecm.so: cannot
 enable executable stack as shared object requires: Permission denied
 **********************************************************************
 }}}

 Looking at the build I see

 {{{
 Copying patched files...
 Adding '-fPIC' to CFLAGS since we don't (also) build a shared library.
 Using additional host-specific CFLAGS: -march=native

 Settings from SAGE_LOCAL/include/gmp.h:
     CC=gcc
     CFLAGS=-O2 -m64 -march=k8 -mtune=k8
 Using CC=gcc
 Using CFLAGS=-march=native -g -O3  -fPIC
 Using CPPFLAGS=
 Using LDFLAGS=
 Using ABI=
 (These settings may get overridden by 'configure' or Makefiles.)
 }}}

 '''Strongly''' suggest ecm be built with same CFLAGS values as gmp/mpir as
 recommended by ecm INSTALL file.

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