---------------------------------------------------------------------------
CompileError Traceback (most recent call last)
<ipython-input-79-e080b41e1e68> in <module>()
----> 1 get_ipython().run_cell_magic(u'cython', u'-l mkl_core -l mkl_intel_lp64', u'cimport numpy as np\nimport numpy as np\n\ncdef extern from "mkl_types.h":\n ctypedef MKL_INT\n\ncdef extern from "mkl.h" nogil:\n double cblas_dasum (MKL_INT n, double *x, MKL_INT incx);\n\ndef cythonSpMV_viaMKL(np.ndarray[np.double_t] x):\n """\n Wrapper to Intel\'s Sparse Matrix-Vector multiplaction routine.\n Handles rectangular matrices\n """\n \n #cdef MKL_INT n = x.shape[0]\n #cdef MKL_INT incx = 1\n return 2#cblas_dasum(n, &x[0], incx)')
/home/andreas/miniconda2/envs/condapy2/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_cell_magic(self, magic_name, line, cell)
2113 magic_arg_s = self.var_expand(line, stack_depth)
2114 with self.builtin_trap:
-> 2115 result = fn(magic_arg_s, cell)
2116 return result
2117
<decorator-gen-124> in cython(self, line, cell)
/home/andreas/miniconda2/envs/condapy2/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):
/home/andreas/miniconda2/envs/condapy2/lib/python2.7/site-packages/Cython/Build/IpythonMagic.pyc in cython(self, line, cell)
289 build_extension.build_temp = os.path.dirname(pyx_file)
290 build_extension.build_lib = lib_dir
--> 291 build_extension.run()
292 self._code_cache[key] = module_name
293
/home/andreas/miniconda2/envs/condapy2/lib/python2.7/distutils/command/build_ext.pyc in run(self)
338
339 # Now actually compile and link everything.
--> 340 self.build_extensions()
341
342 def check_extensions_list(self, extensions):
/home/andreas/miniconda2/envs/condapy2/lib/python2.7/distutils/command/build_ext.pyc in build_extensions(self)
447
448 for ext in self.extensions:
--> 449 self.build_extension(ext)
450
451 def build_extension(self, ext):
/home/andreas/miniconda2/envs/condapy2/lib/python2.7/distutils/command/build_ext.pyc in build_extension(self, ext)
497 debug=self.debug,
498 extra_postargs=extra_args,
--> 499 depends=ext.depends)
500
501 # XXX -- this is a Vile HACK!
/home/andreas/miniconda2/envs/condapy2/lib/python2.7/distutils/ccompiler.pyc in compile(self, sources, output_dir, macros, include_dirs, debug, extra_preargs, extra_postargs, depends)
572 except KeyError:
573 continue
--> 574 self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
575
576 # Return *all* object filenames, not just the ones we just built.
/home/andreas/miniconda2/envs/condapy2/lib/python2.7/distutils/unixccompiler.pyc in _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)
122 extra_postargs)
123 except DistutilsExecError, msg:
--> 124 raise CompileError, msg
125
126 def create_static_lib(self, objects, output_libname,
CompileError: command 'gcc' failed with exit status 1