Opened 6 years ago

Closed 12 months ago

#5545 closed defect (worksforme)

bug in sage's Cython dependency tracker

Reported by: cwitty Owned by: mabshoff
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: build Keywords:
Cc: Merged in:
Authors: Reviewers: Jeroen Demeyer
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

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.)

Attachments (1)

dependency-tracker-bug-testcase.patch (8.3 KB) - added by cwitty 6 years ago.

Download all attachments as: .zip

Change History (8)

Changed 6 years ago by cwitty

comment:1 Changed 2 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:2 Changed 19 months ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:3 Changed 16 months ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:4 Changed 13 months ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:5 Changed 12 months ago by jdemeyer

  • Milestone changed from sage-6.4 to sage-duplicate/invalid/wontfix
  • Report Upstream set to N/A
  • Reviewers set to Jeroen Demeyer
  • Status changed from new to needs_review

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.
[...]

comment:6 Changed 12 months ago by jdemeyer

  • Status changed from needs_review to positive_review

comment:7 Changed 12 months ago by vbraun

  • Resolution set to worksforme
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.