Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951170 - gnome-extra/evolution-data-server-3.52.4-r2 Gdk-ERROR **: gdk_display_manager_get() was called before gtk_init()
Summary: gnome-extra/evolution-data-server-3.52.4-r2 Gdk-ERROR **: gdk_display_manager...
Status: RESOLVED DUPLICATE of bug 950673
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-11 18:13 UTC by Karim
Modified: 2025-03-12 04:31 UTC (History)
1 user (show)

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


Attachments
build.log for gnome-extra/evolution-data-server-3.52.4-r2 (build.log.xz,28.13 KB, application/x-xz)
2025-03-11 18:16 UTC, Karim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karim 2025-03-11 18:13:04 UTC
gnome-extra/evolution-data-server-3.52.4-r2 fails to compile with error:

```
(process:2909): Gdk-ERROR **: 13:51:09.158: gdk_display_manager_get() was called before gtk_init()
```

Reproducible: Always

Steps to Reproduce:
1. Try to install or update `gnome-extra/evolution-data-server` package
2.
3.
Actual Results:  
The compile fails with:

```
 * ERROR: gnome-extra/evolution-data-server-3.52.4-r2::gentoo failed (compile phase):
 *   ninja -v -j10 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2316:  Called cmake_src_compile
 *   environment, line  763:  Called cmake_build
 *   environment, line  730:  Called eninja
 *   environment, line 1146:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=gnome-extra/evolution-data-server-3.52.4-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=gnome-extra/evolution-data-server-3.52.4-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/gnome-extra/evolution-data-server-3.52.4-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/evolution-data-server-3.52.4-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/gnome-extra/evolution-data-server-3.52.4-r2/work/evolution-data-server-3.52.4_build'
 * S: '/var/tmp/portage/gnome-extra/evolution-data-server-3.52.4-r2/work/evolution-data-server-3.52.4'
```

Expected Results:  
The compile/install is successful.

I see that this was discussed in the forums: https://forums.gentoo.org/viewtopic-p-8851728.html but a bug was not raised.

```
> emerge --info '=gnome-extra/evolution-data-server-3.52.4-r2::gentoo'
Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-14, glibc-2.40-r8, 6.12.16-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.16-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-10710U_CPU_@_1.10GHz-with-glibc2.40
KiB Mem:    32552376 total,  24460412 free
KiB Swap:    4194300 total,   2882300 free
Timestamp of repository gentoo: Tue, 11 Mar 2025 17:15:00 +0000
Head commit of repository gentoo: 702f3b646e55ad786527ec20ead29e6387b6f791
Timestamp of repository bombo82: Fri, 07 Mar 2025 01:34:15 +0000
Head commit of repository bombo82: b10e71a8af8de548328857c1057aa95c7b2783f3

Timestamp of repository edgets: Mon, 10 Mar 2025 05:48:17 +0000
Head commit of repository edgets: 1a3e4f3710850c0d4c784231ddd2b44d412c2d15

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
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.16.5-r2::gentoo, 1.17-r1::gentoo
dev-build/cmake:           3.31.5::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust-bin:         1.81.0-r103::gentoo, 1.82.0-r101::gentoo, 1.83.0::gentoo, 1.84.1-r2::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.7::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          256.10::gentoo
sys-devel/binutils:        2.43-r2::gentoo, 2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::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-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe"
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"
CXXFLAGS="-march=skylake -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 buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake -O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.cs.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j10"
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/zsh"
USE="X a52 aac acl acpi alsa amd64 bindist bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr encode exif flac gdbm gif gpm gtk gui iconv icu introspection jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qml qt6 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib zsh-completion" ABI_X86="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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev" 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="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel" 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
=================================================================

gnome-extra/evolution-data-server-3.52.4-r2::gentoo was built with the following:
USE="gnome-online-accounts gtk introspection sound weather -berkdb -gtk-doc -kerberos -ldap -oauth-gtk3 -oauth-gtk4 -test -vala" ABI_X86="(64)"
CFLAGS="-march=skylake -O2 -pipe -std=gnu17"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict 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"
```

I will upload the `build.log` after the bug is created.
Comment 1 Karim 2025-03-11 18:16:19 UTC
Created attachment 920582 [details]
build.log for gnome-extra/evolution-data-server-3.52.4-r2
Comment 2 Greg Kubaryk 2025-03-11 23:03:21 UTC
may be a dupe of 950673

very strange that you have -std=gnu17 in CFLAGS towards the bottom of your output in comment 0
Comment 3 Karim 2025-03-12 02:36:29 UTC
Yeah I am not sure why I have that in the CFLAGS:

```
> cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=skylake -O2 -pipe"
CXXFLAGS="${CFLAGS}"
FCFLAGS="${FFLAGS}"
FFLAGS="${CFLAGS}"
MAKEOPTS="-j10"
USE="X jpeg truetype zsh-completion -ipv6 -gnome -kde systemd  \
     bindist amd64 bzip2 -qt5 libnotify pulseaudio dbus alsa \
     introspection networkmanager"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"

VIDEO_CARDS="intel"
INPUT_DEVICES="evdev"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.cs.utah.edu/"
GRUB_PLATFORMS="efi-64"
FEATURES="-network-sandbox"
#EMERGE_DEFAULT_OPTS="--exclude sys-kernel/gentoo-kernel-bin"
```

And you are also correct that it maybe a dup. I reviewed the build log from that bug and it's the same. I will close this as a dup.
Comment 4 Karim 2025-03-12 02:37:19 UTC

*** This bug has been marked as a duplicate of bug 950673 ***
Comment 5 Greg Kubaryk 2025-03-12 04:14:37 UTC
(In reply to Karim from comment #3)
> Yeah I am not sure why I have that in the CFLAGS:
> 

Maybe something in /etc/portage/env? Thanks for following up.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-12 04:31:17 UTC
The ebuild adds -std=gnu17.