Giac has always segfaulted on my M2 Mac Mini buildbot, so it never got 
*worse* when merging a ticket. As far as I know it only works on Intel macs 
(endangered species as they are).

For the record, +1 to making giac optional. 


On Friday, February 21, 2025 at 3:57:53 AM UTC+1 Dima Pasechnik wrote:

> On Thu, Feb 20, 2025 at 1:25 PM John H Palmieri <jhpalm...@gmail.com> 
> wrote:
> >
> > For what it's worth, on my macos M2 machine, giac builds but it fails 
> its test suite:
>
> Given that macOS is a supported platform, one has to have jolly good
> reasons for keeping giac standard - while it fails self-tests.
> If Volker would be merging a giac update and see these tests failing,
> he'd not proceed with the merge, right, Volker?
>
> Dima
>
> >
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_partfrac
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_factor
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_integrate
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_geo
> > [giac-1.9.0.15p0] [spkg-check] FAIL: chk_fhan2
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_cas
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan3
> > [giac-1.9.0.15p0] [spkg-check] FAIL: chk_fhan4
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_morley_demo
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_xavier
> > [giac-1.9.0.15p0] [spkg-check] FAIL: chk_fhan6
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_limit
> > [giac-1.9.0.15p0] [spkg-check] FAIL: chk_fhan8
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan5
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan0
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_normalize
> > [giac-1.9.0.15p0] [spkg-check] FAIL: chk_fhan13
> > [giac-1.9.0.15p0] [spkg-check] FAIL: chk_fhan12
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan14
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan1
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan15
> > [giac-1.9.0.15p0] [spkg-check] FAIL: chk_fhan11
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan17
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan16
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan20
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan19
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan21
> > [giac-1.9.0.15p0] [spkg-check] FAIL: chk_fhan9
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan18
> > [giac-1.9.0.15p0] [spkg-check] PASS: chk_fhan7
> > [giac-1.9.0.15p0] [spkg-check] 
> ============================================================================
> > [giac-1.9.0.15p0] [spkg-check] Testsuite summary for giac 1.9.0
> > [giac-1.9.0.15p0] [spkg-check] 
> ============================================================================
> > [giac-1.9.0.15p0] [spkg-check] # TOTAL: 30
> > [giac-1.9.0.15p0] [spkg-check] # PASS: 22
> > [giac-1.9.0.15p0] [spkg-check] # SKIP: 0
> > [giac-1.9.0.15p0] [spkg-check] # XFAIL: 0
> > [giac-1.9.0.15p0] [spkg-check] # FAIL: 8
> > [giac-1.9.0.15p0] [spkg-check] # XPASS: 0
> > [giac-1.9.0.15p0] [spkg-check] # ERROR: 0
> > [giac-1.9.0.15p0] [spkg-check] ===============================
> >
> > I don't know what the failed tests are.
> >
> > I've also been seeing giac-related doctest failures on OS X for the last 
> two years: https://github.com/sagemath/sage/issues/35646
> >
> >
> > On Wednesday, February 19, 2025 at 3:40:03 PM UTC-8 Michael Orlitzky 
> wrote:
> >>
> >> Hi, I've separated sage.libs.giac into its own package, and would like
> >> to downgrade giac to optional at the same time the new package is
> >> added, cf.
> >>
> >> * https://github.com/sagemath/sagemath-giac
> >> * https://github.com/sagemath/sage/pull/39376
> >>
> >> tl;dr now is the time to object.
> >>
> >> The reason for this, and the reason why I am working on this in the
> >> first place, is because giac no longer builds and runs reliably. It
> >> fails:
> >>
> >> * On riscv systems
> >> * On systems with a hardened glibcxx
> >> * On macos M2 (according to Volker)
> >> * With gcc-15, due out in the next few months
> >>
> >> There is "inertia" with respect to getting any of these fixed. For
> >> myself, the list above now covers 100% of the machines that I use on a
> >> daily basis. And since libgiac is linked with sage, having giac as an
> >> unconditional dependency makes it very difficult to use sage.
> >> (Thankfully, giac is already optional when using meson to build sage.)
> >>
> >> On any of those systems, we need a way to disable giac and the
> >> sage.libs.giac integration. That's the motivation for the new
> >> package/PR. The remaining question is, do we leave giac and
> >> sagemath-giac as standard, and tell everyone who experiences problems
> >> to disable it? (We would also need a mechanism to disable it.) Or do
> >> we make it optional, and let the people who use it enable it?
> >>
> >> Currently the PR makes it optional. I think there are some good
> >> arguments for this:
> >>
> >> 1. It used to be optional a few years ago. We moved it into sagelib
> >> to avoid a circular dependency between sagelib -> sagemath-giac
> >> -> sagelib, but now there is no circular dependency. All integration
> >> backends are "optional" because we run through the list and skip
> >> any that don't return a result.
> >>
> >> 2. It's already optional when you use meson to build sagelib, so this
> >> makes the two approaches consistent.
> >>
> >> 3. We don't lose any killer features, only a few clever integrals
> >> that maxima/sympy can't solve.
> >>
> >> 4. It makes us look bad when things fail and we have to tell people
> >> on the mailing list how to work around it.
> >>
> >> 5. Build time goes down.
> >>
> >> 6. Sage is less likely to break during "apt-get upgrade" or
> >> equivalent.
> >>
> >> 7. If you want it back, "make sagemath_giac" or ./configure
> >> --enable-sagemath_giac only take a minute.
> >>
> >> On the other hand the biggest downside is that if someone was using
> >> libgiac directly in their own code or was relying on it for some
> >> indefinite integrals, then they are probably going to be confused when
> >> it isn't there in the next release. It's easy to fix, but they're
> >> going to have to ask what happened first, and obviously that hits (4)
> >> above too. FWIW I would write this all up in the release notes.
> >
> > --
> > You received this message because you are subscribed to the Google 
> Groups "sage-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-devel+...@googlegroups.com.
> > To view this discussion visit 
> https://groups.google.com/d/msgid/sage-devel/1b99f496-bdfd-4b25-b165-ea78e7f4685bn%40googlegroups.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/19ce4e9c-3e70-4e82-8354-584dc5aaebban%40googlegroups.com.

Reply via email to