Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

GCC fallback

Alexander Bilyak edited this page May 28, 2020 · 2 revisions

As for the moment it is impossible to compile every Gentoo package with clang (but I am working on it 😃). Until then you can use instructions to set up GCC fallback and find list of packages that require GCC below.

Setting up GCC fallback

Note: You can refer to Gentoo wiki for complete instruction that could differ from one described here.

Create /etc/portage/env/gcc with following content:

CC="gcc"
CXX="g++"
AR="gcc-ar"
NM="gcc-nm"
RANLIB="gcc-ranlib"

From now on you can use gcc as environment for building packages that could not be built with clang

List of packages that require GCC fallback

Note: list if provided in package.env format, so you can just copy-paste and append it to /etc/portage/package.env. Remember to change environment name if you called it somehow different from gcc described above

# see https://bugs.gentoo.org/685688
dev-libs/elfutils gcc

# glibc checks version of compiler and complains about clang version
sys-libs/glibc gcc

# media-libs/id3lib seems to force-use gcc headers that clang does not like
media-libs/id3lib gcc
Clone this wiki locally