Using conda-forge compilers with your system headers and libraries
conda-forge's Linux compilers have always shipped with their own copy of
glibc and the Linux kernel headers, known as the sysroot. With
conda-forge/linux-sysroot-feedstock#101
you can now tell the conda-forge gcc, g++ and gfortran compilers (and
clang) to use the glibc and kernel headers already installed on your Linux
distribution:
conda create -n sys-cc \
-c conda-forge/label/sysroot_dev -c conda-forge \
gcc gxx gfortran system-linux-sysroot
This post covers why the conda-forge compilers carry a sysroot in the first place, why using the system one makes sense now, and the multi-year work that was needed before this was possible.





