#5310: Add an spkg to Sage for Msieve factoring program
--------------------------------------------+-------------------------------
   Reporter:  jblakeslee                    |          Owner:                   
    
       Type:  enhancement                   |         Status:  needs_work       
    
   Priority:  major                         |      Milestone:  sage-4.8         
    
  Component:  interfaces                    |       Keywords:  msieve, 
factorization
Work_issues:  does not work on 32-bit       |       Upstream:  N/A              
    
   Reviewer:  David Kirkby, Leif Leonhardy  |         Author:  André Apitzsch   
    
     Merged:                                |   Dependencies:                   
    
--------------------------------------------+-------------------------------
Changes (by zimmerma):

  * status:  needs_review => needs_work
  * work_issues:  => does not work on 32-bit


Comment:

 I tried installing the spkg with Sage 4.7.2 on a 32-bit computer and it
 failed:
 {{{
 macaron% ./sage -i msieve-1.49.p0.spkg
 ...

 ranlib libmsieve.a
 gcc -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -march=k8 -DNDEBUG
 -D_LARGEFILE64_SOURCE  -Wall -W -DMSIEVE_SVN_VERSION="\"exported\"" -I.
 -Iinclude -Ignfs -Ignfs/poly -Ignfs/poly/stage1 -DHAVE_GMP_ECM
 "-I/localdisk/tmp/sage-4.7.2/local/include" demo.c -o msieve  \
                         libmsieve.a -lecm -lz -lgmp -lm -lpthread
 libmsieve.a(sieve.qo): In function `do_sieving':
 sieve.c:(.text+0x1335): undefined reference to `qs_core_sieve_p3_64k'
 sieve.c:(.text+0x175b): undefined reference to `qs_core_sieve_p2_64k'
 sieve.c:(.text+0x2556): undefined reference to `qs_core_sieve_pm_32k'
 sieve.c:(.text+0x2603): undefined reference to `qs_core_sieve_k7_64k'
 sieve.c:(.text+0x266b): undefined reference to `qs_core_sieve_k7xp_64k'
 collect2: ld returned 1 exit status
 make: *** [x86_64] Error 1
 Error building Msieve -- no file msieve was produced.

 real    1m33.556s
 user    0m29.657s
 sys     0m2.000s
 sage: An error occurred while installing msieve-1.49.p0
 Please email sage-devel http://groups.google.com/group/sage-devel
 explaining the problem and send the relevant part of
 of /localdisk/tmp/sage-4.7.2/install.log.  Describe your computer,
 operating system, etc.
 If you want to try to fix the problem yourself, *don't* just cd to
 /localdisk/tmp/sage-4.7.2/spkg/build/msieve-1.49.p0 and type 'make check'
 or whatever is appropriate.
 Instead, the following commands setup all environment variables
 correctly and load a subshell for you to debug the error:
 (cd '/localdisk/tmp/sage-4.7.2/spkg/build/msieve-1.49.p0' &&
 '/localdisk/tmp/sage-4.7.2/sage' -sh)
 When you are done debugging, you can type "exit" to leave the
 subshell.
 Error: Failed to install package 'msieve-1.49.p0'.
 }}}
 The processor is a Pentium 4. The system is Fedora 10.

 Paul Zimmermann

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