#18825: cython() command does not find ginac_wrap.h
------------------------+----------------------------------
   Reporter:  jdemeyer  |            Owner:
       Type:  defect    |           Status:  new
   Priority:  major     |        Milestone:  sage-6.8
  Component:  cython    |         Keywords:
  Merged in:            |          Authors:  Jeroen Demeyer
  Reviewers:            |  Report Upstream:  N/A
Work issues:            |           Branch:
     Commit:            |     Dependencies:
   Stopgaps:            |
------------------------+----------------------------------
 {{{
 sage: cython("from sage.symbolic.expression cimport Expression")
 ---------------------------------------------------------------------------
 RuntimeError                              Traceback (most recent call
 last)
 <ipython-input-1-f62c41763f0f> in <module>()
 ----> 1 cython("from sage.symbolic.expression cimport Expression")

 /usr/local/src/sage-config/src/sage/misc/cython_c.pyx in
 sage.misc.cython_c.cython_compile
 (build/cythonized/sage/misc/cython_c.c:920)()
      61     tmpfile = tmp_filename(ext=".spyx")
      62     open(tmpfile,'w').write(code)
 ---> 63     cython_import_all(tmpfile, globals(),
      64                       verbose=verbose,
 compile_message=compile_message,
      65                       use_cache=use_cache,

 /usr/local/src/sage-config/local/lib/python2.7/site-
 packages/sage/misc/cython.pyc in cython_import_all(filename, globals,
 verbose, compile_message, use_cache, create_local_c_file)
     721     m = cython_import(filename, verbose=verbose,
 compile_message=compile_message,
     722                      use_cache=use_cache,
 --> 723                      create_local_c_file=create_local_c_file)
     724     for k, x in m.__dict__.iteritems():
     725         if k[0] != '_':

 /usr/local/src/sage-config/local/lib/python2.7/site-
 packages/sage/misc/cython.pyc in cython_import(filename, verbose,
 compile_message, use_cache, create_local_c_file, **kwds)
     698                              use_cache=use_cache,
     699
 create_local_c_file=create_local_c_file,
 --> 700                              **kwds)
     701     sys.path.append(build_dir)
     702     return __builtin__.__import__(name)

 /usr/local/src/sage-config/local/lib/python2.7/site-
 packages/sage/misc/cython.pyc in cython(filename, verbose,
 compile_message, use_cache, create_local_c_file, annotate, sage_namespace,
 create_local_so_file)
     491         log = open('%s/log'%build_dir).read()
     492         err = open('%s/err'%build_dir).read()
 --> 493         raise RuntimeError("Error compiling
 {}:\n{}\n{}".format(filename, log, err))
     494
     495     # Move from lib directory.

 RuntimeError: Error compiling
 /home/jdemeyer/.sage/temp/tamiyo/2158/tmp_8b95YB.spyx:
 running build
 running build_ext
 building '_home_jdemeyer__sage_temp_tamiyo_2158_tmp_8b95YB_spyx_0'
 extension
 creating build
 creating build/temp.linux-x86_64-2.7
 gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
 -I/usr/local/src/sage-config/local/include -I/usr/local/src/sage-
 config/local/include/python2.7 -I/usr/local/src/sage-
 config/local/lib/python2.7/site-packages/numpy/core/include
 -I/usr/local/src/sage-config/local/lib/python2.7/site-packages
 -I/usr/local/src/sage-config/local/lib/python2.7/site-packages/sage/ext
 -I/home/jdemeyer/.sage/temp/tamiyo/2158 -I/usr/local/src/sage-
 config/local/include/python2.7 -c
 _home_jdemeyer__sage_temp_tamiyo_2158_tmp_8b95YB_spyx_0.c -o build/temp
 .linux-
 x86_64-2.7/_home_jdemeyer__sage_temp_tamiyo_2158_tmp_8b95YB_spyx_0.o -w
 -O2

 _home_jdemeyer__sage_temp_tamiyo_2158_tmp_8b95YB_spyx_0.c:257:24: fatal
 error: ginac_wrap.h: No such file or directory
  #include "ginac_wrap.h"
                         ^
 compilation terminated.
 error: command 'gcc' failed with exit status 1
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18825>
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