Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Looking for some tips and recommendations for my portage set
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Nima0908
n00b
n00b


Joined: 24 Feb 2025
Posts: 23

PostPosted: Tue May 20, 2025 4:05 pm    Post subject: Looking for some tips and recommendations for my portage set Reply with quote

Hello,
iam pretty new to gentoo and i already messed around a bit with portage, but i just wanted[/list] to ask if some more experienced people could give me some tips what i could improve and what i should add/remove etc.
Here is my make.conf:
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe -march=native -fomit-frame-pointer -flto -fno-semantic-interposition"
#-flto -ftree-vectorize -falign-function=32 -fno-semantic-interposition -fomit-frame-pointer"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--icf=all -Wl,--lto-O3 -Wl,--relax -fuse-ld=lld"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

CC="clang"
CPP="clang-cpp" # necessary for xorg-server and possibly other packages
CXX="clang++"
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"

EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4.5 --complete-graph=y"
FEATURES="parallel-fetch parallel-install"

# NOTE: This stage was built with the bindist USE flag enabled

USE="sound-server -gpm libvpx postproc mount wayland vulkan X vaapi alsa pipewire networkmanager -gnome -kde -systemd -Xvfb builtin server"
VIDEO_CARDS="nvidia-drivers"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8

MAKEOPTS="-j8"

ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE"
GRUB_PLATFORMS="efi-64"

GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ \
    https://mirror.dogado.de/gentoo \
    http://ftp.agdsn.de/gentoo \
    https://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ \
    https://ftp.gwdg.de/pub/linux/gentoo/ \
    https://ftp.uni-hannover.de/gentoo/ \
    ftp://mirror.netcologne.de/gentoo/ \
    https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ \
    https://ftp.halifax.rwth-aachen.de/gentoo/ \
    https://ftp.tu-ilmenau.de/mirror/gentoo/ \
    https://ftp.fau.de/gentoo \
    https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ \
    https://ftp.uni-stuttgart.de/gentoo-distfiles/"

As you can see, i switched to clang, as i prefer it. For stability i also have a gcc backup compiler:
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe -march=native "
#-fomit-frame-pointer -flto -fno-semantic-interposition"
#-flto -ftree-vectorize -falign-function=32 -fno-semantic-interposition -fomit-frame-pointer"
LDFLAGS=""
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

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

EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4.5 --keep-going"
FEATURES="parallel-fetch parallel-install"

# NOTE: This stage was built with the bindist USE flag enabled
#
USE="sound-server -gpm libvpx postproc mount wayland vulkan X vaapi alsa pipewire networkmanager -gnome -kde -systemd -Xvfb builtin server"
VIDEO_CARDS="nvidia-drivers"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8

MAKEOPTS="-j8"

ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE"
GRUB_PLATFORMS="efi-64"

GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ \
    https://mirror.dogado.de/gentoo \
    http://ftp.agdsn.de/gentoo \
    https://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ \
    https://ftp.gwdg.de/pub/linux/gentoo/ \
    https://ftp.uni-hannover.de/gentoo/ \
    ftp://mirror.netcologne.de/gentoo/ \
    https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ \
    https://ftp.halifax.rwth-aachen.de/gentoo/ \
    https://ftp.tu-ilmenau.de/mirror/gentoo/ \
    https://ftp.fau.de/gentoo \
    https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ \
    https://ftp.uni-stuttgart.de/gentoo-distfiles/"


I greatly appreciate all of your answers and tips :)

Also, i have one more question. Is there a way how i can pause portage compilation and install a file with another portage instance meanwhile and then resume the other one? This sounds really stupid, ik but iam working on a portage hook that can automatically create the proper file in package.env/ when the compilation failed with my clang settings to fall back to the gcc backup and i was wondering how the best way to make it was.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »