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
lcalc fails to build with gcc-4.6 #10892
Comments
comment:1
The poor quality of the lcalc source code appears to have put off one Sage user when she looked at it. To quote her: "''Unfortunately, lcalc was the part of Sage I intended using - now I think I I'm also very unimpressed. Even with your changes lcalc generates over 200 compiler warnings from gcc 4.6.0 Sun Studio would never compile lcalc (see #7065) - I doubt it will do even with your changes. Lcalc used to refuse to compile on Solaris with g++ as the Makefile has a compiler option to suppress warnings from the assembler, which works with the GNU assembler, but which the Sun assembler does not understand. (The " Lcalc will not install on HP-UX (#7178). I've never tried on AIX, but I would not be surprised if it failed on that too. Your code builds OK with gcc 4.6.0 on OpenSolaris and passes all the doctests. So I'm assuming you want it reviewed, in which case I'll give it a positive review. It would really help if you attached a Mercurial patch showing the changes you have made. It makes review easier, and is useful when people look back at tickets. I've attached a patch which shows your changes. I've changed the Reported Upstream pull-down on trac from N/A to Not yet reported upstream. Will do shortly as clearly this is an upstream bug. I'll report it to Dave |
Reviewer: David Kirkby |
Upstream: Not yet reported upstream; Will do shortly. |
Attachment: 10892-lcalc-fails-with-gcc.4.6.0.patch.gz Patch for review purposes only - does not need to be applied. |
comment:4
Has this been reported upstream already? |
comment:5
Replying to @jdemeyer:
It had not before you reminded me, but I have now done it. I reported it to Michael Rubinstein (mrubinst << uwaterloo.ca) today @ 1307 GMT. I've changed the "reported upstream" pull-down to reflect this. Dave |
Changed upstream from Not yet reported upstream; Will do shortly. to Reported upstream. Little or no feedback. |
Merged: sage-4.7.alpha4 |
Changed upstream from Reported upstream. Little or no feedback. to Reported upstream. Developers acknowledge bug. |
comment:7
I got this from Mike a couple of hours ago, after I suggested he make his latest code available in it's current state, which is clearly not due for release yet. I'll make that available to you later today, and thanks for keeping me updated about the compile issue. Best, |
This comment has been minimized.
This comment has been minimized.
comment:8
|
Attachment: lcalc-SPKG.txt.diff.gz Diff for SPKG.txt |
comment:9
New spkg with updated SPKG.txt, same place: http://boxen.math.washington.edu/home/jdemeyer/spkg/lcalc-20100428-1.23.p6.spkg |
comment:10
Any more feedback from upstream? |
lcalc fails to build with the gcc-4.6 version in Fedora 15 alpha:
The reason is the following code horror from
src/src/include/Lcommon.h
(some editing for clarity):The last three lines are clearly a bad idea to define before including system headers! As a bandaid, I uncommented the
inline double lcalc_to_double(const long double& x)
, and it compiles fine now. But somebody who is familiar with the codebase should really rewrite lcalc to not redefine thedouble()
cast, thats just fragile and will sooner or later again fail inside some system headers.Updated spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/lcalc-20100428-1.23.p6.spkg
Upstream: Reported upstream. Developers acknowledge bug.
CC: @rishikesha
Component: packages: standard
Author: Volker Braun
Reviewer: David Kirkby
Merged: sage-4.7.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/10892
The text was updated successfully, but these errors were encountered: