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
Giac miscompiles on non-x86_64 platforms #22280
Comments
comment:1
I can confirm the issue. The trick fells very dirty but I can easily test it I think. |
comment:2
Has expected passing More fundamentally I suspect the way pari is called is what is really wrong here, as discussed on sage-packaging https://groups.google.com/d/msgid/sage-packaging/ac9575ae-4dd3-4d29-97aa-a3ef785d3509%40googlegroups.com |
This comment has been minimized.
This comment has been minimized.
comment:3
I don't know if it helps but the 1.2.3.25 version such as in #22101 contains the modifications for pari asked there: |
comment:4
Still failing. Those changes are, I think are a progress but not the full changes that are needed - not that I would really be able to do them myself. The fact that we still have
which is a private function is a sign you are doing something wrong. |
comment:5
See http://pari.math.u-bordeaux.fr/archives/pari-users-1702/msg00002.html for a suggestion from the PARI developers on how this should be fixed. |
This comment has been minimized.
This comment has been minimized.
comment:6
(1) What does this refer to:
(2) From the comments it seems that you think that there is a problem with PARI. Why do you think that? |
This comment has been minimized.
This comment has been minimized.
comment:8
Note that compiling with |
comment:9
And compiling with |
comment:10
There is a related topic (about SMARTPTR64 that should not be undefined by first.h)here: |
comment:11
I am not sure if it is the same error, but i cannot build+check Since |
comment:12
Attachment: giac-1.2.2.103.log.7.6.rc0.gz Replying to @sagetrac-tmonteil:
On linux 32bits there is the following problem #22101 and it should be already solved by giac-1.2.3.25 but I am waiting the next one to have a new config.guess as it was requested in #22101. |
comment:13
Unless something happens real soon I'll ignore this for sage 7.6. If it isn't fixed we should think about downgrading giac to optional. The snippet in the description is hopefully not repesentative of the giac code quality:
|
comment:14
If the upgrade can not be done soon (i hope it could!), another possibility would be to downgrade |
comment:15
Replying to @sagetrac-tmonteil:
|
Dependencies: #22101 |
comment:17
If people running powerpc and other platforms coudl check #22101, it seems to solve the issue. |
comment:18
Trying it on ppc64. |
comment:19
Replying to @sagetrac-tmonteil:
Really? I thought it was only improving for i386. (cf comment4) where it seems that the static built of icas is functionnal while the original built crashes with 1+1 |
comment:20
I can confirm nothing changed on ppc64. |
comment:21
I think |
comment:22
does
changes things? |
comment:58
An old one:
I did not run giac testsuite though. |
comment:59
Replying to @jpflori:
Ah, I never had trouble building it. Just running/testing it. It will be some work to get things to build with gcc 4.8.x, will have to find all the C++ dependencies before building. |
comment:60
Most tests seem to pass on my machine except for some numerical noise and some very long or looping tests I killed. |
comment:61
Replying to @jpflori:
Could you please give me some hints on how to achieve this (which file to modify, and how) ? (sorry for not being able to help on the review, i do not have any ppc machine, my intel 32bit VM is trying it right now, just in case) |
comment:62
Just patch the |
comment:63
Currently
in |
comment:64
Replying to @sagetrac-tmonteil:
For what it worth, giac-1.2.3.47 from this ticket compiles and pass self-tests on both my 64bit laptop and 32bit VM (both running Debian GNU/Linux jessie). |
comment:65
Ragarding building giac with png support, thanks Jean-Pierre and François for your hints, i opened #23262. |
comment:66
Unfortunately, I still have no luck on ppc64 with gcc-5.4.0. It is better than before in that some tests are now succeeding. But things seems to get stuck in a C++ allocator for a number of them. |
comment:67
Is |
comment:68
Fair question. "1+1" works, the fact that some tests work means that it is working up to a point. I haven't tried to run the sage testsuite with it. Any tests I should run? |
comment:69
Maybe On my side, |
comment:70
OK, I did run those tests and the few failures I have are unrelated to |
Reviewer: Thierry Monteil, Jean-Pierre Flori, François Bissey |
Changed branch from public/giac to |
Changed commit from |
comment:72
Do you guys know why the |
comment:73
(sorry, I have no idea why my comment there deleted the commit field) (I can't seem to fix it either, even by Modifying the ticket with that commit) |
comment:74
All tests pass for me for 1.2.3-51 on arm64 on Debian without further changes or extra flags, btw. |
comment:75
I'll have to try 1.2.3-51 on ppc64 without extra flags then. 1.2.3-47 builds but a lot of tests fail for me. We may want to consider a further upgrade. The removal of the commit when you comment further is a "feature" of track. It is annoying but not harmfull. |
comment:76
Well, you probably don't have that problem but I allow compilation without gui, and sage itself doesn't depend on fltk
Oooops! in src/Xcas.cc (line 3360) there goes your compilation failure if you don't have fltk. |
comment:77
I have found that annoying too, in Debian I am forced to ship the non-GUI icas program (which is what Sage actually wants) together with the GUI xcas program, and it even links against X libraries. I've filed a bug about it upstream, hopefully they can fix it. |
comment:78
Well, I pilled up some more in http://xcas.e.ujf-grenoble.fr/XCAS/viewtopic.php?f=4&t=1814 because your request, I felt, was much broader than mine (but yes something should be done about all that X stuff). |
comment:79
Unfortunately giac fails to compile for me on a arm64 (aarch64) 4.9 Linux kernel: http://xcas.e.ujf-grenoble.fr/XCAS/viewtopic.php?p=8941#p8941 It succeeded on a 3.16 Linux kernel though, as I reported above. Could someone reproduce this and if so re-open this ticket or open another one? |
comment:80
A potential solution to this has been suggested on the Debian bug tracker: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=855078#29 I'll try to test it next week, in the meantime feel free to jump in ahead. |
Executing
1+1
with giac-1.2.2.103 on ppc64le POWER8:Upgrading to giac-1.2.3.25 (#22101) does not fix this problem.
Use > -45 version:
The upstream tarball is at http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_1.2.3-47.tar.gz
Repackaged tarball is at:
And pass
-Dx86_64
in CPPFLAGS.Depends on #22101
Upstream: Fixed upstream, in a later stable release.
CC: @rwst @frederichan-IMJPRG @vbraun
Component: packages: standard
Author: Jean-Pierre Flori
Branch:
8dc4c88
Reviewer: Thierry Monteil, Jean-Pierre Flori, François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/22280
The text was updated successfully, but these errors were encountered: