Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953140 - dev-libs/protobuf: fails to build with new dev-cpp/abseil-cpp (CMake Error at cmake/tests.cmake:91 (target_link_libraries): Target "libtest_common" links to: absl::scoped_mock_log)
Summary: dev-libs/protobuf: fails to build with new dev-cpp/abseil-cpp (CMake Error at...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PMASKED, PullRequest
Depends on:
Blocks:
 
Reported: 2025-04-05 05:32 UTC by Sam James
Modified: 2025-04-11 09:49 UTC (History)
3 users (show)

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


Attachments
build.log (file_953140.txt,8.30 KB, text/plain)
2025-04-05 05:32 UTC, Sam James
Details
different build failure (dev-libs:protobuf-30.2:20250405-074103.log,131.58 KB, text/x-log)
2025-04-05 07:54 UTC, NHO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-05 05:32:13 UTC
Created attachment 923583 [details]
build.log

```
-- Configuring done (1.6s)
CMake Error at cmake/tests.cmake:91 (target_link_libraries):
  Target "libtest_common" links to:

    absl::scoped_mock_log

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  CMakeLists.txt:333 (include)
[...]
```

---

# emerge --info
Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/hardened, gcc-15, glibc-2.41-r1, 6.13.8-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.13.8-gentoo-dist-x86_64-Intel-R-_Xeon-R-_Gold_6338_CPU_@_2.00GHz-with-glibc2.41
KiB Mem:   495274844 total, 432495852 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 05 Apr 2025 01:20:22 +0000
Head commit of repository gentoo: 9c4764293b9e8dd6fd251c3141284bf6294be288

Timestamp of repository sam_c: Wed, 02 Apr 2025 07:20:54 +0000
Head commit of repository sam_c: a4daa0e8cf1ca623523051f229d503a580c590fa

sh bash 5.2_p37
ld GNU ld (Gentoo 9999 p1) 2.44.50.20250405
ccache version 4.11.2 [disabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r2::gentoo
dev-build/cmake:           3.31.6-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.1::gentoo
dev-lang/python:           3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust-bin:         1.85.1::gentoo, 1.86.0::gentoo
dev-util/ccache:           4.11.2::gentoo
llvm-core/clang:           19.1.7::gentoo, 20.1.2::gentoo
llvm-core/llvm:            19.1.7::gentoo, 20.1.2::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-apps/systemd:          257.3::gentoo
sys-devel/binutils:        2.41-r5::gentoo, 2.42-r2::gentoo, 2.43-r2::gentoo, 9999::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             11.5.0::gentoo, 12.4.1_p20250403::gentoo, 13.3.1_p20250328::gentoo, 14.2.1_p20250301::gentoo, 15.0.9999::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

sam_c
    location: /var/db/repos/sam_c
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/sam_c.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fno-semantic-interposition -pipe  -Warray-bounds -Wstringop-overread -Wstringop-overflow -Wstringop-truncation"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -fno-semantic-interposition -pipe  -Warray-bounds -Wstringop-overread -Wstringop-overflow -Wstringop-truncation"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --jobs=8 --load-average=10 --complete-graph --implicit-system-deps=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="-march=native -O3 -fno-semantic-interposition -pipe  -Warray-bounds -Wstringop-overread -Wstringop-overflow -Wstringop-truncation"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg clean-logs 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 split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -fno-semantic-interposition -pipe  -Warray-bounds -Wstringop-overread -Wstringop-overflow -Wstringop-truncation"
GENTOO_MIRRORS="https://mirror.init7.net/gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j64 -l64"
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 accessibility acl acpi activities alsa amd64 base bluetooth boot branding bzip2 cairo cdda cdr cet crypt cups custom-cflags dbus declarative dist-kernel dracut dri dts dvd dvdr encode exif flac gdbm gif gnome gpm gstreamer gtk gui hardened iconv icu introspection ipv6 java jpeg kde keyring kf6compat kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pic pie pipewire plasma png policykit postgres ppds pulseaudio python qml qt5 qt6 readline ruby screencast sdl seccomp semantic-desktop sound spell ssl ssp startup-notification svg systemd systemd-boot test test-rust tiff tools truetype udev udisks uki ukify unicode upower usb utils vala vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xtpax xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gcc_14" 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 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl 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 navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" 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-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" 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, 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
Comment 1 NHO 2025-04-05 07:54:09 UTC
Created attachment 923584 [details]
different build failure

Without tests, protobuf build fails still, but it fails differently.
Comment 2 NHO 2025-04-05 07:58:10 UTC
Disregard. That's LTO bug that happens on protobuf-29.4, making a new bug
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-05 07:59:28 UTC
(In reply to NHO from comment #1)
> Created attachment 923584 [details]
> different build failure
> 
> Without tests, protobuf build fails still, but it fails differently.

That's a GCC bug, fixed on trunk but not in latest snapshot (or revbumps). I wasn't going to backport it given it's nearly Sunday but maybe I should.
Comment 4 Larry the Git Cow gentoo-dev 2025-04-05 08:05:01 UTC
The bug has been referenced in the following commit(s):

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

commit d981fee3ae989260836028564561a47b60884e5a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-05 08:03:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-05 08:04:37 +0000

    sys-devel/gcc: add 15.0.1_pre20250330-r3 (up to today)
    
    Patch tarball generated w/ `git format-patch f7085e23148d415e8fefb4444cbea72cef607aa1..HEAD`
    where HEAD is 7d561820525fd3b9d8f3876333c0584d75e7c053.
    
    Same rationale as 09232d43ccdc1474038e151892cbc970cb403059.
    
    Bug: https://bugs.gentoo.org/951997
    Bug: https://bugs.gentoo.org/951999
    Bug: https://bugs.gentoo.org/952085
    Bug: https://bugs.gentoo.org/952059
    Bug: https://bugs.gentoo.org/952964
    Bug: https://bugs.gentoo.org/953024
    Bug: https://bugs.gentoo.org/953140
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                         |  2 +
 sys-devel/gcc/gcc-15.0.1_pre20250330-r3.ebuild | 58 ++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2025-04-05 08:51:15 UTC
The bug has been referenced in the following commit(s):

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

commit d18e9a63ae313b9e82e8c6da7296c69c9e7de909
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-05 08:50:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-05 08:50:59 +0000

    profiles: mask new protobuf/abseil
    
    Bug: https://bugs.gentoo.org/953138
    Bug: https://bugs.gentoo.org/953140
    Bug: https://bugs.gentoo.org/953141
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2025-04-11 09:49:07 UTC
The bug has been closed via the following commit(s):

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

commit 34d0dfc22c5fe3a2ac998652053ecd3af9ffca70
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-04-05 12:22:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-11 09:47:05 +0000

    dev-cpp/abseil-cpp: add USE=test-helpers
    
    USE=test-helpers builds libraries required to build tests against Abseil code.
    
    Closes: https://bugs.gentoo.org/953140
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-cpp/abseil-cpp/abseil-cpp-20230802.3.ebuild | 19 ++++++++++++-------
 dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild | 19 ++++++++++++-------
 dev-cpp/abseil-cpp/abseil-cpp-20240722.1.ebuild | 18 +++++++++++-------
 dev-cpp/abseil-cpp/abseil-cpp-20250127.0.ebuild | 17 ++++++++++-------
 dev-cpp/abseil-cpp/metadata.xml                 |  3 +++
 dev-libs/protobuf/protobuf-25.6.ebuild          |  8 +++++++-
 dev-libs/protobuf/protobuf-28.3-r1.ebuild       |  8 +++++++-
 dev-libs/protobuf/protobuf-29.4.ebuild          |  8 +++++++-
 dev-libs/protobuf/protobuf-30.2.ebuild          |  8 +++++++-
 dev-libs/protobuf/protobuf-9999.ebuild          |  8 +++++++-
 10 files changed, 83 insertions(+), 33 deletions(-)