Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582698 - dev-util/electron-0.36.12: build failed: error: ‘gtk_widget_hide_all’ was not declared in this scope
Summary: dev-util/electron-0.36.12: build failed: error: ‘gtk_widget_hide_all’ was not...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Elvis Pranskevichus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-10 23:57 UTC by cyshei
Modified: 2016-05-13 23:17 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,357.11 KB, application/x-xz)
2016-05-10 23:58 UTC, cyshei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cyshei 2016-05-10 23:57:30 UTC
Not sure if this is the actual error or if it's further up -- full build.log attached:

../../atom/browser/ui/views/menu_bar.cc: In function ‘void atom::{anonymous}::GetMenuBarColor(SkColor*, SkColor*, SkColor*, SkC
olor*, SkColor*)’:
../../atom/browser/ui/views/menu_bar.cc:37:21: warning: ‘GtkStyle* gtk_rc_get_style(GtkWidget*)’ is deprecated: Use 'GtkStyleCo
ntext' instead [-Wdeprecated-declarations]
   GtkStyle* style = gtk_rc_get_style(menu_bar);
                     ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:259:0,
                 from ../../atom/browser/ui/views/menu_bar.cc:8:
/usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:175:11: note: declared here
 GtkStyle* gtk_rc_get_style              (GtkWidget   *widget);
           ^
../../atom/browser/ui/views/menu_bar.cc:37:21: warning: ‘GtkStyle* gtk_rc_get_style(GtkWidget*)’ is deprecated: Use 'GtkStyleCo
ntext' instead [-Wdeprecated-declarations]
   GtkStyle* style = gtk_rc_get_style(menu_bar);
                     ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:259:0,
                 from ../../atom/browser/ui/views/menu_bar.cc:8:
/usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:175:11: note: declared here
 GtkStyle* gtk_rc_get_style              (GtkWidget   *widget);
           ^
../../atom/browser/ui/views/menu_bar.cc:37:46: warning: ‘GtkStyle* gtk_rc_get_style(GtkWidget*)’ is deprecated: Use 'GtkStyleCo
ntext' instead [-Wdeprecated-declarations]
   GtkStyle* style = gtk_rc_get_style(menu_bar);
                                              ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:259:0,
                 from ../../atom/browser/ui/views/menu_bar.cc:8:
/usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:175:11: note: declared here
 GtkStyle* gtk_rc_get_style              (GtkWidget   *widget);
           ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-reserved-user-defined-literal’
cc1plus: warning: unrecognized command line option ‘-Wno-sentinel’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
ninja: build stopped: subcommand failed.
 * ERROR: dev-util/electron-0.36.12::gentoo failed (compile phase):
 *   (no error message)


% emerge --info '=dev-util/electron-0.36.12::gentoo'
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.3.0, glibc-2.23-r2, 4.4.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-4712HQ_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem:    16347288 total,   6018432 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Tue, 10 May 2016 19:24:23 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

sabayon
    location: /var/lib/layman/sabayon
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=sandybridge"
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 /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=sandybridge"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.ussg.indiana.edu/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/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 acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emacs emboss encode evo exif fam ffmpeg firefox flac fortran fuse gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mmxext mng modules mp3 mp4 mpeg multilib musepack nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl seccomp session smp spell sse sse2 ssl startup-notification svg systemd tcpd threads tiff tracker truetype udev udisks unicode upower usb vorbis wifi wxwidgets x264 xattr xcb xft xinerama xml xv xvid zlib zsh-completion" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia vmware" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

% emerge -pqv '=dev-util/electron-0.36.12::gentoo'
[ebuild  N    ] dev-util/electron-0.36.12  USE="cups gnome gnome-keyring gtk3 proprietary-codecs pulseaudio system-ffmpeg tcmalloc -custom-cflags -hidpi -kerberos -lto (-neon) -pic (-selinux) {-test}" LINGUAS="-am -ar -bg -bn -ca -cs -da -de -el -en_GB -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW"
Comment 1 cyshei 2016-05-10 23:58:49 UTC
Created attachment 433892 [details]
build.log.xz

Original log is 38 MB, so XZ version attached.
Comment 2 Elvis Pranskevichus 2016-05-11 13:44:19 UTC
Looks like electron doesn't build against gtk3: gtk_widget_hide_all is a gtk2-only (deprecated) function.  I will remove the gtk3 USE flag.  Meanwhile USE="-gtk3" should get it building.
Comment 3 Jan Breuer 2016-05-11 14:03:42 UTC
It seems that gtk3 is still not supported by upstream https://github.com/electron/electron/issues/2927
Comment 4 Dennis Schridde 2016-05-13 07:44:16 UTC
It appears that 383e0da0c5c0f5b89141b8cc1ad0bbf10f1a6973 [1] has not been merged into Gentoo main, yet. Is that correct?

[1]: https://github.com/elprans/atom-overlay/commit/383e0da0c5c0f5b89141b8cc1ad0bbf10f1a6973
Comment 5 Elvis Pranskevichus 2016-05-13 12:45:00 UTC
(In reply to Dennis Schridde from comment #4)
> It appears that 383e0da0c5c0f5b89141b8cc1ad0bbf10f1a6973 [1] has not been
> merged into Gentoo main, yet. Is that correct?
> 
> [1]:
> https://github.com/elprans/atom-overlay/commit/
> 383e0da0c5c0f5b89141b8cc1ad0bbf10f1a6973

It hasn't yet, but there's a PR: https://github.com/gentoo/gentoo/pull/1454
Comment 6 Patrice Clement (RETIRED) gentoo-dev 2016-05-13 13:47:34 UTC
commit bfcfee47b99ef03a731a66287d1c2e773ac3d423 (HEAD -> master)
Author:     Elvis Pranskevichus <elvis@magic.io>
AuthorDate: Wed May 11 11:05:17 2016 -0400
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Fri May 13 13:32:09 2016 +0000

dev-util/electron: Drop gtk3 USE flag (#582698)

Upstream does not support GTK3 yet (unlike Chromium), so drop the
USE flag.

Gentoo-Bug: https://bugs.gentoo.org/582698
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1454

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

dev-util/electron/electron-0.36.12.ebuild | 6 ++----
dev-util/electron/metadata.xml            | 1 -
2 files changed, 2 insertions(+), 5 deletions(-)
Comment 7 Anthony Ryan 2016-05-13 23:17:19 UTC
While that GTK3 support may not be ready yet, I don't see why nobody did the obvious thing and got this fixed upstream. A simple 2 line change fixes this so it's compatible with both GTK2 and GTK3.

Fix is merged there already for the 1.1.0 release.

Relevant patch: https://github.com/electron/electron/pull/5502