-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
maxima doesn't build on Linux ppc64 (silius on skynet) #11708
Comments
comment:1
NOTE: A naive attempt with maxima-5.25 fails in exactly the same way. |
comment:2
Nice. I didn't know we have any Linux PPC in our build farm. :) |
comment:3
Replying to @nexttime:
I'll ask about this on the Maxima devel list. Maybe there is some little configuration thing that needs to be set. |
comment:4
Could we see more of that log? And I'd like to see the ecl build log as well if it was possible. |
comment:5
Here's a huge log file http://sage.math.washington.edu/home/wstein/days/32/silius/install.log-20110818.txt It is huge due to building ATLAS, etc. So, just search in it. It looks like maybe everything ends up building except Maxima (and Tachyon, which is fixed by another ticket).
|
comment:6
Here are log files for ecl and maxima: |
comment:7
Hum... nothing jumps out at me, especially if sage compiled without problems including sage/libs/ecl.pyx. Is there a maxima rpm for sles 11? If so it may be worth looking in the spec file. |
comment:8
Yes, sage/libs/ecl.pyx compiles and passes all tests:
|
comment:9
Hmmm, there are a couple of warnings already, including
but comparing the log to what I have doesn't look very different. How about installing the Maxima spkg with It would also perhaps be better to first try to build on a local filesystem (if that wasn't the case, which I assume). |
comment:10
Here is a response from one Maxima developer.
If there are any other responses, I'll update here. |
comment:11
Did Dave ever manage to build Sage in 64-bit mode on SPARC? As far as I know the only big-endians we build / test on are (or just use) 32 bits. I also noticed that silius doesn't have |
comment:12
Replying to @nexttime:
Do you want an account on the machine? Then you can try all this and maybe fix the problem! Write me offlist at [email protected] for an account. |
comment:13
By the way, this may be on skynet, but it's not listed at the wiki for Sage on skynet. |
comment:14
The machine was added to skynet 2 or 3 days ago. The page http://wiki.sagemath.org/skynet is interesting. Note that it is surely out of date, since the compilers are always being updated, operating systems upgraded, etc. |
comment:15
I've added some info about silius stamped "today" to that wiki. |
comment:16
Cool.
John P. reminded me of it on another ticket. Even out-of-date, it seems useful. |
comment:17
Replying to @nexttime: I've been banging my head on this for a while now at Sage Days 32. I've tried the following so far:
Just tried this on silius, here is the part of the log just before the error message is printed:
The full log is here: http://sage.math.washington.edu/home/bjones/strace_maxima.log.gz (It is VERY large)
I've tried building the maxima .spkg (and Sage overall) both on my NFS mounted home folder and on the local /tmp on silius with no difference. Other things I'm trying:
|
comment:18
I am not convinced that the problem is with ecl at all. I would try installing another lisp (unfortunately as far as I can see there are no lisps at all in the SuSE linux 11.SP1 DVDs) and compile maxima against that. If it still fail that would point towards maxima rather than ecl. If it builds that would point to ecl. clisp or sbcl would be appropriate. Unfortunately I don't have access to sagemath or boxen so I cannot login into silius right now. |
comment:19
I've been trying to build clisp on skynet/silius without success. I've tried with both GCC version 4.6.1 and GCC version 4.3. Both build processes end with:
I'm going to move on and try compiling SBCL.. |
comment:20
My SBCL build (using ecl-11.1.1 as the cross compilation host) also failed:
Same vague error as I get trying to build maxima. I've searched through the pre-built package lists for SUSE SLE 11 SP 1 looking for "clisp", "sbcl", "gcl", and "lisp" and didn't find anything. |
comment:21
I couldn't find any lisp on the SLES DVDs either, I tried to look at RedHat because they also provide ppc64 but couldn't find anything so far. A source rpm of maxima or a lisp on ppc64 would have been helpful from any distros. |
comment:22
I found Clozure CL project distributes binary images for ppc64 linux. I tried this out, but ran into yet more problems. Maybe this is going off on a tangent....
Now I read through the platform notes here and see that there is an issue with 16-bit memory references for functions like
On skynet/silius,
and according to the platform notes, it should be 4096. In light of this, it might be worth changing this parameter on silius (which requires a reboot, see the platform notes above) and then try Clozure CL (run test suites, etc) and THEN try building Maxima. Also, it would be worth trying to reproduce Mike Hansen's reported error about redefining |
comment:23
Quick comment: Even if you could build Maxima with another Lisp, that's not a solution, since Sage uses the C library interface to Maxima, which is only available with ECL. |
comment:24
@benjaminfjones @williamstein |
comment:25
So what's the current status? Replying to @williamstein:
William, did you receive my mail from last Friday ("Re: Maxima/ECL on Silius (#11708)")? I could try debugging / fixing this during the weekend. |
comment:45
Well, the SLES install we have does not include gfortran so at the moment we have to get it from gcc-4.6.1. I have had some experience building gcc on power (power5 so far power7 any days now, ok so I had a G4 too)and it is a bit dodgy at times. I am not sure if it is dodgier on linux or AIX. On AIX I haven't had a g++ free of problems for example. I suspect that the gcc on silius could use a bit of massaging, the question is where and how. And finally it could very well be an obscure gcc bug that only shows up on power. |
comment:46
Note that that SLES gcc has been built for power4 to ensure compatibility with a wide range of hardware
Not sure about the localy compiled gcc
There are a number of elements that could play right there from the config. |
comment:47
Funny that you incidentally compiled ECL with some other GCC version... Perhaps also try some version from the 4.5 series. Karl-Dieter, which upstream do you have in mind (now)? ;-) Btw., the "native" SLES GCC is configured with |
comment:48
I added |
comment:49
I was wondering that myself, but didn't have anything germane to contribute. |
comment:50
Replying to @nexttime:
YEs, gave me a false sense of victory for a while. Lucky I figured out what
Definitely something to try.
You would think so. However I cannot find anything on the sles11 dvds (for either x86_64 or ppc64) that mention explicitly fortran. It could be part of some other gcc rpm I need to have a closer look. |
comment:51
Replying to @kiwifb:
I was just wondering nobody (else) tried, intentionally... B) Unfortunately I now also have an account there, but will first spend my time on the Sage 4.7.2.alpha3 release.
There are at least PPC ones for openSUSE (GCC 4.3), e.g. here. Other versions (>4.3.x) should IMHO also work, or grab the sources and build it yourself... ;-) |
comment:53
Replying to @kiwifb:
I can only tell that 4.5.x's works with both GCC 4.3.x and 4.4.x. |
comment:54
Did you play with optimization flags when building the ECL spkg? By default it uses
CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include"
LDFLAGS="$LDFLAGS -L$SAGE_LOCAL/lib" (The order has to be changed in both cases.) |
comment:55
Replying to @nexttime:
Haven't but that's a good idea. I may have OK-ed those change quickly for .p1 when |
comment:56
Playing around with the
Without |
comment:57
Even though Maxima builds when we force ECL to compile under GCC-4.3 on silius, the resulting Sage installation has lots of doctest errors. See the ptestlong.log file. At a glance, there are a couple different errors happening:
etc.. |
comment:58
I think you should put this in #11705 as at first glance errors are not just from maxima. I am going into that log with a fine comb. |
comment:59
Now I'm confused: I just successfully built Sage 4.7.2.alpha4 on silius, with gcc 4.6.2 (the default on that machine). I had to replace the mpir package with the one from #11964, but that was the only change. Can anyone else verify this? I see that mpir is a dependency of ecl; could the new mpir spkg have fixed the problem with maxima? If so, we can close this ticket. With the build, I do get lots of test failures, as above. I'll post the log at #11705. |
comment:60
It could. I have to take some time to do a build but the log from Benjamin indicated there was a lot of trouble potentially with mpir. So it could indeed have been cured by the upgrade, although it is difficult to guess the chain of event leading to that. Unless there is a competition between mpir/gmp used by gcc and the one installed in sage. |
comment:61
Replying to @jhpalmieri:
I haven't tried GCC 4.6.2 yet, although I downloaded it the day it had been released ;-) (but hadn't had the time to build it on Silius) Perhaps they've fixed some things, although my impression was that something with ECL is wrong. Note that I've previously built ECL and Maxima "successfully" (modulo lots of doctest errors) with
No, it just triggered the rebuild of ECL with GCC 4.6.2. (I did build Sage 4.7.2.alpha3 which has [almost] the same MPIR spkg, i.e., the p4; the p7 just fixes a I wouldn't close this ticket unless you know that none of the doctest errors is related to / caused by Maxima. |
comment:62
Just to clarify: I logged into silius, sourced |
comment:63
Replying to @jhpalmieri:
Which means that upgrading from 4.6.1 to 4.6.2 seems worthwhile, although it's not immediately clear (or I don't know yet) what they changed. It is configured slightly differently, but without Can anybody look at the GCC diffs? I didn't have and don't have the time right now... |
comment:64
Proposing to close this, since building sage-4.8.alpha6 on silius works. There are many test failures (probably unrelated to ecl) but at least it builds. |
comment:65
Replying to @jdemeyer:
Unless a couple of doctest failures are caused by ECL and/or Maxima... Maybe François can tell better. I don't know right now what Maxima/ECL/GCC version you are referring to, but at least [with] GCC 4.6.x [ECL] seemed to produce buggy or invalid code for POWER7; |
comment:66
I'm closing this since maxima does build on silius. If there are doctest failures related to the building of Maxima, that's for a different ticket. |
Reviewer: Jeroen Demeyer |
The maxima spkg in sage-4.7.1 fails to build almost instantly with:
Upstream: Not yet reported upstream; Will do shortly.
CC: @mwhansen
Component: porting
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/11708
The text was updated successfully, but these errors were encountered: