Hi Harald,

> Subject: SAGE 8.1 will not compile under Ubuntu 17.10: error installing 
giac-1.2.3.47.p0

Note that writing Sage in all-capitals to refer to Sage is discouraged.
See the wiki page "From SAGE to Sage to SageMath" on the SageMath wiki:

    [0] From SAGE to Sage to SageMath
        https://wiki.sagemath.org/FromSageToSageMath

> I have just updated Ubuntu 17.04 to 17.10 (since version 17.04 reached
> its end-of-life point). Sage was uninstalled in the process. The binary
> I reinstalled from the standard repositories crashed,

Thanks for incidentally reporting that. Details on that crash would
be interesting too. A typical cause is the lack of gfortran, although
this might have been fixed now. There are a few prerequisites for
running a Sage binary install, a few more for building from source,
and a few recommended things that will make more things possible in
Sage once installed.

I would recommend the following before proceeding with the installation:

    sudo apt full-upgrade
    sudo apt-get install binutils gcc g++ gfortran make m4 perl tar \
    git openssl libssl-dev texlive dvipng ffmpeg imagemagick tk tk-dev

> so the only option I had left was to install the most recent stable
> version of Sage (8.1) from source.

For the sake of arguing with "the only option I had left was [...]",
let me point to the "Distribution" page on the SageMath wiki,

    [1] SageMath distribution and packaging
        https://wiki.sagemath.org/Distribution

which reveals a number of other options available to you, including:
- using a Docker container, for example the one from "computop"
- using the SageAppliance virtual machine
- using the Conda-packaged Sage

Not to mention that you could also decide to install Sage 8.2.beta5,
which is even better than Sage 8.1, and which I would recommend.

Now regarding how to deal with the build error.

> I get: (end of the log file)
>
> [...]
>
> I am attaching the entire log file for giac. 
>
> What is the issue here? What can be done?

Unfortunately I cannot provide any insight as to what the issue is here.
Fortunately François Bissey and Jeroen Demeyer seem to have spotted the
likely cause of the error you encountered.

That said, I frequently encounter build errors, and I can list a few
things that sometimes help go past a build error (maybe not here!).

Many times, compilation problems are solved by running make enough times.
When `make` ends with an error, just run `make` again, and sometimes the
error does not repeat and the compilation succeeds.

Recently, there was a change in one aspect of the way Sage is compiled:
whereas in the past the build would start with `make build` and the
documentation would only get built once everything else was compiled,
this is no longer the case. One consequence, in the case of a parallel
build, is that parts of the documentation can be built at the same time
as some other components. Since building Sage's documentation is very
demanding in terms of memory, this sometimes induces build errors.

One way to work around that is to first run `make build`, then `make`.
Or, if several cores is available, sometimes setting MAKE='make -j4'
(or -j8, etc) and running `make build`, then setting MAKE='make -j1'
and running `make` so that the documentation is built on a single core.

You did not mention how much memory is available on your computer.

You did not mention whether you were building in parallel (maybe an expert
eye can figure that out from the log file you sent, I can't). Did you set

    MAKE='make -j4'

or similar? What do you get if you run

    echo $MAKE

in a terminal?

Hoping you can recover usage of Sage, either by using an alternate
installation method, or by completing the build, using the suggestions
by François Bissey, Jeroen Demeyer, Fredrik Johansson, Thierry Monteil.

If you report a bug to Ubuntu, let us know its id in the bug tracker:

    [2] Ubuntu bug tracker
        https://bugs.launchpad.net/ubuntu

All the best. Samuel

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to