#16913: Error in prev()
-------------------------------------+-------------------------------------
       Reporter:  ayyer              |        Owner:  ayyer
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.4
      Component:  combinatorics      |   Resolution:
       Keywords:  permutations,      |    Merged in:
  prev                               |    Reviewers:  ayyer
        Authors:  André Apitzsch     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  a2406cd669acf5af044738f24c711b1f5526f3a5
  u/aapitzsch/ticket/16913           |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by ayyer):

 I am new to this, so let me explain what I did. I got the patch titled
 u/aapitzsch/ticket/16913 from the server, checked out a new branch and ran
 "sage -br". Unfortunately, that started compiling code from a lot of
 unrelated directories. After a long time, it finally gave me the following
 error:

 {{{
 gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/local/include
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/local/include/csage
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/src
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/src/sage/ext
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/local/include/python2.7
 -c build/cythonized/sage/libs/pari/gen.c -o
 build/temp.macosx-10.8-x86_64-2.7/build/cythonized/sage/libs/pari/gen.o
 -fno-strict-aliasing -w
 build/cythonized/sage/libs/pari/gen.c: In function
 '__pyx_pf_4sage_4libs_4pari_3gen_3gen_380ellinit':
 build/cythonized/sage/libs/pari/gen.c:26544:39: error: too many arguments
 to function 'ellinit'
 In file included from ../local/include/pari/pari.h:56:0,
                  from build/cythonized/sage/libs/pari/gen.c:349:
 ../local/include/pari/paridecl.h:1373:5: note: declared here
 build/cythonized/sage/libs/pari/gen.c: In function
 '__pyx_pf_4sage_4libs_4pari_3gen_3gen_516nfbasis':
 build/cythonized/sage/libs/pari/gen.c:35904:39: error: too few arguments
 to function 'nfbasis'
 In file included from ../local/include/pari/pari.h:56:0,
                  from build/cythonized/sage/libs/pari/gen.c:349:
 ../local/include/pari/paridecl.h:924:5: note: declared here
 build/cythonized/sage/libs/pari/gen.c: In function
 '__pyx_pf_4sage_4libs_4pari_3gen_3gen_518nfbasis_d':
 build/cythonized/sage/libs/pari/gen.c:36177:39: error: too few arguments
 to function 'nfbasis'
 In file included from ../local/include/pari/pari.h:56:0,
                  from build/cythonized/sage/libs/pari/gen.c:349:
 ../local/include/pari/paridecl.h:924:5: note: declared here
 build/cythonized/sage/libs/pari/gen.c: In function
 '__pyx_pf_4sage_4libs_4pari_3gen_3gen_748ellwp':
 build/cythonized/sage/libs/pari/gen.c:50783:39: error: too few arguments
 to function 'ellwp0'
 In file included from ../local/include/pari/pari.h:56:0,
                  from build/cythonized/sage/libs/pari/gen.c:349:
 ../local/include/pari/paridecl.h:1392:5: note: declared here
 build/cythonized/sage/libs/pari/gen.c: In function
 '__pyx_pf_4sage_4libs_4pari_3gen_9PariError_6__str__':
 build/cythonized/sage/libs/pari/gen.c:52292:38: error: 'e_SYNTAX'
 undeclared (first use in this function)
 build/cythonized/sage/libs/pari/gen.c:52292:38: note: each undeclared
 identifier is reported only once for each function it appears in
 error: command 'gcc' failed with exit status 1
 gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/local/include
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/local/include/csage
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/src
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/src/sage/ext
 -I/Applications/Sage-6.2.app/Contents/Resources/sage/local/include/python2.7
 -c build/cythonized/sage/libs/pari/handle_error.c -o
 
build/temp.macosx-10.8-x86_64-2.7/build/cythonized/sage/libs/pari/handle_error.o
 -fno-strict-aliasing -w
 build/cythonized/sage/libs/pari/handle_error.c: In function
 '__pyx_f_4sage_4libs_4pari_12handle_error__pari_handle_exception':
 build/cythonized/sage/libs/pari/handle_error.c:1047:32: error: 'e_STACK'
 undeclared (first use in this function)
 build/cythonized/sage/libs/pari/handle_error.c:1047:32: note: each
 undeclared identifier is reported only once for each function it appears
 in
 build/cythonized/sage/libs/pari/handle_error.c:1108:32: error: 'e_USER'
 undeclared (first use in this function)
 }}}

 So now I am no longer able to test the code. I tried
 {{{
 sage -t permutation.py
 }}}
 in the combinat folder, but that too failed. Is there a way I can just
 test the changes to this file?

--
Ticket URL: <http://trac.sagemath.org/ticket/16913#comment:10>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to