-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Upgrade to Giac 1.5 #26315
Comments
comment:1
NB: I have reported in giac's forum that without glpk the built of: http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_1.5.0-1.tar.gz is broken. Whatever, we never use the "unstable" file https://www-fourier.ujf-grenoble.fr/~parisse/giac/giac-1.5.0.tar.gz for packaging because it changes often. cf: http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/README |
This comment has been minimized.
This comment has been minimized.
comment:3
Thanks frederichan for your comments and the link to the readme. Of course it does not seem reasonable to upgrade to giac-1.5.0-1. But I thought I'd at least open the ticket if only to point out that |
comment:4
From 21 sep I can now see a 1.5.0-3 version: http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_1.5.0-3.tar.gz |
comment:5
Looking at 1.5.0-3 here. I have libsamplerate-0.1.9 installed on the machine and I discovered that it is one of the new automagically detected configure option (on if you have it). Building giac failed until I passed |
comment:6
Hi Francois, But I know that glpk and nauty are new possible dependencies. As they standard sage packages, may be we should add them to giac's deps in sage? Frederic |
comment:7
Replying to @frederichan-IMJPRG:
Possibly. It may be also be because gcc-8 is more strict about some stuff.
glpk has been a dependency in the 1.4 series too. I hadn't noticed, seems to build fine with or without but it means sage installations of giac may be inconsistent which each others so I am in favor to just add it - regardless of this ticket. The nauty dependency is new to me. Looking at
so it is not fatal if it is not there. Which is just as well because that stuff looks for a library and as far as I know the nauty we have only install a bunch of executables, no libraries or headers. So at this stage do not add nauty - may be we are thinking of the wrong package. |
comment:8
nauty 2.6.7 has libraries. We are at 2.6.1 I think. |
comment:9
Plain upstream nauty doesn't compile shared libraries. It is a (huge) Debian specific patch, also used in Fedora. |
comment:10
Replying to @antonio-rojas:
The Gentoo maintainer has adopted that patch too for 2.6.7 that fooled me. |
comment:11
There are still (easy) patches needed to build with clang 6. Any idea about what would be the best way to get them in? |
comment:12
One way would be to suggest these patches on the XCas "bugs" forum: |
comment:13
NB: I can post on this forum for you if you don't have an account or if it is long to answer. |
patch needed for giac to build with clang 6.0.1 (possibly incomplete) |
comment:14
Attachment: giac-1.5.0-3.clang601.patch.gz Replying to @frederichan-IMJPRG:
I requested an account on the forum at least once, to no avail. |
comment:15
I have reported it there: |
comment:16
Another bug in giac - it does not work with newer versions of libcurl, which don't have So since curl version 7.55 or so one needs to use Could you also report this on giac list? |
comment:17
Replying to @dimpase:
We've know this one for a while. It was present in the last 1.4 releases. In distro we just removed the include line following arch's lead (I believe it originated in arch - correct me if it has prior history). |
comment:18
curlbuild.h is reported there: by the way, was the clang problem a warning or does the compilation stop? |
comment:19
Replying to @frederichan-IMJPRG:
I only reported errors. There are surely lots of warnings too, e.g. the one about As a matter of fact I am trying to get giac built on FreeBSD 12.0, and I am not yet there. |
comment:21
One further patch that was needed for clang 6/freebsd 12.0 is as follows:
without it there are errors related to a forward declaration of
|
comment:22
OK, I can post to the giac forum now... |
comment:23
the giac unstable version (1.5.0-11 (?)) of 18/10/18 builds on clang 6.0.1 out of the box (there is now an issue with doc/el, which seems to be broken, and the need to have hevea installed). |
comment:24
I never saw that one but I see 1.5.0-17 from 2018-11-20. I will give it a go later. |
This comment has been minimized.
This comment has been minimized.
comment:65
Let's get on with this one. |
Reviewer: François Bissey, Jeroen Demeyer |
Changed branch from public/giac-1.5.0 to |
comment:67
I just got this change on my Ubuntu 14.04 system and giac does not build:
|
Changed commit from |
comment:68
Replying to @embray:
...
...
hmm, blacklist gcc 4.8.* ? With EOL of 14.04 in April 2019, why bother fixing this? |
comment:69
Apparently this may actually be a bug in some older libstdc++ https://stackoverflow.com/a/33770775/982257 |
comment:70
Replying to @dimpase:
It's definitely getting up there. I'll be annoyed if I have to distupgrade this machine, but at the same time it may be inevitable quite soon anyways. Regardless, I've made it this far, and if a simple |
comment:71
Interestingly, the code where this is coming up is already in a
where if |
comment:72
IMO we should never "upgrade" packages that don't even have publicly accessible source code repositories. It makes it impossible to debug what changed between versions if something goes wrong. Incredible. |
comment:73
The source code repository of Giac is available as part of the Geogebra one: |
comment:74
Replying to @slel:
For some reason I thought they were just vendoring giac on a version-by-version basis, but it turns out I'm wrong. Upon closer inspection no, it can't be. It seems like somehow bits of giac are being synced into this repository, but it's not the full source code for giac. So I'm really confused. |
comment:75
I think this might have also broken something on Cygwin. After fixing all the other blocking issues on Cygwin, the tests for |
comment:76
Replying to @embray:
Well, I tried it a few more times and it worked, so if there is a problem it's not easy to reproduce. At the very least, then, there's nothing to do for now until and unless I can reproduce the problem again. If so, I'll just open a new ticket about it. |
comment:77
For #25822 and #25324 are there specific fixes from upstream that we know of that could easily be applied as patches? I'm wondering if we couldn't partially revert back to the old giac, plus patches for any specific known issues that this was meant to fix, until and unless I can figure out what's going on with #27385. |
comment:78
I don't know about any specific patches - it took several iterations of communicating with Giac's author to fix Clang 6.0-specific bugs on giac's forum. |
This ticket is to upgrade to Giac 1.5.
A preliminary version "1.5.0 unstable" is available for testing:
This upgrade should solve #25822 and #25324 since the issues reported there are fixed upstream.
All that will be left to do in those tickets is add doctests.
I suppose we finally have stable 1.5.0, here
(repacked):
tarball: http://users.ox.ac.uk/~coml0531/sage/giac-1.5.0.37.tar.bz2
CC: @antonio-rojas @kiwifb @frederichan-IMJPRG @infinity0 @saraedum @tobihan @timokau
Component: packages: standard
Keywords: upgrade, giac
Author: Dima Pasechnik
Branch:
5986d80
Reviewer: François Bissey, Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/26315
The text was updated successfully, but these errors were encountered: