You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/maintainer/infrastructure.rst
+88-11Lines changed: 88 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -281,35 +281,112 @@ Compilers and Runtimes
281
281
282
282
Conda-forge builds and maintains its own set of compilers for various languages
283
283
and/or systems (e.g., ``C``, ``FORTRAN``, ``C++``, ``CUDA``, etc.). These are used
284
-
in all of our CI builds to build both core dependencies (e.g., ``Python``) and maintainer-contributed
285
-
packages. While we do not have any formal policies or promises of support for these
284
+
in all of our CI builds to build essentially all artefacts published by conda-forge.
285
+
286
+
In the past, compiler upgrades often required full rebuilds of basically all of
287
+
conda-forge due to potential ABI breaks. These breaks have become much rarer in
288
+
frequency and scope, so it is not a current concern. However, we keep our policies
289
+
for such ABI breaks in place for the next time it should occur.
290
+
291
+
While we do not have any promises of support for a generation of ABI-compatible
286
292
compilers, we have historically maintained them according to the following (non-binding)
287
293
principles.
288
294
289
295
* The authoritative source of the current compilers and versions for various languages
290
296
and platforms is the `conda_build_config.yaml <https://github.com/conda-forge/conda-forge-pinning-feedstock/blob/master/recipe/conda_build_config.yaml>`_
291
297
in the `conda-forge/conda-forge-pinning-feedstock <https://github.com/conda-forge/conda-forge-pinning-feedstock>`_
292
298
as described in :ref:`globally_pinned_packages`.
293
-
* We provide no support of any kind in terms of the long-term stability of these pinnings.
299
+
* We provide no support of any kind in terms of the long-term stability / support of a given compiler generation.
294
300
* We upgrade them in an ad-hoc manner on a periodic basis as we have the time and energy to do so.
295
301
Note that because of the way we enforce runtime constraints, these compiler upgrades will not break
296
302
existing packages. However, if you are using the compilers outside of ``conda``, then you may find issues.
297
-
* We generally provide notice in the form of an announcement when a compiler is going to be upgraded.
303
+
* We usually provide notice in the form of an announcement when an ABI-incompatible compiler change is going to happen.
298
304
Note that these changes take a bit of time to complete, so you will generally have time
299
305
to prepare should you need to.
300
306
* Some of the criteria we think about when considering a compiler migration include
301
307
1) the degree of disruption to the ecosystem, 2) the amount of work for the ``core`` team,
302
308
and 3) the amount of time it will cost our (volunteer) feedstock maintainers.
303
309
304
-
We do use some unofficial names for our compiler stack internally. Note however that
305
-
the existence of these names does not imply any level of support or stability for the compilers
310
+
These compiler generations may or may not have some unofficial names for our
311
+
internal use (e.g. ``comp7``). We note again that the existence of these names
312
+
does not imply any level of support or stability for the compilers
306
313
that form the given stack.
307
314
308
-
* Our current compiler stack is referred to internally as ``comp7``.
309
-
* The previous compiler stack based in part on the various ``toolchain_*`` packages
310
-
was sometimes referred to as ``comp4``. On linux the ``toolchain_*`` compilers were
311
-
GCC 4.8.2 as packaged in the devtoolset-2 software collection. On osx, we use clang from
312
-
Apple's Xcode in the ``toolchain_*`` packages.
315
+
The more recent status quo is that compilers can be upgraded in an ABI-compatible manner,
316
+
meaning that we can just increase the version in our global pinning, and it will slowly
317
+
roll out in a compatible manner to the ecosystem as feedstocks get rerendered.
318
+
For such ABI-compatible upgrades, similar but looser principles apply:
319
+
320
+
* The pins are similarly in the global pinning, see :ref:`globally_pinned_packages`.
321
+
* We provide no support of any kind in terms of the long-term availability of a given compiler generation.
322
+
* We generally provide notice in the form of an announcement when a compiler is going to be upgraded.
323
+
* In general, our compilers on Linux and OSX are using very recent compilers, whereas
324
+
on windows, we generally use the last supported VS version.
325
+
326
+
Despite the lack of explicit support, we try to keep the compilers in their various versions
327
+
working also outside of conda-forge, and even provide an easy way to install them
328
+
(through the `compilers <https://github.com/conda-forge/compilers-feedstock>`_ feedstock).
329
+
330
+
In more detail, our default compiler stack is made up very differently on each platform.
331
+
More specifically, each compiler uses an _activation_ package that makes the difference
332
+
between it being merely present in a build environment, and it being used by default.
333
+
These will be installed when using ``{{ compiler('xyz') }}`` in ``meta.yaml``, where
334
+
``'xyz'`` is one of ``'c', 'cxx', 'fortran', 'cuda', 'rust', 'go-cgo', 'go-nocgo'``.
0 commit comments