-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
_Complex_I undeclared - a new bug totally stops a Solaris 10 build. #7932
Comments
comment:1
This is probably my fault--maybe adding a --std=c99 flags or the like to the module list will help. (I know this code is valid, as we use it elsewhere, e.g. for the CDF fast float). I'll try to track it down during Sage days if I don't see a resolution sooner. |
comment:2
The compiler line that is causing the problem does have -std=c99 I don't really understand what is going on in that library, the modules file, and I don't know C++ anyway, though I realise this bit is C. The Sun compiler wont even build previous versions of the Sage library, complaining the code is invalid. It tends to be a lot more fussy than gcc/g++. As can be seen in this patch, https://github.com/sagemath/sage-prod/files/10645645/sagelib_6595.patch.gz a couple of functions that were declared to return something, did not, yet gcc/g++ did not complain about it. Line 1078 shows an answer calculated, but it was never returned to the function calling it. Likewise William added line 282, which the Sun compiler chocked on, but the GNU compilers accept. These are clear errors. |
comment:3
I think it boils down to this: the file http://sage.math.washington.edu/home/robertwb/solaris/simple_complex.c compiles fine on sage.math, but not on t2. Any ideas why? |
comment:4
I've no idea why, but it does build and run as expected with the Sun Studio compiler on t2.math.washington.edu (a Sun T5240 SPARC)
and also on my Sun Sun Ultra 27 (Intel Xeon) with Sun Studio 12.1
but as you say, not on t2 if one uses 'gcc'. Nor does it build with gcc on my Sun Ultra 27 which has gcc 4.3.4 (the least buggy gcc according to some).
This rather makes me think it is gcc bug, rather than a system header file. Dave |
comment:5
I've submitted bug reports for Solaris 10 (SPARC) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42753 and Open Solaris (x86) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42755 Dave |
Upstream: Reported upstream. Little or no feedback. |
Changed upstream from Reported upstream. Little or no feedback. to Reported upstream. Developers acknowledge bug. |
comment:8
See spkg at http://sage/home/robertwb/cython/cython-0.12.p1 This changes
to
but it feels a bit hackish. |
comment:9
|
comment:10
This does actually solve the problem, so if you could make this into an updated package, it would allow the Solaris build to get further, though it has recently been broken again by #7867 Dave |
comment:11
I should rephrase that. The .spkg you posted the other day did solve the problem, but I can't see it so obviously now. I hunted around a bit more, and found this one: http://sage/home/robertwb/cython/cython-0.12.p1.spkg which seems as though it was probably the one that solved the problem, but now I still have it. There's nothing in SPKG.txt to indicate whether this the one you patched for Solaris or not, so I am not sure. But whatever you changed before, did get this building. But now I find it failing at the same point. I suspect I downloaded the wrong file, or I need to remake more of the build. I can't power up the machine where I put the file - it is too noisy to start up just now, as my wife is asleep! Dave |
comment:12
The new version of Cython at #8163 fixes this issue. You need to do a sage -ba after installing. |
comment:13
Close as fixed by #8163. |
#6595 fixed a long standing bug which prevented Sage building on Solaris 10 (SPARC) if Sun Studio was installed. That allowed Sage to build properly on Solaris 10, so I set up
http://t2nb.math.washington.edu:8000/
which clearly states
v4.3-patched-for-Solaris(SPARC)
Some changes(s) between Sage 4.3 and sage-4.3.1.alpha2 have completely broken the build on Solaris, so sage-4.3.1.alpha2 will not build on Solaris 10 (SPARC). I noticed this on my own Sun Blade 2000, but have also observed it on 't2'.
Both my Sun Blade 2000 and 't2' use gcc 4.4.1. Neither compiler has been changed in any way since 4.3 was released.
I'm marking this as a blocker, as Sage would have built for the first time in years on Solaris 10 if this bug had not been introduced. This newly introduced bug needs fixing.
I have created a tar file /rootpool2/local/kirkby/newly-broken-Solaris-build-sage-4.3.1.alpha2.tar on 't2' so I have record of this. I've made the permissions on /rootpool2/local/kirkby/sage-4.3.1.alpha2 world writable, so anyone who feels able to try to test this. (or grab the tar file and do it elsewhere).
Dave
Upstream: Reported upstream. Developers acknowledge bug.
Component: porting: Solaris
Issue created by migration from https://trac.sagemath.org/ticket/7932
The text was updated successfully, but these errors were encountered: