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

bug in sage's Cython dependency tracker #5545

Closed
sagetrac-cwitty mannequin opened this issue Mar 17, 2009 · 3 comments
Closed

bug in sage's Cython dependency tracker #5545

sagetrac-cwitty mannequin opened this issue Mar 17, 2009 · 3 comments

Comments

@sagetrac-cwitty
Copy link
Mannequin

sagetrac-cwitty mannequin commented Mar 17, 2009

To reproduce: Start with Sage 3.4. Apply the attached patch (dependency-tracker-bug-testcase.patch). Rebuild with "sage -b", then run Sage. Type:

sage: import sage.rings.polynomial.real_roots

You will get an error:

TypeError: sage.rings.real_mpfi.RealIntervalField is not a type object

But if you touch real_roots.pyx and rebuild, the error goes away.

So somehow real_roots.pyx depends on real_mpfi.pyx in a way that the dependency tracker doesn't catch. (It's not obvious how, because real_roots.pyx never even mentions mpfi.)

Component: build

Reviewer: Jeroen Demeyer

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

@sagetrac-cwitty sagetrac-cwitty mannequin added this to the sage-5.11 milestone Mar 17, 2009
@sagetrac-cwitty sagetrac-cwitty mannequin added c: build labels Mar 17, 2009
@jdemeyer
Copy link

comment:1

Attachment: dependency-tracker-bug-testcase.patch.gz

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@jdemeyer
Copy link

jdemeyer commented Sep 2, 2014

comment:5

worksforme:

jdemeyer@tamiyo:/usr/local/src/sage-git$ touch src/sage/rings/real_mpfi.pxd
jdemeyer@tamiyo:/usr/local/src/sage-git$ ./sage -b
scons: `install' is up to date.
Updating Cython code....
Enabling Cython debugging support
Compiling sage/rings/complex_interval.pyx because it depends on ./sage/rings/real_mpfi.pxd.
Compiling sage/rings/real_mpfi.pyx because it depends on sage/rings/real_mpfi.pxd.
Compiling sage/rings/polynomial/real_roots.pyx because it depends on ./sage/rings/real_mpfi.pxd.
[...]

@jdemeyer
Copy link

jdemeyer commented Sep 2, 2014

Reviewer: Jeroen Demeyer

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

2 participants