Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926156 - x11-libs/vte-0.74.2 (and friends): ERROR: Assert failed: LTO not supported
Summary: x11-libs/vte-0.74.2 (and friends): ERROR: Assert failed: LTO not supported
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 926422 (view as bug list)
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-03-04 11:46 UTC by Albert W. Hopkins
Modified: 2024-03-07 23:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,8.30 KB, text/x-log)
2024-03-04 11:46 UTC, Albert W. Hopkins
Details
meson-log.txt (meson-log.txt,31.87 KB, text/plain)
2024-03-04 11:58 UTC, Albert W. Hopkins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2024-03-04 11:46:57 UTC
Created attachment 886669 [details]
build.log

It seems that these built before with LTO but a subsequent rebuild (--emptytree) fails.

```
...
Compiler for C supports arguments -std=gnu11: YES 
meson.build:121: WARNING: Consider using the built-in option for language standard version instead of using "-std=gnu11".
Compiler for C++ supports arguments -std=gnu++14: YES 
meson.build:129: WARNING: Consider using the built-in option for language standard version instead of using "-std=gnu++14".

meson.build:228:0: ERROR: Assert failed: LTO not supported
```


```

$ emerge --color=n --keep-going=n --nospinner --with-bdeps=y --info
Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/17.1/no-multilib/systemd/merged-usr, gcc-13, glibc-2.39-r2, 6.7.8-gentoo x86_64)
=================================================================
System uname: Linux-6.7.8-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i9-12900K-with-glibc2.39
KiB Mem:    65623780 total,  24620636 free
KiB Swap:    2101244 total,     90860 free
Timestamp of repository gentoo: Sun, 03 Mar 2024 21:03:02 +0000
Timestamp of repository marduk: Mon, 26 Feb 2024 17:41:49 +0000
sh bash 5.2_p26
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.28.3::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::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:             1.75.0-r1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.4::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           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:            17.0.6::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://gbp/repos/lighthouse/gentoo
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: False
    sync-rsync-extra-opts: --new-compress
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3

marduk
    location: /var/db/repos/marduk
    sync-type: rsync
    sync-uri: rsync://gbp/repos/lighthouse/marduk
    masters: gentoo
    priority: 50
    volatile: True
    sync-rsync-verify-metamanifest: False
    sync-rsync-extra-opts: --new-compress

Binary Repositories:

binhost
    priority: 10
    sync-uri: https://gbp/binpkgs/lighthouse

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="     -O2 -pipe -march=alderlake -flto     --param=l1-cache-line-size=64     --param=l1-cache-size=48     --param=l2-cache-size=18432     -ftree-vectorize     -mabm     -mno-cldemote     -mno-kl     -mno-pconfig     -mno-sgx     -mno-widekl     -mshstk "
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/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="     -O2 -pipe -march=alderlake -flto     --param=l1-cache-line-size=64     --param=l1-cache-size=48     --param=l2-cache-size=18432     -ftree-vectorize     -mabm     -mno-cldemote     -mno-kl     -mno-pconfig     -mno-sgx     -mno-widekl     -mshstk "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="     --autounmask=n     --binpkg-changed-deps     --binpkg-respect-use     --buildpkg     --changed-deps=y     --color=y     --getbinpkg     --jobs=4     --keep-going     --oneshot     --quiet-build     --quiet-unmerge-warn     --rebuilt-binaries=y     --verbose-conflicts     --with-bdeps=n "
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 -march=alderlake -flto"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks fixlafiles merge-wait multilib-strict news noinfo notitles parallel-fetch pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms skiprocheck strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox"
FFLAGS="-O2 -pipe -march=alderlake -flto"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/share/doc"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en"
MAKEFLAGS=""
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS=""
PORTAGE_COMPRESS_FLAGS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
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"
USE="acl amd64 asm brotli glamor gnu introspection ipv6 jpeg2k lto mmx native-extensions nls nptl opentype pam pgo seccomp sse sse2 systemd test-rust udev unicode urandom utf8 vaapi vulkan wayland xattr zstd" ABI_X86="64" CAMERAS="*" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LLVM_SLOT="17" LLVM_TARGETS="AArch64 AMDGPU ARM AVR BPF Hexagon Lanai MSP430 Mips NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel i965 iris"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS

```
Comment 1 Albert W. Hopkins 2024-03-04 11:47:53 UTC
Disabling per package LTO (https://wiki.gentoo.org/wiki/LTO#Disable_LTO_per_Package) allows them to build successfully.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-04 11:48:20 UTC
Can you include meson-log.txt too?
Comment 3 Albert W. Hopkins 2024-03-04 11:58:26 UTC
Created attachment 886670 [details]
meson-log.txt

Oh and I forgot to say by "and friends" I mean:

- x11-libs/vte-0.74.2
- gui-libs/vte-common-0.74.2
- x11-terms/gnome-terminal
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-04 12:05:05 UTC
I wonder what changed recently: https://gitlab.gnome.org/GNOME/vte/-/commit/b55e2423ba4fe3d7d8ce52536eea69dede64a61f.
Comment 6 Eli Schwartz 2024-03-04 12:47:04 UTC
Used to be, if you passed -flto then that check simply didn't trigger because it was handled via CFLAGS instead of b_lto=true. Now we are "correctly" integrating with the upstream build system and vte is empowered to bitterly protest.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-07 23:47:05 UTC
*** Bug 926422 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2024-03-07 23:51:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3328d5802637e2a9aeca0e0886bbb5cb9b8a8b5a

commit 3328d5802637e2a9aeca0e0886bbb5cb9b8a8b5a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-07 23:50:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-07 23:50:26 +0000

    gui-libs/vte-common: filter LTO
    
    Upstream don't support LTO & error out on it in meson.build.
    
    Closes: https://bugs.gentoo.org/926156
    Signed-off-by: Sam James <sam@gentoo.org>

 gui-libs/vte-common/vte-common-0.74.2.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f904cfa01856327ba405fd27f275e761cf25703e

commit f904cfa01856327ba405fd27f275e761cf25703e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-07 23:50:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-07 23:50:06 +0000

    x11-terms/gnome-terminal: filter LTO
    
    Upstream don't support LTO & error out on it in meson.build.
    
    Closes: https://bugs.gentoo.org/926156
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-terms/gnome-terminal/gnome-terminal-3.44.1.ebuild | 7 +++++--
 x11-terms/gnome-terminal/gnome-terminal-3.50.1.ebuild | 5 ++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=995947d9e5787552d849b6754c8c5aa22823354c

commit 995947d9e5787552d849b6754c8c5aa22823354c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-07 23:49:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-07 23:49:26 +0000

    x11-libs/vte: filter LTO
    
    Upstream don't support LTO & error out on it in meson.build.
    
    Closes: https://bugs.gentoo.org/926156
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-libs/vte/vte-0.68.0.ebuild | 7 +++++--
 x11-libs/vte/vte-0.74.2.ebuild | 5 ++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=081c9a0a2501b3d84239e4b199a0e19a30e196b4

commit 081c9a0a2501b3d84239e4b199a0e19a30e196b4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-07 23:48:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-07 23:48:49 +0000

    gui-libs/vte: filter LTO
    
    Upstream don't support LTO & error out on it in meson.build.
    
    Closes: https://bugs.gentoo.org/926156
    Signed-off-by: Sam James <sam@gentoo.org>

 gui-libs/vte/vte-0.74.2.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)