Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 771777

Summary: dev-libs/gjs-1.64.4[sysprof] with glib[sysprof] error: ‘sysprof_capture_writer_set_flush_delay’ was not declared in this scope
Product: Gentoo Linux Reporter: Mike <mike>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: CONFIRMED ---    
Severity: normal CC: ionen, sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: failure build log

Description Mike 2021-02-20 22:30:23 UTC
Created attachment 687795 [details]
failure build log

'emerge dev-libs/gjs-1.64.4' with sysprof support fails with:

../gjs-1.64.4/gjs/profiler.cpp:445:5: error: ‘sysprof_capture_writer_set_flush_delay’ was not declared in this scope; did you mean ‘sysprof_capture_writer_set_counters’?
  445 |     sysprof_capture_writer_set_flush_delay(self->capture,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     sysprof_capture_writer_set_counters



Setting '-sysprof' in package.use allows it to complete successfully.

Reproducible: Always



nuc8i5beh ~ # emerge --info =dev-libs/gjs-1.64.4
Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-9.3.0, glibc-2.32-r6, 5.4.97-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.97-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-8259U_CPU_@_2.30GHz-with-glibc2.2.5
KiB Mem:    16259304 total,   1818536 free
KiB Swap:    8388604 total,   7752444 free
Head commit of repository plex-overlay: fcca74e83c56b407eefac52c53859d6ef5b53625

Timestamp of repository gentoo: Sat, 20 Feb 2021 17:37:22 +0000
Head commit of repository gentoo: 4a5ef428b06569c853e0c548c9106edfdfa45533

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r6::gentoo, 3.8.7-r1::gentoo, 3.9.1-r1::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r6::gentoo
Repositories:

plex-overlay
    location: /var/db/repos/plex-overlay
    sync-type: git
    sync-uri: https://github.com/comio/plex-overlay
    masters: gentoo

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-march=native -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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=native -mtune=native -O2 -pipe"
GENTOO_MIRRORS="rsync://gentoo.gossamerhost.com/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds emboss encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg sysprof systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-libs/gjs-1.64.4::gentoo was built with the following:
USE="cairo gtk readline -examples -sysprof -test" ABI_X86="(64)"
FEATURES="sandbox network-sandbox multilib-strict parallel-fetch binpkg-dostrip preserve-libs fixlafiles userpriv unknown-features-warn config-protect-if-modified protect-owned assume-digests pid-sandbox news sfperms binpkg-logs unmerge-logs ebuild-locks unmerge-orphans qa-unresolved-soname-deps xattr merge-sync ipc-sandbox distlocks userfetch usersync usersandbox strict binpkg-docompress"



nuc8i5beh ~ # emerge -pqv =dev-libs/gjs-1.64.4
[ebuild   R   ] dev-libs/gjs-1.64.4  USE="cairo gtk readline -examples -sysprof -test"
Comment 1 Mike 2021-02-20 22:34:44 UTC
The failure as described was on a rebuild in order to reproduce and report the error. It was originally built as part of a brand new gnome install.
Comment 2 Ionen Wolkens gentoo-dev 2021-02-20 23:01:06 UTC
Seems to be the result of glib-2.66.7 being stabilized, but works fine if built against glib-2.66.7[-sysprof]

gjs-1.66.2 is unaffected

https://forums.gentoo.org/viewtopic-t-1130544.html

(also, please don't CC arches)
Comment 3 Mart Raudsepp gentoo-dev 2021-02-21 10:36:19 UTC
glib pkg-config sort of correctly says "Requires.private: sysprof-capture-4", but then pkgconfig goes and includes sysprof-capture-4 headers for non-private use as well, so we have gjs doing both -I/usr/include/sysprof-4 and -I/usr/include/sysprof-3.
https://github.com/pkgconf/pkgconf/issues/126 has some background on this.
Comment 4 Larry the Git Cow gentoo-dev 2021-02-21 10:39:59 UTC
The bug has been referenced in the following commit(s):

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

commit 1be825afe02609d43fefc4d51c96be2b53e648c0
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2021-02-21 10:38:32 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2021-02-21 10:39:52 +0000

    package.use.stable.mask: Stable mask dev-libs/glib[sysprof] for now
    
    Bug: https://bugs.gentoo.org/771777
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>

 profiles/base/package.use.stable.mask | 7 +++++++
 1 file changed, 7 insertions(+)
Comment 5 Ionen Wolkens gentoo-dev 2021-03-11 14:52:51 UTC
>package.use.stable.mask: Stable mask dev-libs/glib[sysprof] for now
Just ran into this which made me wonder given I remembered this mask, turns out my stable glib was built with sysprof because arch/amd64/package.use.mask's dev-libs/glib -sysprof invalidated the stable mask.