Skip to content
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

Numerous build issues on Solaris. #6710

Closed
sagetrac-drkirkby mannequin opened this issue Aug 9, 2009 · 6 comments
Closed

Numerous build issues on Solaris. #6710

sagetrac-drkirkby mannequin opened this issue Aug 9, 2009 · 6 comments

Comments

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Aug 9, 2009

Sage can build on both SPARC and x86, but some issues remain. Some of these problems can affect other operating systems too. I added this as a trac ticket, mainly so I can keep a record of what what bugs remain and what get fixed.

I've split the issues into two sections. Issues 1-7 will prevent Sage building on Solaris in some or all cases. Workarounds, hacks and updated .spkg files will get around these but have negative side effects.

Issues 8 onwards are less serious and do not prevent Sage building on Solaris in any case at all.

CRITICAL BUGS - Stop Sage building in some/all cases

  1. The version of ECL in Sage will not build on Solaris SPARC.
    Update ECL to the latest 9.8.4, needed for Solaris. #6564

The latest ECL 9.8.1 fixes this.

http://sage.math.washington.edu/home/kirkby/Solaris-fixes/ecl-9.8.1/

  1. An update to Maxima is needed to allow the new ECL to be installed, as the old Maxima in Sage has a bug which the new ECL detects and rejects.

#6699

A new maxima SPKG can be found here.
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/maxima-5.19.0

  1. There's an 'Error building 'modified sage library code' when including paripriv.h'

#6579

A hack of manually commenting out lines 258, 259 and 428 of

$SAGE_HOME/local/include/pari/paripriv.h

will bypass this.

  1. MPIR determines linker is GNU when it's Sun on some versions of Solaris x86.

#6539

  1. MPIR tries to link in gmp on some versions of Solaris x86.

#6706

  1. Sage will not build if the Sun compiler suite is installed. Some code finds the Sun C++ compiler in /opt/SUNWspro/bin/CC and uses that. Temporarily renaming /opt/SUNWspro to something else will fix this, but needs root access. 'modified sage library code' fails at c_lib if /opt/SUNWspro/bin/CC can be found. (SCons issue) #6595

**LESS SERIOUS - which don't prevent Sage building on Solaris. **

  1. There is a bug in Solaris 10 on sun4v machines which means memset() is broken. A patch to MPFR has been included, and will allow it to MPFR to build, but it will impact performance.

I'm told by Sun this will be addressed in the next release of Solaris
10, though I should personally have a patch earlier.

  1. ATLAS will not tune properly on a Sun T5240 ('t2') but will on my own sun4u machines.

#6705

  1. ATLAS dumps core on a Sun T5240 sun4v machine ('t2'). This does not appear to be a gcc 4.4.0 specific bug, as it works fine on my home machine. I added a patch to ATLAS

#6276

to fix this, but the fix will impact performance, as some tuning data will be computed incorrect, as a 'reasonable' rather than 'optimal' value for one of the tuning parameters is returns.

I added a second patch, which means the fix can be bypassed on machines where it is not an issue.

#6558

  1. There's a potential issue in polybori - 0.5rc.p8 and/or 0.5rc.p9 which will cause problems if the Sun compilers were used.

#6582

(There are other issues too with Sun compilers, but this is one I know of).

  1. No support for Sun compilers
    Sage will not build with Sun compilers on Solaris #6703

Any attempt to use the Sun compiler suite will fail miserably at a very early stage, due to the configure script in prereq-0.3.tar

It would be sensible to allow the use of the Sun compilers, but issue a warning that it is very likely to fail. Once we know where the problems lie, we can report these upstream.

After I hacked the configure script to allow the Sun compilers to be used, I noticed the GNU ones were being used by some code, despite CC, CXX and SAGE_FORTRAN all being set to the Sun compilers. This indicates several packages are ignoring settings of CC, CXX and SAGE_FORTRAN.

I intend creating a new configure.ac which address this and many other issues with the configure script.

  1. No support for 64-bit on Solaris
    Sage will not build in 64-bit mode on Solaris #6702

  2. Several doctests fail.
    There are many doctest failues on Solaris 32-bit builds. #6709

  3. lcalc-20080205.p2 tries to suppress warnings from the assembler, but fails to do this on Solaris if gcc uses the Sun assembler, as the option passed to the assembler is invalid on with Sun's assembler. (Of course, its not sensible to bypass warnings).

#6609

  1. ATLAS has no tuning parameters for sun4v machines

#6705

  1. Sage will try to build on compilers known to be too old.

#6707

This is related to #6701 and it not Solaris specific, though some things in #6701 are.

  1. Top level README.txt is wrong regarding Solaris (in fact, also all operating systems). More serious errors regarding Solaris in README.txt

#6055

  1. elliptic_e() is giving the wrong result elliptic_e(0.5, 0.1) test failure on Solaris SPARC (error about 0.04%) #6716 This is known to be a bug in ECL and the buggy code has been identified and corrected. So this will be fixed soon.

  2. elliptic_eu() is giving the wrong result Doctest failure with elliptic_eu (incomplete elliptic integral of the second kind) on Solaris. #6719 This is known to be a bug in ECL and the buggy code has been identified and corrected. So this will be fixed soon.

CC: [email protected] @dimpase

Component: porting: Solaris

Issue created by migration from https://trac.sagemath.org/ticket/6710

@sagetrac-drkirkby sagetrac-drkirkby mannequin added this to the sage-5.11 milestone Aug 9, 2009
@sagetrac-drkirkby

This comment has been minimized.

@sagetrac-drkirkby

This comment has been minimized.

@sagetrac-drkirkby sagetrac-drkirkby mannequin self-assigned this Aug 10, 2009
@kcrisman
Copy link
Member

comment:4

Can you try the new Maxima with this? There isn't an spkg available yet but hopefully will be soon. See http://groups.google.com/group/sage-devel/browse_thread/thread/bbd2c801032392f7

@qed777
Copy link
Mannequin

qed777 mannequin commented Sep 1, 2010

comment:5

How many of the open tickets mentioned in the description are still problems?

@kcrisman
Copy link
Member

comment:6

Bump - a number of these have been closed, and perhaps some others are solved. Since Solaris is now a supported platform at least some of the time, it would be helpful to have an update.

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe
Copy link
Contributor

mkoeppe commented Jul 8, 2020

comment:11

Outdated, should be closed

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants