Skip to content

port Sage to SPARC Solaris 11 #24596

@dimpase

Description

@dimpase

We have access to SPARC T4 system

SunOS xenos-sagetest 5.11 11.3 sun4v sparc sun4v

We track here the resulting issues and tickets.

  • no need to pre-build any tools, apparently. Everything is available via Solaris pkg or pkgutil (i.e. opencsw).

  • MPFR configure fails with MPIR. Can be resolved by using GMP instead. Upstream: issue 242. For details and a possible fix, see enable MPIR on Solaris #24674.

  • Various packages need CFLAGS="-D_XPG6"

  • To take care of the above, set the following before building

export PATH=/opt/csw/gnu:$PATH
export CFLAGS="-O2 -g -D_XPG6"
export CXXFLAGS="$CFLAGS"        # Maybe not strictly needed

./configure --with-mp=gmp
#include <cmath>
int main()
{
int i,j,k;
i = 2;
j = 10;
k = pow(i,j);
return k;
}

This appears to be platform-specific. Same error with g++ 7.2.0. Adding std:: to pow, or adding using namespace std; results in successful compilation of this example (and most probably this also will work for Singular).
** this problem went away by itself after some changes to the linker used, I don't really know why **

Depends on #23733
Depends on #24638
Depends on #24765

CC: @dimpase

Component: porting: Solaris

Branch/Commit: u/jdemeyer/port_sage_to_sparc_solaris_11 @ 760cfbb

Reviewer: Dima Pasechnik

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions