@@ -121,7 +121,13 @@ development files.
121121Fortran 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
125131gfortran from `GNU Compiler Collection (GCC) <https://gcc.gnu.org/ >`_.
126132If C and C++ compilers also come from there (i.e., gcc and g++), their versions
127133should match.
@@ -136,6 +142,13 @@ this is work in progress at the moment (May 2019)).
136142Therefore, if you plan on using your own GCC compilers, then make sure that
137143their 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+
139152Alternatively, Sage includes a GCC package, so that C, C++ and Fortran
140153compilers will be built when the build system detects that it is needed,
141154e.g., non-GCC compilers, or
@@ -148,6 +161,13 @@ Note that you can always override this behavior through the configure
148161options ``--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+
151171Other notes
152172^^^^^^^^^^^
153173
0 commit comments