Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
post your make.conf
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 20, 21, 22  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
keremCozin
n00b
n00b


Joined: 18 Sep 2017
Posts: 23

PostPosted: Fri May 05, 2023 3:15 am    Post subject: Re: my make.conf file Reply with quote

Even more simpler;

#############################################
### Gentoo GNU/Linux Workstation (stable) ###
#############################################
CHOST="x86_64-pc-linux-gnu"

ACCEPT_KEYWORDS="amd64"

ACCEPT_LICENSE="* -@EULA"

### Compiler Options ###
COMMON_FLAGS="-march=native -O2 -pipe -fomit-frame-pointer"

CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"

MAKEOPTS="-j4"
# MAKEOPTS="-j9"

CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

### Portage Variables ###
DISTDIR="/var/cache/distfiles"
PORTDIR="/var/db/repos/gentoo"
PORT_LOGDIR="/var/log/portage"

EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --ask --verbose --verbose-conflicts --with-bdeps=y --complete-graph=y --backtrack=500 --keep-going --jobs=3 --load-average=7.2"
# EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --ask --verbose --verbose-conflicts --with-bdeps=y --complete-graph=y --backtrack=500 --keep-going"
FEATURES="${FEATURES} split-elog split-log nodoc noinfo parallel-fetch parallel-install candy"

PORTAGE_NICENESS="10"

PORTAGE_ELOG_SYSTEM="echo save"
PORTAGE_ELOG_CLASSES="*"

### Hardware and Localization ###
GRUB_PLATFORMS="pc"

VIDEO_CARDS="nvidia"
INPUT_DEVICES="libinput"

L10N="en en-GB en-US tr"

### Extras
LIBREOFFICE_EXTENSIONS="*"

PYTHON_TARGETS="python3_11"
PYTHON_SINGLE_TARGET="python3_11"

C'mon who needs global use flags when you can obsessively set for each packages. :P
_________________
Kerem Caner Özin
Back to top
View user's profile Send private message
nikolis
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 200
Location: Athens

PostPosted: Sun May 14, 2023 3:05 pm    Post subject: Reply with quote

Code:

COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j16"
EMERGE_DEFAULT_OPTS="-A --jobs=16 --load-average=15"
FEATURES = "candy parallel-fetch parallel-install"
VIDEO_CARDS="amdgpu radeonsi"
USE="X gtk gnome elogind dbus -systemd -bluetooth -cups -games -playlist -qtwebengine -webengine -qt5 -kde -dvd -cdr"
GRUB_PLATFORMS="efi-64"
PORTAGE_ELOG_CLASSES="log"
PORTAGE_ELOG_SYSTEM="save"
ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE"
LC_MESSAGES=C
LANG="el_GR.UTF-8"
LC_MESSAGES="en_US.UTF-8"
GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/"
Back to top
View user's profile Send private message
ZekeMorrin
n00b
n00b


Joined: 15 Oct 2023
Posts: 13

PostPosted: Sun Oct 15, 2023 2:19 pm    Post subject: Reply with quote

Code:
ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*"

CC="clang" CXX="clang++" AR="llvm-ar" NM="llvm-nm" RANLIB="llvm-ranlib"

COMMON_FLAGS="-O2 -pipe -march=native"

CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" FCFLAGS="${COMMON_FLAGS}" FFLAGS="${COMMON_FLAGS}"

CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3"

RUSTFLAGS="-C target-cpu=native -C opt-level=3"

MAKEOPTS="-j13"

LC_MESSAGES=C.utf8

EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --ask --verbose --verbose-conflicts --with-bdeps=y --complete-graph=y --keep-going"

FEATURES="${FEATURES} split-elog split-log nodoc noinfo candy"

DISTDIR="/var/cache/distfiles" PORTDIR="/var/db/repos/gentoo" PORT_LOGDIR="/var/log/portage"

PORTAGE_ELOG_SYSTEM="echo save" PORTAGE_ELOG_CLASSES="*"

GRUB_PLATFORMS="efi-64"

VIDEO_CARDS="intel" INPUT_DEVICES="libinput"

USE="clang lto pgo zstd jit python xml icu bluetooth dbus introspection pulseaudio gtk3 networkmanager vala iptables nftables screencast pipewire gnome gnome-keyring gstreamer ffmpeg v4l iwd
bluetooth-sound modemmanager -gnome-online-accounts -qt5 -kde -ipv6 -gtk-doc -cups -eds"
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3433
Location: Canada

PostPosted: Mon Oct 16, 2023 1:01 am    Post subject: Reply with quote

Code:

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# CPU flags
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="-activities -anacron -berkdb bluetooth cjk djvu -doc -dvd -dvdnav elogind -geolocation -gnome -gstreamer -gtk -gtk3 -handbook icu -ipv6 -joystick lm_sensors -modemmanager -mysql -netifrc -networkmanager nss pm-utils postscript pulseaudio -rsync-verify -semantic-desktop sqlite -screencast touchpad vaapi -vala -wayland -webengine -webkit webp xetex"
# Hardware
VIDEO_CARDS="intel"
INPUT_DEVICES="evdev synaptics wacom"
SANE_BACKENDS="canon genesys"
# Languages
L10N="en en-US en-CA ru"
# Portage placement
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
# Elog
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="warn error log"
# Build in standard tmpfs
EMERGE_LOG_DIR="/dev/shm"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_TMPDIR="/dev/shm"
BUILD_PREFIX="/dev/shm"
#Licences
ACCEPT_LICENSE="*"
Back to top
View user's profile Send private message
NeglectedRudderPug
n00b
n00b


Joined: 04 Oct 2023
Posts: 29

PostPosted: Wed Oct 18, 2023 11:10 am    Post subject: Reply with quote

I'm probably going to get slapped for having so many use flags, I'm still fairly new to Gentoo. :roll: :lol:

There even more in /etc/package.use/ and a few things in various /etc/package.*! Which I set on a per-package basis :oops:

Code:
#
# Heart of Gentoo
#
# - The Portage Make Configuration
#

# Build Flags
COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j14"

# Languages
LC_MESSAGES=C.utf8
L10N="en en-US en-GB ja"

# Grub Platform
GRUB_PLATFORMS="efi-64"

# Accepted Licenses
ACCEPT_LICENSE="linux-fw-redistributable MSttfEULA bh-luxi broadcom_bcm20702 unRAR"

# USE Flags
USE="activities \
     apcupsd \
     bluetooth \
     cec \
     concheck \
     connection-sharing \
     cryptsetup \
     -elogind \
     eme-free \
     exif \
     fcitx4 \
     firewalld \
     flac \
     flatpak \
     -gnome-keyring \
     graphicsmagick \
     handbook \
     -ibus \
     imagemagick \
     initramfs \
     javafx \
     jpeg \
     keyring \
     kwallet \
     libvirt \
     lto \
     lua \
     matroska \
     mp3 \
     mpeg \
     mtp \
     networkmanager \
     nftables \
     offensive \
     ogg \
     opencl \
     opengl \
     pam \
     pipewire \
     pipewire-alsa \
     policykit \
     -ppp \
     pulseaudio \
     -reiserfs \
     rustfmt \
     screencast \
     seccomp \
     security-key \
     -telemetry
     theora \
     tty-helpers \
     udisks \
     -ufw \
     v4l \
     vaapi \
     vdpau \
     verify-sig \
     vpx \
     vulkan \
     wayland \
     -wext \
     wg-quick \
     x264 \
     x265 \
     xcsecurity \
     yubikey \
     -wifi"

# Mirrors
GENTOO_MIRRORS="https://mirror.bytemark.co.uk/gentoo/ \
                http://mirror.bytemark.co.uk/gentoo/ \
                rsync://mirror.bytemark.co.uk/gentoo/ \
                https://www.mirrorservice.org/sites/distfiles.gentoo.org/ \
                http://www.mirrorservice.org/sites/distfiles.gentoo.org/ \
                ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ \
                rsync://rsync.mirrorservice.org/distfiles.gentoo.org/"

Which reminds me, I need to remove fcitx, because it doesn't work. :oops:

[1] I am a wayland user and wayland is only supported with fcitx5, which is not yet available for Gentoo.
Back to top
View user's profile Send private message
rfx
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2023
Posts: 142
Location: de-by

PostPosted: Tue Nov 14, 2023 12:30 pm    Post subject: Reply with quote

Lines ##marked out are for my laptop, nearly same hardware as PC, but different -march and differenct cpu_flags. During new installation i copy make.conf from installmedia and just edit the lines, either pc or laptop


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.
CHOST="x86_64-pc-linux-gnu"
COMMON_FLAGS="-march=tremont -O2 -pipe"
#COMMON_FLAGS="-march=skylake -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
CPU_FLAGS_X86="aes mmx mmxext pclmul popcnt rdrand sse sse2 sse3 ssse3 sse4_1 sse4_2"
#CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"
MAKEOPTS="-j4"
EMERGE_DEFAULT_OPTS="-j1 --quiet-build"
PORTAGE_SCHEDULING_POLICY="idle"
VIDEO_CARDS="intel"
INPUT_DEVICES="libinput synaptics"
ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE"
ACCEPT_KEYWORDS="amd64"
L10N="de"
USE="-floppy -gnome -gpm -systemd -telemetry d3d12 display-manager fontconfig hwaccel kate kde libass libtiger lm-sensors matroska minimal networkmanager opengl openh264 opus proton pulseaudio samba sddm smart ssl vaapi wayland xwayland x264 x265 zstd"
PORTAGE_COMPRESS="zstd"
GRUB_PLATFORMS="efi-64"

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

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

GENTOO_MIRRORS="https://ftp.fau.de/gentoo \
    https://ftp.uni-stuttgart.de/gentoo-distfiles/"
Back to top
View user's profile Send private message
bjorn-fischer
n00b
n00b


Joined: 13 Nov 2023
Posts: 8
Location: Bielefeld

PostPosted: Wed Nov 15, 2023 8:22 am    Post subject: Reply with quote

A few months ago I started to use LTO and vectorization by default which seems to work pretty well for the majority of the packages.

Code:

#
# make.conf -- global ebuild config
#
COMMON_FLAGS="-march=native -O2 -pipe -flto=auto -ftree-vectorize -fvect-cost-model=very-cheap"
CFLAGS="${CFLAGS} ${COMMON_FLAGS}"
CXXFLAGS="${CXXFLAGS} ${COMMON_FLAGS}"
FCFLAGS="${FCFLAGS} ${COMMON_FLAGS}"
FFLAGS="${FFLAGS} ${COMMON_FLAGS}"
LDFLAGS="${LDFLAGS} -fuse-ld=mold"

PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

LC_MESSAGES=C

MAKEOPTS="-j31"

PORTAGE_TMPDIR="/tmp"

ACCEPT_LICENSE="*"

L10N="en-GB"

CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt      \
               rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3"

USE="X xcb xv xvid gtk3 cairo pango truetype unicode icu usb ladspa \
     flac mp4 mpeg mad a52 aac ogg vorbis dvd alsa ffmpeg xinerama  \
     openmp smp raw postscript gimp opengl exif gif mariadb dri pdf \
     lcms jpeg png svg libnotify png tiff vaapi encode mp3 jack     \
     imagemagick type1 cleartype corefonts opencl vulkan idn lto    \
     -elogind -systemd -gtk2 -nls -consolekit -policykit -udisks    \
     -upower -gvfs -startup-notification -gnome -cups -vala         \
     -nvidia -accessibility -apparmor -seccomp -initramfs"

GRUB_PLATFORMS="efi-64"

INPUT_DEVICES="libinput"
VIDEO_CARDS="amdgpu radeon radeonsi"
AMDGPU_TARGETS="gfx1100"
Back to top
View user's profile Send private message
spare
n00b
n00b


Joined: 13 Nov 2023
Posts: 3

PostPosted: Wed Nov 15, 2023 9:08 am    Post subject: Reply with quote

Code:

#############
 CHOST="x86_64-pc-linux-gnu"
 CBUILD="x86_64-pc-linux-gnu"
 CTARGET="x86_64-pc-linux-gnu"
#############
 CPU_FLAGS_X86="mmx sse sse2 mmxext"
#############
 CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fomit-frame-pointer -flto"
 CFLAGS="${CFLAGS} -mindirect-branch=thunk -mfunction-return=thunk"
 CFLAGS="${CFLAGS} -mindirect-branch-register -mindirect-branch-cs-prefix"
 CFLAGS="${CFLAGS} -mharden-sls=all"
 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fexceptions"
 CFLAGS="${CFLAGS} -pie -fPIE -fPIC -fstack-protector-all -fstack-clash-protection"
 CXXFLAGS="${CFLAGS}"
 LDFLAGS="-Wl,--as-needed,-z,now,-z,relro,-z,noexecstack,-z,noexecheap"
#############
 MAKEOPTS="-j16 -l32"
#############
 EMERGE_DEFAULT_OPTS="--jobs=16 --load-average=32 --with-bdeps y"
 EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --quiet-build --quiet-fail"
 EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --binpkg-changed-deps y --binpkg-respect-use y"
#EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --getbinpkg --getbinpkgonly"
#############

#############
 ACCEPT_LICENSE="*"
 ACCEPT_KEYWORDS="~amd64"
#############
 USE="-bindist -nls -acl -xattr ssp hardened pie pic -jit static-libs"
#############
 FEATURES="unknown-features-warn"
 FEATURES="${FEATURES} nodoc noinfo noman"
 FEATURES="${FEATURES} mirror buildpkg binpkg-multi-instance binpkg-docompress binpkg-dostrip binpkg-logs"
 FEATURES="${FEATURES} -cgroup -ipc-sandbox -mount-sandbox -network-sandbox -network-sandbox-proxy -pid-sandbox"
 FEATURES="${FEATURES} strict sandbox usersync userfetch userpriv usersandbox" # stricter (global warnings as errors)
 FEATURES="${FEATURES} parallel-fetch parallel-install distlocks ebuild-locks"
 FEATURES="${FEATURES} config-protect-if-modified protect-owned -collision-protect"
 FEATURES="${FEATURES} clean-logs fail-clean -noclean -keeptemp -keepwork"
 FEATURES="${FEATURES} multilib-strict preserve-libs"
 FEATURES="${FEATURES} suidctl sfperms -xattr"
#FEATURES="${FEATURES} getbinpkg"
#############
#PORTAGE_BINHOST="http://172.16.0.1"
#############

#############
 BINHOST="/binhost"
 PORTDIR="${BINHOST}/portage"
 DISTDIR="${BINHOST}/distfiles"
 PKGDIR="${BINHOST}/packages" BINPKG_COMPRESS="xz" BINPKG_COMPRESS_FLAGS="-T0"
 PORTAGE_TMPDIR="/tmp"
#############
 EMERGE_LOG_DIR="${BINHOST}/logs"
 PORTAGE_LOGDIR="${BINHOST}/logs/portage"
#############
 GRUB_PLATFORMS="efi-64"
 VIDEO_CARDS=""
 INPUT_DEVICES="libinput"
 CURL_SSL="openssl"
 QEMU_SOFTMMU_TARGETS="x86_64"
 QEMU_USER_TARGETS=""
 LLVM_TARGETS=""
 LC_MESSAGES="C"
 FFTOOLS=""
#############
 GENTOO_MIRRORS=""
#############
 GENTOO_MIRRORS="http://127.0.0.1/shared"
#############
 GENTOO_MIRRORS="https://distfiles.gentoo.org"
#############
Back to top
View user's profile Send private message
usr99
n00b
n00b


Joined: 19 Aug 2021
Posts: 38
Location: on the ethernet

PostPosted: Thu Nov 16, 2023 6:31 pm    Post subject: Reply with quote

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="-march=native -O3 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

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

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
USE="cde dbus motif X libinput radeon radeonsi"
MAKEOPTS="-j4"
ACCEPT_LICENSE="*"
VIDEO_CARDS="radeon radeonsi"
INPUT_DEVICES="libinput"
Back to top
View user's profile Send private message
irets
Apprentice
Apprentice


Joined: 17 Dec 2019
Posts: 229

PostPosted: Fri Nov 17, 2023 12:47 pm    Post subject: Reply with quote

It's quite surprising how many people use ACCEPT_LICENSE="*"
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5127
Location: Bavaria

PostPosted: Fri Nov 17, 2023 1:17 pm    Post subject: Reply with quote

Irets wrote:
It's quite surprising how many people use ACCEPT_LICENSE="*"

I am using it also ... with one exception:
Code:
ACCEPT_LICENSE="* -@EULA"
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5127
Location: Bavaria

PostPosted: Fri Feb 23, 2024 12:58 pm    Post subject: Reply with quote

My machine has profile: No-Multilib + Plasma
(as described here: https://forums.gentoo.org/viewtopic-p-8694188.html#8694188 )

Code:
# grep -r --exclude=linux* --exclude=gentoo* "" /etc/portage
/etc/portage/package.env:dev-qt/qtwebengine monster.conf
/etc/portage/env/monster.conf:MAKEOPTS="-j16"
/etc/portage/make.conf:COMMON_FLAGS="-march=native -O2 -pipe"
/etc/portage/make.conf:CFLAGS="${COMMON_FLAGS}"
/etc/portage/make.conf:CXXFLAGS="${COMMON_FLAGS}"
/etc/portage/make.conf:FCFLAGS="${COMMON_FLAGS}"
/etc/portage/make.conf:FFLAGS="${COMMON_FLAGS}"
/etc/portage/make.conf:LC_MESSAGES=C
/etc/portage/make.conf:ACCEPT_LICENSE="* -@EULA"
/etc/portage/make.conf:MAKEOPTS="-j24"
/etc/portage/make.conf:L10N="de"
/etc/portage/make.conf:GRUB_PLATFORMS="efi-64"
/etc/portage/make.conf:VIDEO_CARDS="intel"
/etc/portage/make.conf:USE="-accessibility -bluetooth -gstreamer -gtk -gtk3 -haptic -ipv6 -lvm -modemmanager -networkmanager -phonon -ppp -pulseaudio -screencast -semantic-desktop -thin -thumbnail -wext -wifi -wireless "
/etc/portage/make.conf:USE="$USE jumbo-build lm-sensors matroska openexr opus theora threads vaapi vpx webp xvmc"
/etc/portage/make.conf:# for gcc:
/etc/portage/make.conf:USE="$USE default-stack-clash-protection default-znow"
/etc/portage/package.use:*/* CPU_FLAGS_X86: aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 vpclmulqdq
/etc/portage/package.use:net-misc/netifrc -dhcp
/etc/portage/package.use:net-misc/chrony -nettle -nts -sechash
/etc/portage/package.use:kde-plasma/plasma-meta -crypt -crash-handler
/etc/portage/package.use:app-arch/p7zip -kde -wxwidgets
/etc/portage/package.use:sys-apps/i2c-tools python
/etc/portage/package.use:media-video/pipewire -sound-server
/etc/portage/package.use:# temporary because of bug: https://bugs.gentoo.org/show_bug.cgi?id=916267
/etc/portage/package.use:>=dev-qt/qtgui-5.15.11-r2 accessibility
/etc/portage/package.accept_keywords:sys-firmware/intel-microcode
/etc/portage/package.accept_keywords:sys-kernel/gentoo-sources
/etc/portage/package.accept_keywords:sys-kernel/linux-headers
/etc/portage/package.accept_keywords:x11-apps/igt-gpu-tools
/etc/portage/package.accept_keywords:app-crypt/ima-evm-utils
/etc/portage/package.accept_keywords:games-board/xboard
/etc/portage/package.accept_keywords:games-board/polyglot
/etc/portage/package.accept_keywords:games-board/stockfish
/etc/portage/package.accept_keywords:app-admin/kernel-hardening-checker
/etc/portage/repos.conf/local.conf:[local]
/etc/portage/repos.conf/local.conf:location = /var/db/repos/local

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
e8root
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2024
Posts: 94

PostPosted: Tue Feb 27, 2024 8:56 pm    Post subject: Reply with quote

Code:
USE="-abi_x86_32 abi_x86_64 efi -accessibility pulseaudio proton docker pgo lto vulkan man  clang java readline alsa"

COMMON_FLAGS="-O3 -march=native -mtune=native -mfpmath=both -fomit-frame-pointer -DNDEBUG -pipe -flto=14"
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"

RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C codegen-units=14"
RUSTFLAGS="${RUSTFLAGS}  -C debug-assertions=off -C strip=symbols -C debuginfo=0 -C force-frame-pointers=off"
RUSTFLAGS="${RUSTFLAGS} -C link-arg=-Wl,-z,pack-relative-relocs"

LLVM_SLOT="17"
LLVM_TARGETS="AMDGPU X86"

CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3"
ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE MSttfEULA google-chrome AMD-GPU-PRO-EULA"
ABI_X86="64"
LC_MESSAGES=C.utf8
VIDEO_CARDS="amdgpu radeonsi
GRUB_PLATFORMS="efi-64"
MAKEOPTS="-j15 -l15"

_________________
Unix Wars - Episode V: AT&T Strikes Back
Back to top
View user's profile Send private message
ZekeMorrin
n00b
n00b


Joined: 15 Oct 2023
Posts: 13

PostPosted: Fri Mar 08, 2024 9:23 am    Post subject: Reply with quote

Here comes a fancy make.conf file :D

Code:
##############################################
### Gentoo GNU/Linux (multilib) (unstable) ###
##############################################
ABI_X86="64 32"
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
########################
### Compiler Options ###
########################
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3"
RUSTFLAGS="-C target-cpu=native -C opt-level=3"
# MAKEOPTS="-j8"
MAKEOPTS="-j4"
#######################
### Portage Options ###
#######################
# EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --ask --verbose --verbose-conflicts --with-bdeps=y --complete-graph=y --keep-going"
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --ask --verbose --verbose-conflicts --with-bdeps=y --complete-graph=y --keep-going --jobs=4 --load-average=3.0"
FEATURES="${FEATURES} split-elog split-log nodoc noinfo candy"
DISTDIR="/var/cache/distfiles"
PORTDIR="/var/db/repos/gentoo"
PORT_LOGDIR="/var/log/portage"
PORTAGE_ELOG_SYSTEM="echo save"
PORTAGE_ELOG_CLASSES="*"
PORTAGE_NICENESS="10"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
########################
### Hardware Options ###
########################
GRUB_PLATFORMS="efi-64"
VIDEO_CARDS="nvidia intel"
INPUT_DEVICES="libinput"
LUA_TARGETS="${LUA_TARGETS} luajit"
PYTHON_TARGETS="${PYTHON_TARGETS} python3_12"
LLVM_TARGETS="${LLVM_TARGETS} WebAssembly"
########################
### Global USE Flags ###
########################
source /etc/portage/use_flags.conf
USE="${U_KERNEL} ${U_SYSTEM} ${U_DESKTOP} ${U_AUDIO} ${U_GFX} ${U_NETWORK} ${U_DEVELOPER} ${NO_USE}"


I've found this trick useful and even more fancier (sourcing /etc/portage/use_flags.conf in make.conf)
And so my use flags;

Code:
U_KERNEL="modules-sign dist-kernel audit bpf"

U_SYSTEM="lto pgo orc profile zstd icu threads"

U_DESKTOP="modemmanager bluetooth wayland xinerama gtk3"

U_AUDIO="alsa pulseaudio pipewire"

U_GFX="screencast ffmpeg gstreamer vulkan opengl opencl"

U_NETWORK="iptables nftables xtables netlink networkmanager"

U_DEVELOPER="python xml jit vala java json"

NO_USE="-gtk-doc -handbook -qt5 -gnome-online-accounts -cups -debug"


Hats off 8) :D
Back to top
View user's profile Send private message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 11

PostPosted: Sun Jun 23, 2024 10:06 am    Post subject: Reply with quote

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="-march=skylake -O2 -pipe"


-march=skylake is for my CPU which is an i7-7500u with 2 cores and 4 threads.

Code:

CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"



Code:

MAKEOPTS="-j4 -l5"


-j4 for 4 cores and since I have 16 GB of RAM this will take up 8 GB of RAM when compiling, and I have plenty left.
-l5 set 1 higher than the amount of cores the system has which is guidance from the handbook.

Code:

# NOTE: This stage was built with the bindist Use flag enabledppending getbinpkg to the list of values within the FEATURES variable
FEATURES="${FEATURES} getbinpkg"
# Require signatures
# FEATURES="${FEATURES} binpkg-request-signature"


Enable binary packages but don't require signature because it causes errors sometimes. Binary packages are useful because I don't need to compile things I don't want to compile.

Code:

# USE flags
USE="-ipv6"


Here I am disabling IPV6 since my internet does not support it.

Code:

# Video cards
VIDEO_CARDS="intel"


My system has an Intel HD Graphics 620 iGPU.

Code:

# Accepted Licenses
ACCEPT_LICENSE="*"


Accept all licenses.

Code:

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


Code:

GENTOO_MIRRORS="https://ftp.agdsn.de/gentoo \
    https://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ \
    https://mirror.netcologne.de/gentoo/ \
    https://mirror.netzwerge.de/gentoo/ \
    https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ \
    https://ftp.halifax.rwth-aachen.de/gentoo/ \
    https://ftp.heanet.ie/mirrors/gentoo.org/ \
    https://mirror.bytemark.co.uk/gentoo/ \
    https://mirrors.gethosted.online/gentoo/"


Mirrors that I selected.
Back to top
View user's profile Send private message
FastTurtle
Guru
Guru


Joined: 03 Sep 2002
Posts: 499
Location: Flakey Shake & Bake Caliornia, USA

PostPosted: Thu Jun 27, 2024 4:28 am    Post subject: Reply with quote

I've stripped it to the minimum and use lots of package specific flags

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="-march=native -Os -pipe"

#

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

USE="-gnome -gtk X"

MAKE_OPTS=" -j4 -L9"

ACCEPT_LICENSE="@BINARY-REDISTRIBUTABLE"

VIDO_CARDS="amdgpu radeonsi"


I've stripped my use flags to the bare minimum for system wide flags as I prefer using package.use flags to add what features I want in a package.

Note the use of -Os for the optimizations. I have an R7 5800x3d so don't normally need but the difference between O2 and Os makes a difference in many CPU heavy tasks.

Still testing/tweaking the MAKE_OPTS thread total. Yes I have a 16 core but find that anything more higher really doesn't improve build speed on the 5800x3d, even with the 128GB of memroy the system has.
_________________
AsRock B550 Phantom Gaming 4
128GB 3200 Mhz memory
1TB NVME as the boot disk
4x 4TB Sata - 2x 2TB Sata SSD - 4x 450GB SaS - 3x 900GB SaS - 72GB SaS for Gentoo system disk
LSI 9300-16i in HBA mode for all spinning disks
Radeon 6800 (Non XT) for GPU
Back to top
View user's profile Send private message
nikolis
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 200
Location: Athens

PostPosted: Thu Jun 27, 2024 9:01 am    Post subject: Reply with quote

Isn't L9 stressful?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22696

PostPosted: Thu Jun 27, 2024 12:04 pm    Post subject: Reply with quote

nikolis wrote:
Isn't L9 stressful?
No. It is not even well-formed, since --check-symlink-times (short name: -L) does not take an argument. Fortunately, the poster also misspelled MAKEOPTS as MAKE_OPTS, so that line has no effect on Make.
Back to top
View user's profile Send private message
Waffelo
n00b
n00b


Joined: 26 Nov 2023
Posts: 1

PostPosted: Mon Jul 01, 2024 10:53 am    Post subject: Reply with quote

New to Gentoo. I don't have many use flags IG

Code:
COMMON_FLAGS="-O2 -march=zen2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
#RUSTFLAGS="${COMMON_FLAGS}"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq"

EMERGE_DEFAULT_OPTS="--ask --verbose"
VIDEO_CARDS="radeonsi amdgpu"
GRUB_PLATFORM="efi-64"

PYTHON_SINGLE_TARGET="python3_11"

MAKEOPTS="-j16"
ACCEPT_LICENSE="-* @FREE"
USE="device-mapper crypt elogind eme-free -bluetooth -wifi X wayland pipewire sound-server pulseaudio screencast  -ppp -systemd -telemetry -gnome"
Back to top
View user's profile Send private message
ZekeMorrin
n00b
n00b


Joined: 15 Oct 2023
Posts: 13

PostPosted: Thu Nov 21, 2024 4:58 pm    Post subject: Reply with quote

My current make.conf and use flags for backup purposes;

Code:
# /etc/portage/make.conf
LC_MESSAGES=C.utf8

source /etc/portage/use_flags.conf

ACCEPT_LICENSE="* -@EULA"

COMMON_FLAGS="-march=tigerlake -O2 -pipe"

CFLAGS="${CFLAGS} ${COMMON_FLAGS}"
CXXFLAGS="${CXXFLAGS} ${COMMON_FLAGS}"
FCFLAGS="${FCFLAGS} ${COMMON_FLAGS}"
FFLAGS="${FFLAGS} ${COMMON_FLAGS}"

RUSTFLAGS="${RUSTFLAGS} -C target-cpu=tigerlake -C opt-level=3"

CGO_CFLAGS="${CFLAGS} ${COMMON_FLAGS}"
CGO_CXXFLAGS="${CXXFLAGS} ${COMMON_FLAGS}"
CGO_FFLAGS="${FFLAGS} ${COMMON_FLAGS}"
CGO_LDFLAGS="${LDFLAGS}"

CPU_FLAGS_X86="aes avx avx2 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2
sse3 sse4_1 sse4_2 ssse3 vpclmulqdq"

MAKEOPTS="-j7"

DISTDIR="/var/cache/distfiles"
PORTDIR="/var/db/repos/gentoo"
PORT_LOGDIR="/var/log/portage"

EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --ask --verbose --verbose-conflicts --complete-graph=y --keep-going"

FEATURES="${FEATURES} split-elog split-log nodoc noinfo candy"

PORTAGE_ELOG_SYSTEM="echo save"
PORTAGE_ELOG_CLASSES="*"

PORTAGE_NICENESS="10"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"

L10N="en en-US"

GRUB_PLATFORMS="efi-64"
INPUT_DEVICES="libinput"
VIDEO_CARDS="intel nvidia vmware"

QEMU_USER_TARGETS="x86_64"
QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm"

USE="${USYS} ${UCOMP} ${UDESK} ${UEXTRA} ${UKDE} ${UDONT}"


Code:
# etc/portage/use_flags.conf
USYS="dist-kernel python zstd iptables bpf threads"

UCOMP="cuda opencl opencv fftw"

UDESK="ffmpeg gstreamer phonon xscreensaver xinerama"

UEXTRA="nvenc openh264 x265 webp vpx v4l colord epub rar"

UKDE="multimedia share"

UDONT="-gtk-doc -handbook -webengine"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3 ... 20, 21, 22
Page 22 of 22

 
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