Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Cygwin Cython compilation issue #14387

Closed
kcrisman opened this issue Mar 30, 2013 · 9 comments
Closed

Fix Cygwin Cython compilation issue #14387

kcrisman opened this issue Mar 30, 2013 · 9 comments

Comments

@kcrisman
Copy link
Member

sage -t  devel/sage-main/sage/misc/cython.py
Compiling hello.spyx...
cp: cannot stat `/home/Administrator/.sage/temp/CETGORD_J5FGIPM/7732/spyx/hello/hello.so': No such file or directory
**********************************************************************
File "/home/sagetest/sage-5.8.beta4/devel/sage-main/sage/misc/cython.py", line 695:
    sage: cython_create_local_so('hello.spyx')
Exception raised:
    Traceback (most recent call last):
      File "/home/sagetest/sage-5.8.beta4/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/home/sagetest/sage-5.8.beta4/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/home/sagetest/sage-5.8.beta4/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_13[8]>", line 1, in <module>
        cython_create_local_so('hello.spyx')###line 695:
    sage: cython_create_local_so('hello.spyx')
      File "/home/sagetest/sage-5.8.beta4/local/lib/python/site-packages/sage/misc/cython.py", line 706, in cython_create_local_so
        cython(filename, compile_message=True, use_cache=False, create_local_so_file=True)
      File "/home/sagetest/sage-5.8.beta4/local/lib/python/site-packages/sage/misc/cython.py", line 554, in cython
        raise RuntimeError, "Error making local copy of shared object library for %s"%filename
    RuntimeError: Error making local copy of shared object library for hello.spyx
**********************************************************************

Apply attachment: trac_14387.patch

CC: @jpflori @dimpase

Component: porting: Cygwin

Author: Jean-Pierre Flori

Reviewer: Karl-Dieter Crisman

Merged: sage-5.9.beta3

Issue created by migration from https://trac.sagemath.org/ticket/14387

@kcrisman kcrisman added this to the sage-5.9 milestone Mar 30, 2013
@kcrisman
Copy link
Member Author

comment:1

This is with the Cygwin system gcc 4.5.3. Perhaps it would work better with the Sage one, but I won't have the chance to try this in the near future.

@jpflori
Copy link

jpflori commented Mar 30, 2013

comment:2

Same with Sage's GCC.

@jpflori
Copy link

jpflori commented Mar 30, 2013

comment:3

Ok, it's just because we're looking for a .so file but gcc produces a .dll one.

@jpflori
Copy link

jpflori commented Mar 30, 2013

comment:4

Attachment: trac_14387.patch.gz

@jpflori
Copy link

jpflori commented Mar 30, 2013

Author: Jean-Pierre Flori

@jpflori

This comment has been minimized.

@kcrisman
Copy link
Member Author

comment:5

That's simple enough, I'll try that out.

Works, great!

@kcrisman
Copy link
Member Author

Reviewer: Karl-Dieter Crisman

@jdemeyer
Copy link

jdemeyer commented Apr 2, 2013

Merged: sage-5.9.beta3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants