#13325: eclib does not build on Cygwin
--------------------------------------------------------------+-------------
       Reporter:  jpflori                                     |         Owner:  
tbd         
           Type:  defect                                      |        Status:  
needs_review
       Priority:  major                                       |     Milestone:  
sage-5.3    
      Component:  cygwin                                      |    Resolution:  
            
       Keywords:  eclib spkg cygwin                           |   Work issues:  
            
Report Upstream:  Fixed upstream, in a later stable release.  |     Reviewers:  
            
        Authors:  Jean-Pierre Flori                           |     Merged in:  
            
   Dependencies:  #13333                                      |      Stopgaps:  
            
--------------------------------------------------------------+-------------

Comment (by cremona):

 Replying to [comment:73 jpflori]:
 > That's strange. Can you make sure the patch to the Sage library is
 correctly applied (stupid question, but...) by looking at module_list.py
 and searching for "jc"?

 It's fine, there is no jc anywahere and grep -w ec module_list.py gives
 the correct 4 matches,

 > On my Linux system with 5.3.rc0 plus this ticket only, everything looks
 fine.

 Here is a sample failure:
 {{{
 sage -t -long devel/sage-main/sage/structure/misc.pyx
 **********************************************************************
 File "/home/jec/sage-5.3.beta1/devel/sage-main/sage/structure/misc.pyx",
 line 244:
     sage: cython("cdef class A:\n    cdef public int a")
 Exception raised:
     Traceback (most recent call last):
       File "/home/jec/sage-5.3.beta1/local/bin/ncadoctest.py", line 1231,
 in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/home/jec/sage-5.3.beta1/local/bin/sagedoctest.py", line 38,
 in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/home/jec/sage-5.3.beta1/local/bin/ncadoctest.py", line 1172,
 in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_5[7]>", line 1, in <module>
         cython("cdef class A:\n    cdef public int a")###line 244:
     sage: cython("cdef class A:\n    cdef public int a")
       File "cython_c.pyx", line 61, in sage.misc.cython_c.cython
 (sage/misc/cython_c.c:779)
       File "/home/jec/sage-5.3.beta1/local/lib/python/site-
 packages/sage/server/support.py", line 473, in cython_import_all
         create_local_c_file=create_local_c_file)
       File "/home/jec/sage-5.3.beta1/local/lib/python/site-
 packages/sage/server/support.py", line 450, in cython_import
         **kwds)
       File "/home/jec/sage-5.3.beta1/local/lib/python/site-
 packages/sage/misc/cython.py", line 539, in cython
         raise RuntimeError, "Error compiling %s:\n%s\n%s"%(filename, log,
 err)
     RuntimeError: Error compiling
 /home/jec/.sage//temp/fermat/6134//tmp_0.spyx:
     running build
     running build_ext
     building '_home_jec__sage_temp_fermat_6134_tmp_0_spyx_0' extension
     creating build
     creating build/temp.linux-x86_64-2.7
     gcc -fno-strict-aliasing -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall
 -Wstrict-prototypes -fPIC -I/home/jec/sage-5.3.beta1/local/include/csage/
 -I/home/jec/sage-5.3.beta1/local/include/
 -I/home/jec/sage-5.3.beta1/local/include/python2.7/
 -I/home/jec/sage-5.3.beta1/local/lib/python2.7/site-
 packages/numpy/core/include
 -I/home/jec/sage-5.3.beta1/devel/sage/sage/ext/
 -I/home/jec/sage-5.3.beta1/devel/sage/
 -I/home/jec/sage-5.3.beta1/devel/sage/sage/gsl/
 -I/home/jec/.sage//temp/fermat/6134
 -I/home/jec/sage-5.3.beta1/local/include/python2.7 -c
 _home_jec__sage_temp_fermat_6134_tmp_0_spyx_0.c -o
 build/temp.linux-x86_64-2.7/_home_jec__sage_temp_fermat_6134_tmp_0_spyx_0.o
 -w -O2
     creating build/lib.linux-x86_64-2.7
     gcc -pthread -shared -L/home/jec/sage-5.3.beta1/local/lib
 build/temp.linux-x86_64-2.7/_home_jec__sage_temp_fermat_6134_tmp_0_spyx_0.o
 -L/home/jec/sage-5.3.beta1/local//lib/
 -L/home/jec/sage-5.3.beta1/local/lib -lmpfr -lgmp -lgmpxx -lstdc++ -lpari
 -lm -ljc -lgsl -lgslcblas -latlas -lntl -lcsage -lpython2.7 -o
 build/lib.linux-x86_64-2.7/_home_jec__sage_temp_fermat_6134_tmp_0_spyx_0.so
 -L/home/jec/sage-5.3.beta1/local//lib

     /usr/bin/ld: cannot find -ljc
     collect2: ld returned 1 exit status
     error: command 'gcc' failed with exit status 1
 }}}
 showing that it's the linker complaining.

 I do not know why during a test any compilation like this needs to be
 done: recall that I had previously done sage -ba.

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