Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

endintgg my make.conf

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
c2
Tux's lil' helper
Tux's lil' helper
Posts: 81
Joined: Fri Mar 14, 2025 3:00 pm

endintgg my make.conf

  • Quote

Post by c2 » Fri May 16, 2025 4:47 pm

hello so i just feel like i've done alot of weird stuff on my make.conf file and i wanted a santity check.
i know alot of flags for use are reduntant ebecuase of the system profile

Code: Select all

c2@gentoobtw ~ $ cat /etc/portage/make.conf
# 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 -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
ACCEPT_LICENSE="*"
#RUSTFLAGS="-C opt-level=3"
 
LC_MESSAGES=C.utf8
MAKEOPTS="-j30 -l30"
EMERGE_DEFAULT_OPTS="--jobs 30 --load-average=30"

VIDEO_CARDS=" amdgpu radeonsi"
ABI_X86="64 32"

USE="dist-kernel initramfs udisks encode lm-sensors plasma qt6 vaapi discord vulkan wayland alsa pipewire systemd aom dav1d svt-av1 vpx x264 x265 fdk-aac libmp3lame libvorbis libopus ffmpeg -gtk -gnome  qt vlc aac faad fdk mp4 -openrc systemd-boot rocm -cuda openmp kde hip colord osmesa hdr hip amr amrenc lame openmpt flac speex zimg shaderc snappy jack opencl vdpau drm epub"
CPU_FLAGS_X86="aes avx avx2 avx512_bf16 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 sse4a ssse3 vpclmulqdq"
L10N="en en-US ja"

FEATURES="parallel-fetch parallel-install nodoc noman noinfo"

#CCACHE_DIR="/run/media/ssds/ccache/"
#CCACHE_SIZE="300G"
DISTDIR=/run/media/ssds/distfiles
PORTAGE_TMPDIR="/run/media/ssds/tmp"
PORTDIR_OVERLAY="/usr/local/portage/overlay"
LLVM_TARGETS="X86 AMDGPU"

CARGO_BUILD_JOBS="30" 
PYTHON_COMPILE_JOBS="30"

LDFLAGS="$ -fuse-ld=mold"

#LDFLAGS="-fuse-ld=lld -Wl,--threads=30" 

ADAFLAGS=${COMMON_FLAGS}
DFLAGS=${COMMON_FLAGS}
OBJCFLAGS=${COMMON_FLAGS}
OBJCXXFLAGS=${COMMON_FLAGS}
RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C codegen-units=30"
GOAMD64="v4"  
GOFLAGS="-v -trimpath"
GHCFLAGS="-O2 -j30 -optc-march=native -optc-O2" 
ZIGFLAGS='-Drelease-safe=true -mcpu=native'

CPPFLAGS="-D_FORTIFY_SOURCE=2"


c2@gentoobtw ~ $ 
Top
rfx
Apprentice
Apprentice
Posts: 176
Joined: Wed Apr 19, 2023 1:23 pm
Location: de-by

  • Quote

Post by rfx » Fri May 16, 2025 6:38 pm

Stuff as USE-flag like "plasma qt6 pipwire systemd" are not needed. They get set by the profile you have choosen.

You can check some by yourself, delete 2-3 Useflags, then check with "emerge -avuDU world" if something got changed. I deleted some not needed useflags on my system a few weeks ago

MAKEOPTS="-j30" AND EMERGE_DEFAULT_OPTS="-j30" are not good together.

MAKEOPTS specifies how many jobs are executed per build process for a package and EMERGE_DEFAULT_OPTS specifies the maximum number of packages that can be started simultaneously in the build process. In your configuration, you allow your system to compile 30 packages simultaneously with 30 threats each, which in theory is 900 tasks at the same time. Please also bear in mind that each individual build process can take up to 2 GB of RAM, especially with large packages.

How you configure this for yourself is a personal preference. One possibility would be MAKEOPTS=“-j15” + EMERGE_DEFAULT_OPTS=“-j2”. Personally, I prefer only EMERGE_DEFAULT_OPTS=“-j1” and give my system all available MAKEOPTS jobs so that each package is completed individually as quickly as possible one after the other. This makes it easier for me to check how long a major update with genlop will take. In addition, my PC recently had little joy when firefox, thunderbird and libreoffice wanted to rebuild at the same time during the python update...

The parallel-fetch and parallel-install features are also no longer necessary as they date back to the past.
Top
c2
Tux's lil' helper
Tux's lil' helper
Posts: 81
Joined: Fri Mar 14, 2025 3:00 pm

  • Quote

Post by c2 » Fri May 16, 2025 7:55 pm

rfx wrote:Stuff as USE-flag like "plasma qt6 pipwire systemd" are not needed. They get set by the profile you have choosen.

You can check some by yourself, delete 2-3 Useflags, then check with "emerge -avuDU world" if something got changed. I deleted some not needed useflags on my system a few weeks ago

MAKEOPTS="-j30" AND EMERGE_DEFAULT_OPTS="-j30" are not good together.

MAKEOPTS specifies how many jobs are executed per build process for a package and EMERGE_DEFAULT_OPTS specifies the maximum number of packages that can be started simultaneously in the build process. In your configuration, you allow your system to compile 30 packages simultaneously with 30 threats each, which in theory is 900 tasks at the same time. Please also bear in mind that each individual build process can take up to 2 GB of RAM, especially with large packages.

How you configure this for yourself is a personal preference. One possibility would be MAKEOPTS=“-j15” + EMERGE_DEFAULT_OPTS=“-j2”. Personally, I prefer only EMERGE_DEFAULT_OPTS=“-j1” and give my system all available MAKEOPTS jobs so that each package is completed individually as quickly as possible one after the other. This makes it easier for me to check how long a major update with genlop will take. In addition, my PC recently had little joy when firefox, thunderbird and libreoffice wanted to rebuild at the same time during the python update...

The parallel-fetch and parallel-install features are also no longer necessary as they date back to the past.
the default opts are fine as i am using L which stops emerge from compling a new package if there are 42 threads being used
Top
Hu
Administrator
Administrator
Posts: 24383
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri May 16, 2025 9:49 pm

No, --load-average directs Portage not to start any new packages when the system load average exceeds the specified level. Load average is a trailing indicator, and cannot protect you from certain adverse workloads. As rfx alludes at the end of the quoted post, if several large packages all get scheduled to start at about the same time, none of them will raise the load average by a large enough amount in a short enough time to prevent Portage scheduling the rest of them. If the individual packages do not respect the Make option --load-average, you could substantially overcommit your system resources.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy