View previous topic :: View next topic |
Author |
Message |
Nanderty n00b
Joined: 04 Apr 2024 Posts: 4
|
Posted: Thu Apr 04, 2024 8:58 pm Post subject: [SOLVED] Compilation of some packages hangs up entire pc. |
|
|
Compiling media-libs/libjpeg-turbo or sci-libs/netcdf hangs up the entire system.
Most of the time at "-- Detecting C compiler ABI info" sometimes it gets further and hangs on "-- Looking for a ASM_NASM compiler".
I am very sure it isn't a hardware issue, I've run ycruncher vt3 over 8 hours without an error. Also many packages don't have this issue.
I have already rebuilt the toolchain.
I have an i5-13600KF. Changing from "-march=ratporlake" to "-march=alderlake" got rid of warnings gcc threw after reemerging it.
My /etc/portage/make.conf is as follows:
Code: |
USE=""
COMMON_FLAGS="-march=alderlake -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
VIDEO_CARDS="amdgpu radeonsi"
MICROCODE_SIGNATURES="-s 0x000b0671"
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
MAKEOPTS="--jobs 20 --load-average 20"
FEATURES="candy"
GENTOO_MIRRORS="https://mirror.init7.net/gentoo/"
|
My CPU_FLAGS_* are correct, I checked them with app-portage/cpuid2cpuflags to make sure they are up to date.
Last edited by Nanderty on Mon Apr 08, 2024 6:31 am; edited 1 time in total |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1550
|
Posted: Fri Apr 05, 2024 12:21 am Post subject: |
|
|
Hello and welcome to Gentoo forums!
Include your emerge --info please.
Run at least 5, preferably at least 8 passes of memtest86+ as well.
libjpeg-turbo-3.0.2 compiled successfully here on a stable system. I see you're running ~amd64, sometimes there are bugs in the compilers, that's possible too.
Best Regards,
Georgi |
|
Back to top |
|
|
Nanderty n00b
Joined: 04 Apr 2024 Posts: 4
|
Posted: Fri Apr 05, 2024 6:32 am Post subject: |
|
|
Thank you for your suggestions, my emerge --info media-libs/libjpeg-turbo:
Code: |
Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/23.0, gcc-13, glibc-2.39-r2, 6.8.2-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.8.2-gentoo-x86_64-13th_Gen_Intel-R-_Core-TM-_i5-13600KF-with-glibc2.39
KiB Mem: 32699852 total, 27956992 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Thu, 04 Apr 2024 18:19:20 +0000
Head commit of repository gentoo: 45b6803c7d0c2f6e0bbb7247385e9a3095dc172b
Timestamp of repository guru: Thu, 04 Apr 2024 17:48:38 +0000
Head commit of repository guru: ae5669fdb3157526d19cdfab0661a2719f00170b
Timestamp of repository steam-overlay: Thu, 04 Apr 2024 01:22:27 +0000
Head commit of repository steam-overlay: aca6eb772e0d5474b6d44072998af0082f36d08a
Timestamp of repository wayland-desktop: Thu, 04 Apr 2024 01:22:35 +0000
Head commit of repository wayland-desktop: 559692d775352c785aecfec52d940f20f5c9b800
sh dash 0.5.12
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.29.0::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.0-r1::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r2::gentoo
dev-lang/python: 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin: 1.76.0::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.53.1::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo, 18.1.2::gentoo
sys-devel/gcc: 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 17.0.6::gentoo
sys-devel/llvm: 17.0.6::gentoo, 18.1.2::gentoo
sys-kernel/linux-headers: 6.8-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r2::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gentoo.git
priority: -1000
volatile: False
guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru.git
masters: gentoo
volatile: False
steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo
volatile: False
wayland-desktop
location: /var/db/repos/wayland-desktop
sync-type: git
sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
masters: gentoo
volatile: False
crossdev
location: /var/db/repos/crossdev
masters: gentoo
priority: 10
volatile: False
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=alderlake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.init7.net/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="--jobs 20 --load-average 20"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cet crypt cups fpm gd gdbm hwaccel iconv ipv6 libnotify libtirpc lto lzma multilib ncurses nls openmp pam pcre pdo php pipewire pulseaudio readline screencast seatd seccomp ssl test-rust udev unicode vaapi vulkan wayland xattr zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
=================================================================
Package Settings
=================================================================
media-libs/libjpeg-turbo-3.0.2::gentoo was built with the following:
USE="-java -static-libs" ABI_X86="32 (64) (-x32)"
CFLAGS="-march=raptorlake -O2 -pipe"
CXXFLAGS="-march=raptorlake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
|
|
|
Back to top |
|
|
freke l33t
Joined: 23 Jan 2003 Posts: 977 Location: Somewhere in Denmark
|
Posted: Fri Apr 05, 2024 6:43 am Post subject: |
|
|
You're switching march= directive?
in emerge --info it's -march=alderlake -O2 -pipe but for the specific ebuild it's -march=raptorlake -O2 -pipe |
|
Back to top |
|
|
Nanderty n00b
Joined: 04 Apr 2024 Posts: 4
|
Posted: Fri Apr 05, 2024 7:17 am Post subject: |
|
|
Yes I switched it yesterday, it solved some warnings gcc threw when reemerging it. Unfortunately it didn’t solve the issue. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9535 Location: beyond the rim
|
Posted: Fri Apr 05, 2024 9:08 am Post subject: Re: Compilation of some packages hangs up entire pc. |
|
|
Nanderty wrote: | I am very sure it isn't a hardware issue, I've run ycruncher vt3 over 8 hours without an error. Also many packages don't have this issue. |
That doesn't really mean much with modern CPUs unfortunately. Stress tests only cover specific load scenarios that may not trigger the problem you're seeing. If the system really hangs completely it almost certainly is a hardware, kernel or driver issue. Userspace code alone just can't trigger this.
If this is reproducable, did you monitor the actual CPU load when the problem appears? Is there anything in the system logs?
Also did you try reducing your jobs count in MAKEOPTS? 20 is pretty hard for a 13600K, I'd dial that back to ~15. |
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4558 Location: Germany
|
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2963 Location: Edge of marsh USA
|
|
Back to top |
|
|
Nanderty n00b
Joined: 04 Apr 2024 Posts: 4
|
Posted: Mon Apr 08, 2024 6:30 am Post subject: |
|
|
Solved, it was the kernel issue Josef.95 mentioned. |
|
Back to top |
|
|
|
|
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
|
|