Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 0088e04

Browse files
author
Matthias Koeppe
committed
README.md: Merge discussion of compilers into Installation Manual, remove from README.md
1 parent 8c2a415 commit 0088e04

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed

README.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ Guide](https://doc.sagemath.org/html/en/installation).
298298
`./configure --help`).
299299

300300
13. Type `make`. That's it! Everything is automatic and
301-
non-interactive; but it will a few hours (on a recent computer).
301+
non-interactive; but it will take a few hours (on a recent
302+
computer).
302303

303304
The build should work fine on all fully supported platforms. If it
304305
does not, we want to know!
@@ -345,28 +346,6 @@ messages in them. Send (a small part of) the relevant log file to the
345346
making sure to include at least some of the error messages; probably
346347
someone there will have some helpful suggestions.
347348

348-
Supported Compilers
349-
-------------------
350-
351-
Sage includes a GCC (_GNU Compiler Collection_) package. However,
352-
it almost always better to use C, C++ and Fortran compilers
353-
already available on the system. To force using specific compilers,
354-
set environment variables `CC`, `CXX`, and `FC` (for C, C++, and Fortran compilers,
355-
respectively) to the desired values,
356-
and run `./configure`. E.g. `CC=clang CXX=clang++ FC=gfortran ./configure`
357-
will configure Sage to be built with Clang C/C++ compilers and Fortran
358-
compiler gfortran.
359-
360-
It is determined automatically whether Sage's GCC package, or just its part containing
361-
Fortran compiler `gfortran` needs to be installed. This can be overwritten
362-
by running `./configure` with option `--without-system-gcc`.
363-
364-
There are some known problems with old assemblers, in particular when
365-
building the ECM package. You should ensure that your assembler
366-
understands all instructions for your processor. On Linux, this means
367-
you need a recent version of binutils; on MacOS you need a recent version
368-
of Xcode.
369-
370349
Contributing to Sage
371350
--------------------
372351

src/doc/en/installation/source.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,13 @@ development files.
121121
Fortran and compiler suites
122122
###########################
123123

124-
Sage installation also needs a Fortran compiler. Officially we support
124+
Sage installation also needs a Fortran compiler. It is determined
125+
automatically whether Sage's GCC package, or just its part containing
126+
Fortran compiler `gfortran` needs to be installed. This can be
127+
overwritten by running `./configure` with option
128+
`--without-system-gcc`.
129+
130+
Officially we support
125131
gfortran from `GNU Compiler Collection (GCC) <https://gcc.gnu.org/>`_.
126132
If C and C++ compilers also come from there (i.e., gcc and g++), their versions
127133
should match.
@@ -136,6 +142,13 @@ this is work in progress at the moment (May 2019)).
136142
Therefore, if you plan on using your own GCC compilers, then make sure that
137143
their versions match.
138144

145+
To force using specific compilers, set environment variables ``CC``,
146+
``CXX``, and ``FC`` (for C, C++, and Fortran compilers, respectively)
147+
to the desired values, and run ``./configure``. For example,
148+
``./configure CC=clang CXX=clang++ FC=gfortran`` will configure Sage
149+
to be built with Clang C/C++ compilers and Fortran compiler
150+
``gfortran``.
151+
139152
Alternatively, Sage includes a GCC package, so that C, C++ and Fortran
140153
compilers will be built when the build system detects that it is needed,
141154
e.g., non-GCC compilers, or
@@ -148,6 +161,13 @@ Note that you can always override this behavior through the configure
148161
options ``--without-system-gcc`` and ``--with-system-gcc``, see
149162
:ref:`section_compilers`.
150163

164+
There are some known problems with old assemblers, in particular when
165+
building the ``ecm`` and ``fflas_ffpack`` packages. You should ensure
166+
that your assembler understands all instructions for your
167+
processor. On Linux, this means you need a recent version of
168+
``binutils``; on macOS you need a recent version of Xcode.
169+
170+
151171
Other notes
152172
^^^^^^^^^^^
153173

0 commit comments

Comments
 (0)