View previous topic :: View next topic |
Author |
Message |
user7719 n00b
Joined: 19 Feb 2021 Posts: 60
|
Posted: Fri Apr 19, 2024 8:13 am Post subject: media-libs/libaom build failure |
|
|
Hi,
I'm getting the following error when trying to emerge libaom:
Code: | * Messages for package media-libs/libaom-3.7.0-r2:
* ERROR: media-libs/libaom-3.7.0-r2::gentoo failed (compile phase):
* ninja -v -j20 -l0 failed
*
* Call stack:
* ebuild.sh, line 136: Called src_compile
* environment, line 3496: Called cmake-multilib_src_compile
* environment, line 1235: Called multilib-minimal_src_compile
* environment, line 2422: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
* environment, line 2689: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 2382: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 2380: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
* environment, line 567: Called multilib-minimal_abi_src_compile
* environment, line 2416: Called multilib_src_compile
* environment, line 2909: Called cmake_src_compile
* environment, line 1353: Called cmake_build
* environment, line 1320: Called eninja
* environment, line 1791: Called die
* The specific snippet of code:
* "$@" || die -n "${*} failed"
*
* If you need support, post the output of `emerge --info '=media-libs/libaom-3.7.0-r2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-libs/libaom-3.7.0-r2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-libs/libaom-3.7.0-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-libs/libaom-3.7.0-r2/temp/environment'.
* Working directory: '/var/tmp/portage/media-libs/libaom-3.7.0-r2/work/libaom-3.7.0_build-abi_x86_64.amd64'
* S: '/var/tmp/portage/media-libs/libaom-3.7.0-r2/work/libaom-3.7.0'
|
Code: | emerge --info '=media-libs/libaom-3.7.0-r2::gentoo'
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.38-r11, 6.6.21-gentoo-dist x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.6.21-gentoo-dist-x86_64-13th_Gen_Intel-R-_Core-TM-_i7-13700H-with-glibc2.38
KiB Mem: 65510592 total, 52833236 free
KiB Swap: 67108860 total, 67108860 free
Timestamp of repository gentoo: Fri, 19 Apr 2024 08:00:00 +0000
Head commit of repository gentoo: 358b77102784a6e4c693c0fe7b2650ddeaae9dba
Timestamp of repository steam-overlay: Thu, 04 Apr 2024 01:22:27 +0000
Head commit of repository steam-overlay: aca6eb772e0d5474b6d44072998af0082f36d08a
Timestamp of repository vowstar: Tue, 16 Apr 2024 05:50:26 +0000
Head commit of repository vowstar: 1366b119f430b72096be13346b1735ae2a4d0e53
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-build/autoconf: 2.71-r6::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.28.3::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.3.2::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.3::gentoo
dev-lang/rust: 1.75.0-r1::gentoo
sys-apps/baselayout: 2.14-r2::gentoo
sys-apps/openrc: 0.54::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::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: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.38-r11::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
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
vowstar
location: /var/db/repos/vowstar
sync-type: git
sync-uri: https://github.com/gentoo-mirror/vowstar.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/17.1/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=24576"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=24576"
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="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=24576"
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 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="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=24576"
GENTOO_MIRRORS="https://www.mirrorservice.org/sites/distfiles.gentoo.org/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j20"
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="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dist-kernel dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gui iconv icu jpeg kde kernel-install kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp opus pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 rar readline sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" 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" 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="intel nvidia" 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/libaom-3.7.0-r2::gentoo was built with the following:
USE="examples (-big-endian) -doc -test" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 -avx -avx2 -sse3 -sse4_1 -sse4_2 -ssse3"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
FEATURES="network-sandbox xattr unmerge-orphans parallel-fetch sandbox ebuild-locks pid-sandbox fixlafiles strict userpriv binpkg-logs preserve-libs binpkg-dostrip ipc-sandbox pkgdir-index-trusted unmerge-logs merge-sync usersync unknown-features-warn binpkg-docompress config-protect-if-modified userfetch distlocks news qa-unresolved-soname-deps sfperms multilib-strict protect-owned assume-digests usersandbox binpkg-multi-instance buildpkg-live"
|
What can I try to get this to emerge? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31019 Location: here
|
Posted: Fri Apr 19, 2024 8:29 am Post subject: |
|
|
You should post also /var/tmp/portage/media-libs/libaom-3.7.0-r2/temp/build.log with wgetpaste. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
user7719 n00b
Joined: 19 Feb 2021 Posts: 60
|
Posted: Fri Apr 19, 2024 8:34 am Post subject: |
|
|
fedeliallalinea wrote: | You should post also /var/tmp/portage/media-libs/libaom-3.7.0-r2/temp/build.log with wgetpaste. |
As suggested
http://0x0.st/Xo1h.log |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31019 Location: here
|
Posted: Fri Apr 19, 2024 8:45 am Post subject: |
|
|
Try to compile with safe cflags -march=native -O2 -pipe. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
user7719 n00b
Joined: 19 Feb 2021 Posts: 60
|
Posted: Fri Apr 19, 2024 9:03 am Post subject: |
|
|
fedeliallalinea wrote: | Try to compile with safe cflags -march=native -O2 -pipe. |
A bit of background. I did the following the other day:
Code: | emerge --sync && emerge --ask --verbose --update --deep --changed-use @world --backtrack=30 |
Which produced the following error:
Code: | * Messages for package sys-devel/gcc-13.2.1_p20240113-r1:
* Different values of l1-cache-size detected!
* GCC will fail to bootstrap when comparing files with these flags.
* This CPU is likely big.little/hybrid hardware with power/efficiency cores.
* Please install app-misc/resolve-march-native and run 'resolve-march-native'
* to find a safe value of CFLAGS for this CPU. Note that this may vary
* depending on the core it ran on. taskset can be used to fix the cores used.
* ERROR: sys-devel/gcc-13.2.1_p20240113-r1::gentoo failed (configure phase):
* Varying l1-cache-size found, aborting (bug #915389, gcc PR#111768)
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 3378: Called toolchain_src_configure
* environment, line 4462: Called gcc_do_filter_flags
* environment, line 1792: Called die
* The specific snippet of code:
* die "Varying l1-cache-size found, aborting (bug #915389, gcc PR#111768)";
*
* If you need support, post the output of emerge --info '=sys-devel/gcc-13.2.1_p20240113-r1::gentoo',
* the complete build log and the output of emerge -pqv '=sys-devel/gcc-13.2.1_p20240113-r1::gentoo'.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/temp/environment'.
* Working directory: '/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/work/gcc-13-20240113'
* S: '/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/work/gcc-13-20240113' |
I did as it suggested and used the resolve-march-native tool to work out the COMMON_FLAGS. I then ran the same command, without the emerge --sync and rebooted.
At this point KDE was messed up and wouldn't open various settings dialog. An error:
Code: | Application: kded5 (kded5), signal: Aborted
[KCrash Handler]
#4 0x00007fb721b3256c in ?? () from /lib64/libc.so.6
#5 0x00007fb721ae3602 in raise () from /lib64/libc.so.6
#6 0x00007fb721acc4ed in abort () from /lib64/libc.so.6
#7 0x00007fb720ab7f66 in ?? () from /usr/lib64/libQt5Core.so.5
#8 0x00007fb720ab43e8 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib64/libQt5Core.so.5
#9 0x00007fb720d8a81c in ?? () from /usr/lib64/libQt5Core.so.5
#10 0x00007fb720d7dec1 in QObjectPrivate::QObjectPrivate(int) () from /usr/lib64/libQt5Core.so.5
#11 0x00007fb70449694f in QSensor::QSensor(QByteArray const&, QObject*) () from /usr/lib64/libQt5Sensors.so.5
#12 0x00007fb70449c483 in QOrientationSensor::QOrientationSensor(QObject*) () from /usr/lib64/libQt5Sensors.so.5
#13 0x00007fb704543cab in ?? () from /usr/lib64/qt5/plugins/kf5/kded/kscreen.so
#14 0x00007fb70451d1b0 in ?? () from /usr/lib64/qt5/plugins/kf5/kded/kscreen.so
#15 0x00007fb7045233e9 in ?? () from /usr/lib64/qt5/plugins/kf5/kded/kscreen.so
#16 0x00007fb721da8933 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib64/libKF5CoreAddons.so.5
#17 0x0000556d2bfec47e in ?? ()
#18 0x0000556d2bfefa83 in ?? ()
#19 0x0000556d2bfefe13 in ?? ()
#20 0x0000556d2bfea1de in ?? ()
#21 0x00007fb721acdf3a in ?? () from /lib64/libc.so.6
#22 0x00007fb721acdff5 in __libc_start_main () from /lib64/libc.so.6
#23 0x0000556d2bfea5a1 in ?? ()
[Inferior 1 (process 6272) detached] |
So overnight I ran 'emerge -e @world -v' which fails on the libaom package. Which is package 682 of 1155.
Its far enough that KDE works again but ideally I'd like for all packages to complete.
If I change the COMMON_FLAGS and try again I assume GCC will fail again. |
|
Back to top |
|
|
user7719 n00b
Joined: 19 Feb 2021 Posts: 60
|
|
Back to top |
|
|
user7719 n00b
Joined: 19 Feb 2021 Posts: 60
|
Posted: Fri Apr 19, 2024 11:27 am Post subject: |
|
|
Creating the following file:
Code: | /etc/portage/env/sys-devel/gcc |
With contents:
Code: | COMMON_FLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=24576"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}" |
Alllows GCC to emerge. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21908
|
Posted: Fri Apr 19, 2024 2:35 pm Post subject: |
|
|
I do not see a -ON in your CFLAGS, so you are building everything without optimization. This is generally discouraged, as some packages rely on optimizations to eliminate dead code paths. Please add -O2 -pipe to your list of resolved -march flags. |
|
Back to top |
|
|
user7719 n00b
Joined: 19 Feb 2021 Posts: 60
|
Posted: Fri Apr 19, 2024 5:30 pm Post subject: |
|
|
Hu wrote: | I do not see a -ON in your CFLAGS, so you are building everything without optimization. This is generally discouraged, as some packages rely on optimizations to eliminate dead code paths. Please add -O2 -pipe to your list of resolved -march flags. |
Ah. Adding -O2 -pipe allowed libaom to build with the resolved -march flags...
Rebuilding everything again...
Thank you |
|
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
|
|