#8783: frobby optional spkg doesn't build with newer GCC's
---------------------------------+------------------------------------------
   Reporter:  was                |          Owner:  tbd                         
              
       Type:  defect             |         Status:  needs_info                  
              
   Priority:  major              |      Milestone:  sage-4.7.2                  
              
  Component:  optional packages  |       Keywords:  sd32                        
              
Work_issues:                     |       Upstream:  Fixed upstream, in a later 
stable release.
   Reviewer:  Benjamin Jones     |         Author:  Bjarke Hammersholt Roune    
              
     Merged:                     |   Dependencies:                              
              
---------------------------------+------------------------------------------
Changes (by leif):

  * status:  positive_review => needs_info


Comment:

 Did anybody try to build this with `SAGE_CHECK=yes`?

 I get hundreds of errors on Ubuntu 10.04.3 (GCC 4.4.3). The build itself
 succeeds, but the test suite ends with:
 {{{
 src/randomDataGenerators.cpp:44: error: ‘mpz_class’ was not declared in
 this scope
 src/randomDataGenerators.cpp:47: error: ‘stderr’ was not declared in this
 scope
 src/randomDataGenerators.cpp:47: error: ‘fputs’ was not declared in this
 scope
 src/IOHandler.cpp: At global scope:
 src/IOHandler.cpp:215: error: ‘mpz_class’ was not declared in this scope
 src/IOHandler.cpp:215: error: template argument 1 is invalid
 src/IOHandler.cpp:215: error: template argument 2 is invalid
 src/IOHandler.cpp: In function ‘void readFrobeniusInstance(Scanner&,
 int&)’:
 src/IOHandler.cpp:216: error: request for member ‘clear’ in ‘numbers’,
 which is of non-class type ‘int’
 src/IOHandler.cpp:219: error: ‘mpz_class’ was not declared in this scope
 src/IOHandler.cpp:219: error: expected ‘;’ before ‘n’
 src/IOHandler.cpp:221: error: ‘n’ was not declared in this scope
 src/IOHandler.cpp:225: error: ‘stderr’ was not declared in this scope
 src/IOHandler.cpp:228: error: ‘gmp_fprintf’ was not declared in this scope
 src/IOHandler.cpp:232: error: request for member ‘push_back’ in ‘numbers’,
 which is of non-class type ‘int’
 src/IOHandler.cpp:235: error: request for member ‘empty’ in ‘numbers’,
 which is of non-class type ‘int’
 src/IOHandler.cpp:237: error: ‘stderr’ was not declared in this scope
 src/IOHandler.cpp:237: error: ‘fputs’ was not declared in this scope
 src/IOHandler.cpp:241: error: expected ‘;’ before ‘gcd’
 src/IOHandler.cpp:242: error: request for member ‘size’ in ‘numbers’,
 which is of non-class type ‘int’
 src/IOHandler.cpp:243: error: request for member ‘get_mpz_t’ in ‘gcd’,
 which is of non-class type ‘void(Exponent*, const Exponent*, const
 Exponent*, size_t)’
 src/IOHandler.cpp:243: error: request for member ‘get_mpz_t’ in ‘gcd’,
 which is of non-class type ‘void(Exponent*, const Exponent*, const
 Exponent*, size_t)’
 src/IOHandler.cpp:243: error: invalid types ‘int[size_t]’ for array
 subscript
 src/IOHandler.cpp:243: error: ‘mpz_gcd’ was not declared in this scope
 src/IOHandler.cpp:245: error: ISO C++ forbids comparison between pointer
 and integer
 src/IOHandler.cpp:246: error: ‘stderr’ was not declared in this scope
 src/IOHandler.cpp:249: error: request for member ‘get_mpz_t’ in ‘gcd’,
 which is of non-class type ‘void(Exponent*, const Exponent*, const
 Exponent*, size_t)’
 src/IOHandler.cpp:249: error: ‘gmp_fprintf’ was not declared in this scope
 src/randomDataGenerators.cpp: At global scope:
 src/randomDataGenerators.cpp:157: error: ‘Degree’ was not declared in this
 scope
 src/randomDataGenerators.cpp:157: error: template argument 1 is invalid
 src/randomDataGenerators.cpp:157: error: template argument 2 is invalid
 src/randomDataGenerators.cpp: In function ‘void
 generateRandomFrobeniusInstance(int&)’:
 src/randomDataGenerators.cpp:161: error: request for member ‘resize’ in
 ‘degrees’, which is of non-class type ‘int’
 src/randomDataGenerators.cpp:163: error: ‘Degree’ was not declared in this
 scope
 src/randomDataGenerators.cpp:163: error: expected ‘;’ before ‘totalGcd’
 src/randomDataGenerators.cpp:165: error: expected ‘;’ before ‘number’
 src/randomDataGenerators.cpp:166: error: ‘totalGcd’ was not declared in
 this scope
 src/randomDataGenerators.cpp:167: error: ‘number’ was not declared in this
 scope
 src/randomDataGenerators.cpp:171: error: ‘number’ was not declared in this
 scope
 src/randomDataGenerators.cpp:171: error: ‘mpz_gcd’ was not declared in
 this scope
 src/randomDataGenerators.cpp:173: error: invalid types ‘int[int]’ for
 array subscript
 src/randomDataGenerators.cpp:173: error: ‘number’ was not declared in this
 scope
 src/randomDataGenerators.cpp:177: error: invalid types ‘int[int]’ for
 array subscript
 src/randomDataGenerators.cpp:178: error: ‘totalGcd’ was not declared in
 this scope
 src/randomDataGenerators.cpp:180: error: request for member ‘begin’ in
 ‘degrees’, which is of non-class type ‘int’
 src/randomDataGenerators.cpp:180: error: request for member ‘end’ in
 ‘degrees’, which is of non-class type ‘int’
 make: *** [bin/debug/IOHandler.o] Error 1
 make: *** [bin/debug/BigIdeal.o] Error 1
 make: *** [bin/debug/randomDataGenerators.o] Error 1
 mkdir -p bin/release/
 cd bin; rm -f frobby; link ../bin/release/frobby frobby; cd ..
 export frobby=bin/frobby; ./test/runtests
 decom      ..........................
 frob       ..............................
 intersect  ..........
 assoprimes ............
 minimize   ..........
 transform  .....
 latformat  .....
 alexdual   ...............
 radical    .........
 Now cleaning up tmp files.
 Making Sage/Python scripts relocatable...
 Making script relocatable
 Finished installing frobby-0.7.6.p1.spkg
 }}}
 The main problem seems a wrong or missing include path, which of course
 causes further errors.

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