Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625718 - www-client/chromium-61.0.3159.5 fails to build with gtk2
Summary: www-client/chromium-61.0.3159.5 fails to build with gtk2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-20 09:12 UTC by Stefan Radermacher
Modified: 2017-10-10 11:14 UTC (History)
3 users (show)

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


Attachments
Build log (build.log.bz2,330.13 KB, application/x-bzip2)
2017-07-20 09:26 UTC, Stefan Radermacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Radermacher 2017-07-20 09:12:51 UTC
I'm trying to build Chromium version 61 but I keep getting compile errors. I have tried various versions in recent weeks, but the error is always the same:

"gtk_widget_get_scale_factor wurde in diesem Gültigkeitsbereich nicht definiert"

Which translates to "not defined in this scope"

I have attached a build log from an attemot to merge to most recent ebuild www-client/chromium-61.0.3159.5. Unfortunately gcc prints its messages in German, even though I have set LC_MESSAGES to English.
Comment 1 Stefan Radermacher 2017-07-20 09:26:09 UTC
Created attachment 486006 [details]
Build log
Comment 2 Mike Gilbert gentoo-dev 2017-07-20 14:37:41 UTC
(In reply to Stefan Radermacher from comment #0)
> Unfortunately gcc prints its messages in German, even though I have set LC_MESSAGES to English.

Do you have LC_ALL set to a German locale? LC_ALL overrides all other LC_* variables.

I suggest setting LANG instead of LC_ALL.

Also, please provide emerge --info.
Comment 3 Stefan Radermacher 2017-07-20 14:51:17 UTC
Thank for the tip with LANG, I will try that.

here's my emerge --info:

Portage 2.3.6 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-6.3.0, glibc-2.23-r4, 4.12.1-gentoo x86_64)
=================================================================
System uname: Linux-4.12.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4771_CPU_@_3.50GHz-with-gentoo-2.3
KiB Mem:    16379536 total,    778976 free
KiB Swap:     524284 total,    524028 free
Timestamp of repository gentoo: Thu, 20 Jul 2017 06:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.3::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/qt.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

local
    location: /usr/local/portage
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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=core-avx2 -O2 -pipe -ggdb"
DISTDIR="/data/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y  --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/"
LANG="de_DE.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/data/gentoo/packages"
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 aacs acl acpi alsa amd64 avahi bash-completion berkdb bluray bzip2 cairo cdda cddb cli clucene consolekit cracklib crypt css cups curl cxx daap dbus declarative dga dri dvd ebook encode exif fam fbcon fbcondecor flac fortran ftp gd gdbm gif git gnutls gpm gstreamer iconv icu imagemagick imap jabber java jpeg kde kipi lcms libnotify lm_sensors mad matroska mng modules mp3 mpeg mplayer multilib ncurses nls nptl nsplugin ogg openal opengl openmp oscar pam pcre pdf plasma png policykit pulseaudio python qemu qt3support qt5 quicktime rdesktop readline real rtc rtsp samba sasl sdk sdl seccomp semantic-desktop session spell sqlite ssl subversion svg tcpd theora tiff truetype udev unicode upnp usb v4l v4l2 vdpau video vorbis wayland win32codecs wmp x264 xattr xcomposite xft xinerama xml xv xvid yahoo zeroconf zlib" ABI_X86="64 32" 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="krita" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Stefan Radermacher 2017-07-20 14:59:30 UTC
Just checked my locale, I have LC_ALL unset, LANG is set to German, as are all LC_*, except for LC_MESSAGES which is set to English. Hm.
Comment 5 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2017-07-20 17:33:29 UTC
This is with USE=-gtk3. I also happened to reproduce this. I'll probably ask upstream if it's still supported.

FAILED: obj/chrome/browser/ui/libgtkui/libgtk2ui/gtk_ui.o 
x86_64-pc-linux-gnu-g++ -MMD -MF obj/chrome/browser/ui/libgtkui/libgtk2ui/gtk_ui.o.d -DLIBGTKUI_IMPLEMENTATION -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PAN
GO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BU
ILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 
-DUSE_CUPS -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DTOOLKIT_VIEWS=1 -DUSING_
SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_SUPP
ORT_GPU=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -I../.. -Igen -I/usr/include/glib-2.0 -I/usr/lib
64/glib-2.0/include -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -Igen/shim_headers/libpng_shim -Igen/shim_headers/zlib_shim -Igen/shim_headers/harfbuzz_
shim -Igen/shim_headers/libjpeg_shim -I../../third_party/khronos -I../../gpu -Igen/shim_headers/libdrm_shim -Igen/shim_headers/re2_shim -Igen/shim_headers/ffmpeg_shim -Ig
en/shim_headers/opus_shim -Igen/shim_headers/snappy_shim -Igen/shim_headers/minizip_shim -Igen/shim_headers/openh264_shim -Igen/shim_headers/flac_shim -I/usr/include/gtk-
2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pix
buf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/inc
lude/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -
I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2
.0 -I/usr/lib64/glib-2.0/include -I../../third_party/ced/src -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/conf
ig -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/images -I../../
third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia
/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/third_party/vulkan -I../../third_party/skia/include/gpu -I../../third_party/skia/src/gpu -I
../../third_party/skia/src/sksl -I../../third_party/libwebm/source -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/protobuf/src -I../../third_party/
boringssl/src/include -I/usr/include/nss -I/usr/include/nspr -Igen -I../../third_party/WebKit -Igen/third_party/WebKit -I../../v8/include -Igen/v8/include -I/usr/include/
harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -
D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializ
ers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 -fvisibility=hidden -std=gnu++11 -Wno-narrowing -fno-rtti -fno-excep
tions -fvisibility-inlines-hidden -march=native -O2 -pipe -fno-delete-null-pointer-checks -c ../../chrome/browser/ui/libgtkui/gtk_ui.cc -o obj/chrome/browser/ui/libgtkui/
libgtk2ui/gtk_ui.o
../../chrome/browser/ui/libgtkui/gtk_ui.cc: In Elementfunktion »float libgtkui::GtkUi::GetRawDeviceScaleFactor()«:
../../chrome/browser/ui/libgtkui/gtk_ui.cc:1056:56: Fehler: »gtk_widget_get_scale_factor« wurde in diesem Gültigkeitsbereich nicht definiert
   gint scale = gtk_widget_get_scale_factor(fake_window_);
                                                        ^
Comment 6 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2017-07-20 17:41:00 UTC
Posted https://groups.google.com/a/chromium.org/d/msg/chromium-dev/iO3qzex6oYA/T40awoW2BwAJ to ask upstream about this.
Comment 7 Stefan Radermacher 2017-07-20 20:46:42 UTC
I was able to compile wit USE=+gtk". Cosidering the respons on the upstream ticket, it's probably best to make gtk3 the default.
Comment 8 Mike Gilbert gentoo-dev 2017-07-20 21:44:18 UTC
If gtk2 support is broken, I would say it is time to remove it from the ebuild entirely.
Comment 9 josef.95 2017-07-21 20:44:12 UTC
In terms of localized error messages from gcc
build gcc with USE=-nls helps.
Comment 10 Stefan Radermacher 2017-07-23 08:21:47 UTC
Thanks, josef.
Comment 11 Mike Gilbert gentoo-dev 2017-07-27 19:57:23 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3714524cf95bef229338dd937b7875eb18384b7b

commit 3714524cf95bef229338dd937b7875eb18384b7b
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Thu Jul 27 15:46:03 2017 -0400

    www-client/chromium: drop support for gtk2

    Bug: https://bugs.gentoo.org/625718
    Bug: https://bugs.gentoo.org/626376
    Package-Manager: Portage-2.3.6_p23, Repoman-2.3.3_p1

 www-client/chromium/chromium-60.0.3112.78.ebuild | 7 +++----
 www-client/chromium/chromium-61.0.3159.5.ebuild  | 7 +++----
 2 files changed, 6 insertions(+), 8 deletions(-)
Comment 12 unlord 2017-10-10 11:14:26 UTC
I have a patch that adds support for gtk2 to chromium-61.0.3163.100.  There is a pull request at https://github.com/gentoo/gentoo/pull/5904